|
||||||||||
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 AuthenticatedUser
public java.lang.String getLogin()
AuthenticatedUser
AuthenticatedUser.getPassword()
for why this can sometimes be needed.
getLogin
in interface AuthenticatedUser
public java.lang.String getPassword()
AuthenticatedUser
getPassword
in interface AuthenticatedUser
public long[] getActiveRoleIds()
AuthenticatedUser
getActiveRoleIds
in interface AuthenticatedUser
public long[] getAvailableRoleIds()
AuthenticatedUser
AuthenticatedUser.setActiveRoleIds(long[])
method.
getAvailableRoleIds
in interface AuthenticatedUser
public boolean isInRole(long roleId)
isInRole
in interface AuthenticatedUser
public boolean isInAdministratorRole()
isInAdministratorRole
in interface AuthenticatedUser
public void setActiveRoleIds(long[] roleIds)
AuthenticatedUser
setActiveRoleIds
in interface AuthenticatedUser
public 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 |