|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--fr.gouv.culture.sdx.user.UserInformation
|
+--fr.gouv.culture.sdx.user.SuperuserInformation
Represents a superuser, which is a user who can manage the SDX server. This class extends overrides UserInformation by returning true for the isAdmin() and isSuperuser() methods.
| Field Summary |
| Fields inherited from class fr.gouv.culture.sdx.user.UserInformation |
ANONYMOUS_USERNAME, host, ip, SESSION_PROPERTY |
| Constructor Summary | |
SuperuserInformation()
|
|
| Method Summary | |
boolean |
isAdmin(java.lang.String app)
Returns whether this user can admin an application. |
boolean |
isMember(java.lang.String groupname)
Returns whether this user is a member of a group. |
boolean |
isMember(java.lang.String[] groupnames)
Returns whether this user is a member of at least one of the groups. |
boolean |
isMember(java.lang.String[] groupnames,
boolean all)
Return whether this user is member of some groups. |
boolean |
isSuperuser()
Returns whether this user is a superuser. |
| Methods inherited from class fr.gouv.culture.sdx.user.UserInformation |
enableLogging, getAppId, getEmail, getFirstname, getGroups, getHost, getId, getIp, getLastname, getPreferredLocale, isAdmin, setEmail, setFirstname, setGroups, setHost, setId, setIp, setLastname, setPreferredLocale, setUp, toSAX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SuperuserInformation()
| Method Detail |
public boolean isAdmin(java.lang.String app)
For the superuser, it always returns true.
app - The application id.public boolean isSuperuser()
Always return true.
isSuperuser in class UserInformation
public boolean isMember(java.lang.String[] groupnames,
boolean all)
Returns false.
isMember in class UserInformationgroupnames - The list of groups.all - If true, the user must be a member of each groups ; otherwise a member of at least one of them.public boolean isMember(java.lang.String[] groupnames)
Returns false.
isMember in class UserInformationgroupnames - The list of group names.public boolean isMember(java.lang.String groupname)
Returns false.
isMember in class UserInformationgroupname - The name of the group.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||