org.basex.core
Class User

java.lang.Object
  extended by org.basex.core.User

public final class User
extends java.lang.Object

This class contains information on a single user.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 java.lang.String name
          User name.
 java.lang.String password
          Password (md5-encoded, lower case).
 Perm perm
          Permission.
 
Method Summary
 User copy()
          Returns a local copy of this user.
 boolean has(Perm p)
          Tests if the user has the specified permission.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final java.lang.String name
User name.


password

public java.lang.String password
Password (md5-encoded, lower case).


perm

public Perm perm
Permission.

Method Detail

has

public boolean has(Perm p)
Tests if the user has the specified permission.

Parameters:
p - permission to be checked
Returns:
result of check

copy

public User copy()
Returns a local copy of this user.

Returns:
user copy