|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wsrp4j.consumer.driver.GenericUserRegistryImpl
org.apache.wsrp4j.consumer.app.driver.UserRegistryImpl
| Field Summary | |
private static UserRegistry |
instance
|
private PersistentDataObject |
persistentDataObject
|
private PersistentHandler |
persistentHandler
|
| Fields inherited from class org.apache.wsrp4j.consumer.driver.GenericUserRegistryImpl |
|
| Constructor Summary | |
private |
UserRegistryImpl()
|
| Method Summary | |
User |
addUser(User user)
Add a user. |
private void |
deleteFile(User user)
Delete the user from the persistent store |
static UserRegistry |
getInstance()
|
void |
removeAllUsers()
Remove all users from the registry |
User |
removeUser(java.lang.String userID)
Remove a user from the list of known user |
private void |
restore()
Restores all available users from persistent file store |
void |
stateChanged(StateChangedEvent event)
StateChanged event occured |
private void |
store(User user)
Store user to persistent file |
| Methods inherited from class org.apache.wsrp4j.consumer.driver.GenericUserRegistryImpl |
getAllUsers, getUser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static UserRegistry instance
private PersistentDataObject persistentDataObject
private PersistentHandler persistentHandler
| Constructor Detail |
private UserRegistryImpl()
| Method Detail |
public static UserRegistry getInstance()
public User removeUser(java.lang.String userID)
removeUser in interface UserRegistryremoveUser in class GenericUserRegistryImpluserID - The ID of the user
public void removeAllUsers()
UserRegistry
removeAllUsers in interface UserRegistryremoveAllUsers in class GenericUserRegistryImplpublic User addUser(User user)
addUser in interface UserRegistryaddUser in class GenericUserRegistryImpluser - The user object to add
public void stateChanged(StateChangedEvent event)
stateChanged in interface StateChangedListenerevent -
private void restore()
throws WSRPException
WSRPException
private void store(User user)
throws WSRPException
user -
WSRPExceptionprivate void deleteFile(User user)
user -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||