org.outerj.daisy.repository.user
Interface Role


public interface Role

A role that a user can have.


Field Summary
static long ADMINISTRATOR
          ID of the Administrator role.
 
Method Summary
 java.lang.String getDescription()
          Gets the description of this role, which can be null.
 long getId()
          Gets the id of this role, or -1 if this role object hasn't been saved yet.
 java.util.Date getLastModified()
          Gets the last modified date of this role object.
 long getLastModifier()
          Gets the data store id of the last modifier of this role object.
 java.lang.String getName()
          Gets the name of this role.
 long getUpdateCount()
           
 org.outerx.daisy.x10.RoleDocument getXml()
          Gets an XML representation of this object.
 void save()
          Persist this Role to the data store.
 void setDescription(java.lang.String description)
          Sets the description of this role.
 void setName(java.lang.String roleName)
          Sets the name of this role.
 

Field Detail

ADMINISTRATOR

public static final long ADMINISTRATOR
ID of the Administrator role. The Administrator is a built-in role required for the correct operation of the repository. Some operations can only be done by users having the Administrator role.

See Also:
Constant Field Values
Method Detail

getName

public java.lang.String getName()
Gets the name of this role.


setName

public void setName(java.lang.String roleName)
Sets the name of this role.


getDescription

public java.lang.String getDescription()
Gets the description of this role, which can be null.


setDescription

public void setDescription(java.lang.String description)
Sets the description of this role. Can be set to null.


getId

public long getId()
Gets the id of this role, or -1 if this role object hasn't been saved yet.


save

public void save()
          throws RepositoryException
Persist this Role to the data store. If this is the first time the role is saved, its id will be assigned.

Throws:
RepositoryException

getLastModified

public java.util.Date getLastModified()
Gets the last modified date of this role object.

Returns null if this object hasn't been saved to the data store yet.


getLastModifier

public long getLastModifier()
Gets the data store id of the last modifier of this role object.

Returns null if this object hasn't been saved to the data store yet.


getXml

public org.outerx.daisy.x10.RoleDocument getXml()
Gets an XML representation of this object.


getUpdateCount

public long getUpdateCount()


Copyright © -2005 . All Rights Reserved.