|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.fuse.FUSERegister
public class FUSERegister
FUSERegister handles new user registrations and data updates.
| Field Summary | |
|---|---|
protected java.io.File |
registryDir
|
java.text.SimpleDateFormat |
sdf
|
protected FUSEUser |
utilityUser
|
| Method Summary | |
|---|---|
FUSEUser |
createNewUser()
Construcst a new empty user instance |
FUSEUser |
loadUser(java.lang.String userName)
Retrieves an user from the disk (or database) |
void |
save(FUSEUser user)
|
FUSEUser |
saveUser(FUSEUser newUser)
Stores a new user. |
FUSEUser |
updateUser(FUSEUser oldUser)
Stores an existing user |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.text.SimpleDateFormat sdf
protected java.io.File registryDir
protected FUSEUser utilityUser
| Method Detail |
|---|
public FUSEUser saveUser(FUSEUser newUser)
throws UserExistsException,
DatabaseException
newUser - the new user object
UserExistsException - if user with the same name already exists
java.io.IOException - if the user could not be written to disk
DatabaseExceptionpublic FUSEUser createNewUser()
public FUSEUser updateUser(FUSEUser oldUser)
throws UserExistsException
newUser - the new user object
UserExistsException - if user with the same name already exists
java.io.IOException - if the user could not be written to diskpublic FUSEUser loadUser(java.lang.String userName)
throws DatabaseException
userName -
java.io.IOException - if the user cannot be loaded
DatabaseExceptionpublic void save(FUSEUser user)
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||