|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.outerj.daisy.repository.commonimpl.AuthenticatedUserImpl
public class AuthenticatedUserImpl
| Constructor Summary | |
|---|---|
AuthenticatedUserImpl(long userId,
java.lang.String password,
long[] activeRoleIds,
long[] availableRoleIds,
java.lang.String login)
|
|
| Method Summary | |
|---|---|
long[] |
getActiveRoleIds()
The currently active role of the user. |
long[] |
getAvailableRoleIds()
The roles this user has. |
long |
getId()
|
java.lang.String |
getLogin()
The login string for this user. |
java.lang.String |
getPassword()
The password can sometimes be needed if the the Repository implementation itself needs to connect to other services using this user. |
org.outerx.daisy.x10.UserInfoDocument |
getXml()
|
boolean |
isInAdministratorRole()
|
boolean |
isInRole(long roleId)
|
void |
setActiveRoleIds(long[] roleIds)
Changes the active roles. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticatedUserImpl(long userId,
java.lang.String password,
long[] activeRoleIds,
long[] availableRoleIds,
java.lang.String login)
| Method Detail |
|---|
public long getId()
getId in interface AuthenticatedUserpublic java.lang.String getLogin()
AuthenticatedUserAuthenticatedUser.getPassword() for why this can sometimes be needed.
getLogin in interface AuthenticatedUserpublic java.lang.String getPassword()
AuthenticatedUser
getPassword in interface AuthenticatedUserpublic long[] getActiveRoleIds()
AuthenticatedUser
getActiveRoleIds in interface AuthenticatedUserpublic long[] getAvailableRoleIds()
AuthenticatedUserAuthenticatedUser.setActiveRoleIds(long[]) method.
getAvailableRoleIds in interface AuthenticatedUserpublic boolean isInRole(long roleId)
isInRole in interface AuthenticatedUserpublic boolean isInAdministratorRole()
isInAdministratorRole in interface AuthenticatedUserpublic void setActiveRoleIds(long[] roleIds)
AuthenticatedUser
setActiveRoleIds in interface AuthenticatedUserpublic org.outerx.daisy.x10.UserInfoDocument getXml()
getXml in interface AuthenticatedUser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||