wt.clients.lifecycle.administrator
Class CAccessEntry

java.lang.Object
  extended bywt.clients.util.PersistableItem
      extended bywt.clients.lifecycle.administrator.CAccessEntry

public class CAccessEntry
extends PersistableItem

A client wrapper class to handle the role to permissions mapping.


Field Summary
(package private)  Vector permissions
           
(package private)  Role role
           
 
Fields inherited from class wt.clients.util.PersistableItem
 
Constructor Summary
protected CAccessEntry()
          Create a new CAccessEntry.
protected CAccessEntry(Role role, Vector permissions)
          Create a new CAccessEntry with the specified role and permissions.
 
Method Summary
 void addPermission(AccessPermission permission, AdHocAclSpec adhoc_aclspec)
          Adds the specified access permission to an AdHocAclSpec entry set
 EnumeratorVector getPermissions()
          Returns the permissions granted for this access entry.
protected  String getRole()
          Returns the role associated with this access entry.
protected  boolean isSubmitter()
          Returns true if the role for this access entry is the Submitter role, otherwise it returns false.
 void setPermissions(Vector permissions, AdHocAclSpec adhoc_aclspec)
          Sets the specified access permissions in an AdHocAclSpec
protected  void setRole(String role_name, AdHocAclSpec adhoc_aclspec)
          Sets the role for this access entry.
 
Methods inherited from class wt.clients.util.PersistableItem
isCreated, isModified, refresh, save, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

role

Role role

permissions

Vector permissions
Constructor Detail

CAccessEntry

protected CAccessEntry()
Create a new CAccessEntry.


CAccessEntry

protected CAccessEntry(Role role,
                       Vector permissions)
Create a new CAccessEntry with the specified role and permissions.

Parameters:
role - the role
permissions - the permissions
Method Detail

setRole

protected void setRole(String role_name,
                       AdHocAclSpec adhoc_aclspec)
                throws WTException
Sets the role for this access entry.

Parameters:
role_name - the role for the access entry
Throws:
WTException - if the role cannot be set

getRole

protected String getRole()
Returns the role associated with this access entry.


isSubmitter

protected boolean isSubmitter()
Returns true if the role for this access entry is the Submitter role, otherwise it returns false.


setPermissions

public void setPermissions(Vector permissions,
                           AdHocAclSpec adhoc_aclspec)
Sets the specified access permissions in an AdHocAclSpec

Parameters:
permissions - specifies the permissions that are granted
adhoc_aclspec - the AdHocAclSpec to update

addPermission

public void addPermission(AccessPermission permission,
                          AdHocAclSpec adhoc_aclspec)
Adds the specified access permission to an AdHocAclSpec entry set

Parameters:
permission - specifies the permission that is granted
adhoc_aclspec - the AdHocAclSpec to update

getPermissions

public EnumeratorVector getPermissions()
Returns the permissions granted for this access entry.