|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
This interface defines the basic user functionalities and attributes. todo : Maybe some are useless or superfluous(email, fullName, ...), we'll refine that later. todo : do we need preferences that are not application specific or shared between applications? todo : should we foresee sharing of preferences by grouped applications, or just "global" prefs?
UserDAO| Method Summary | |
|---|---|
java.util.Date |
getCreationTimestamp()
|
java.lang.String |
getEmail()
|
java.lang.String |
getFullName()
This returns the user name as it should be displayed. |
java.util.Set |
getGroups()
TODO : how could we possibly prevent people playing with the returned set? It would probably not hurt anyway, but it should be mandatory to use the UserDAO object to add groups to a user. |
java.lang.String |
getPassword()
TODO : This is to be discussed: do we need to expose getPassword here? I think yes, because some people might be annoyed by a "change-only" password system (no existing password sent by mail), but implementations might skip it (make it throw IllegalStateException for exemple) |
java.util.Date |
getUpdateTimestamp()
|
java.lang.Long |
getUserId()
|
java.lang.String |
getUserName()
|
| Methods inherited from interface java.security.Principal |
|---|
equals, getName, hashCode, toString |
| Method Detail |
|---|
java.lang.Long getUserId()
java.lang.String getUserName()
java.lang.String getPassword()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationExceptionjava.util.Set getGroups()
java.lang.String getFullName()
java.lang.String getEmail()
java.util.Date getCreationTimestamp()
java.util.Date getUpdateTimestamp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||