|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Storage
Method Summary | |
void |
cancel(UserEdit user)
Cancel the changes and release the lock. |
boolean |
check(String id)
Check if a user by this id exists. |
void |
close()
Close. |
void |
commit(UserEdit user)
Commit the changes and release the lock. |
int |
count()
Count all the users. |
int |
countSearch(String criteria)
Count all the users with id or email, first or last name matching criteria. |
UserEdit |
edit(String id)
Get a lock on the user with this id, or null if a lock cannot be gotten. |
Collection |
findUsersByEmail(String email)
Get the users with this email, or return empty if none found. |
UserEdit |
get(String id)
Get the user with this id, or null if not found. |
List |
getAll()
Get all users. |
List |
getAll(int first,
int last)
Get all the users in record range. |
void |
open()
Open. |
UserEdit |
put(String id)
Add a new user with this id. |
void |
readProperties(UserEdit edit,
ResourcePropertiesEdit props)
Read properties from storage into the edit's properties. |
void |
remove(UserEdit user)
Remove this user. |
List |
search(String criteria,
int first,
int last)
Search for users with id or email, first or last name matching criteria, in range. |
Method Detail |
public void open()
public void close()
public boolean check(String id)
id
- The user id.
public UserEdit get(String id)
id
- The user id.
public Collection findUsersByEmail(String email)
public List getAll()
public List getAll(int first, int last)
first
- The first record position to return.last
- The last record position to return.
public int count()
public List search(String criteria, int first, int last)
criteria
- The search criteria.first
- The first record position to return.last
- The last record position to return.
public int countSearch(String criteria)
criteria
- The search criteria.
public UserEdit put(String id)
id
- The user id.
public UserEdit edit(String id)
id
- The user id.
public void commit(UserEdit user)
user
- The user to commit.public void cancel(UserEdit user)
user
- The user to commit.public void remove(UserEdit user)
user
- The user to remove.public void readProperties(UserEdit edit, ResourcePropertiesEdit props)
edit
- The user to read properties for.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |