|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.repository.commonimpl.user.RoleImpl
public class RoleImpl
An administrative role object.
It is possible to change the role name before the object is persisted. After the save() method is called (i.e. persistence has happened), the rolename can no longer be changed!
Nested Class Summary | |
---|---|
class |
RoleImpl.IntimateAccess
|
Field Summary |
---|
Fields inherited from interface org.outerj.daisy.repository.user.Role |
---|
ADMINISTRATOR |
Constructor Summary | |
---|---|
RoleImpl(UserManagementStrategy userManagementStrategy,
java.lang.String roleName,
AuthenticatedUser requestingUser)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
long |
getId()
|
RoleImpl.IntimateAccess |
getIntimateAccess(UserManagementStrategy strategy)
request intimate access to this object, only the strategy that created this object is allowed to actually get this intimate access. |
java.util.Date |
getLastModified()
|
long |
getLastModifier()
|
java.lang.String |
getName()
|
long |
getUpdateCount()
|
org.outerx.daisy.x10.RoleDocument |
getXml()
return the xml representation of this Role |
void |
makeReadOnly()
Disables all operations that can modify the state of this object. |
void |
save()
persists the state of this object to the data store |
void |
setDescription(java.lang.String description)
|
void |
setName(java.lang.String roleName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoleImpl(UserManagementStrategy userManagementStrategy, java.lang.String roleName, AuthenticatedUser requestingUser)
userManagementStrategy
- roleName
- Method Detail |
---|
public java.lang.String getName()
getName
in interface org.outerj.daisy.repository.user.Role
public void setName(java.lang.String roleName)
setName
in interface org.outerj.daisy.repository.user.Role
public java.lang.String getDescription()
getDescription
in interface org.outerj.daisy.repository.user.Role
public void setDescription(java.lang.String description)
setDescription
in interface org.outerj.daisy.repository.user.Role
public long getId()
getId
in interface org.outerj.daisy.repository.user.Role
public void save() throws org.outerj.daisy.repository.RepositoryException
save
in interface org.outerj.daisy.repository.user.Role
org.outerj.daisy.repository.RepositoryException
public org.outerx.daisy.x10.RoleDocument getXml()
getXml
in interface org.outerj.daisy.repository.user.Role
public RoleImpl.IntimateAccess getIntimateAccess(UserManagementStrategy strategy)
strategy
-
public java.util.Date getLastModified()
getLastModified
in interface org.outerj.daisy.repository.user.Role
public long getLastModifier()
getLastModifier
in interface org.outerj.daisy.repository.user.Role
public long getUpdateCount()
getUpdateCount
in interface org.outerj.daisy.repository.user.Role
public void makeReadOnly()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |