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

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

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


setName

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


getDescription

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


setDescription

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


getId

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


save

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

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

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

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


getUpdateCount

long getUpdateCount()


Copyright © -2012 . All Rights Reserved.