|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.PersistableItem
wt.clients.lifecycle.administrator.CAccessEntry
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
Vector permissions
Constructor Detail |
protected CAccessEntry()
protected CAccessEntry(Role role, Vector permissions)
role
- the rolepermissions
- the permissionsMethod Detail |
protected void setRole(String role_name, AdHocAclSpec adhoc_aclspec) throws WTException
role_name
- the role for the access entry
WTException
- if the role cannot be setprotected String getRole()
protected boolean isSubmitter()
public void setPermissions(Vector permissions, AdHocAclSpec adhoc_aclspec)
permissions
- specifies the permissions that are grantedadhoc_aclspec
- the AdHocAclSpec to updatepublic void addPermission(AccessPermission permission, AdHocAclSpec adhoc_aclspec)
permission
- specifies the permission that is grantedadhoc_aclspec
- the AdHocAclSpec to updatepublic EnumeratorVector getPermissions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |