|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<User>
org.basex.core.Users
public final class Users
This class organizes all users.
Constructor Summary | |
---|---|
Users(boolean global)
Global constructor. |
|
Users(DataInput in)
Local constructor. |
Method Summary | |
---|---|
boolean |
alter(String usern,
String pass)
Changes the password of a user. |
boolean |
create(String usern,
String pass)
Stores a user and encrypted password. |
void |
drop(User user)
Drops a user from the list. |
User |
get(String usern)
Returns a user reference with the specified name. |
byte[] |
info()
Returns information on all users. |
void |
write()
Writes global permissions to disk. |
void |
write(DataOutput out)
Writes permissions to disk. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public Users(boolean global)
global
- global flagpublic Users(DataInput in) throws IOException
in
- input stream
IOException
- I/O exceptionMethod Detail |
---|
public boolean create(String usern, String pass)
usern
- user namepass
- password
public boolean alter(String usern, String pass)
usern
- user namepass
- password
public void drop(User user)
user
- user referencepublic User get(String usern)
usern
- user name
public void write()
public void write(DataOutput out) throws IOException
out
- output stream; if set to null, the global rights are written
IOException
- I/O exceptionpublic byte[] info()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |