|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.util.PersistableItem
wt.clients.project.CRoleHolder
A client wrapper class to handle a RoleHolder.
Field Summary | |
protected RoleHolder |
roleHolder
The real role holder object for this client role holder. |
Fields inherited from class wt.clients.util.PersistableItem |
|
Constructor Summary | |
CRoleHolder()
Creates a new client role holder. |
|
CRoleHolder(RoleHolder role_holder)
Creates a new client role holder given a role holder. |
Method Summary | |
void |
addPrincipal(String role,
String principal)
Adds a principal to a role. |
boolean |
containsRole(String role)
Returns true if the specified role is contained in this role holder, else returns false. |
void |
deletePrincipal(String role,
String principal)
Deletes a principal from a role. |
void |
deleteRole(String role)
Deletes the role from the role holder. |
Enumeration |
getPrincipals(String role)
Returns an enumeration of principal names given a role. |
RoleHolder |
getRoleHolder()
Returns the role holder. |
Vector |
getRoleList()
Returns a Vector of role names (Strings) in this role holder. |
Enumeration |
getRoles()
Returns an enumeration of Role names. |
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 |
protected RoleHolder roleHolder
Constructor Detail |
public CRoleHolder()
public CRoleHolder(RoleHolder role_holder)
role_holder
- the role holder to base the client role holder onMethod Detail |
public RoleHolder getRoleHolder()
public void addPrincipal(String role, String principal) throws WTException
role
- the role to add the principal toprincipal
- the principal to add to the role
WTException
- if the principal cannot be addedpublic Enumeration getPrincipals(String role)
role
- the role to find the principals ofpublic void deletePrincipal(String role, String principal) throws WTException
role
- the role to delete the principal fromprincipal
- the principal to delete
WTException
- if the principal cannot be deletedpublic void deleteRole(String role) throws WTException
role
- the role to delete
WTException
- if the role cannot be deletedpublic Enumeration getRoles() throws WTException
WTException
- if the roles cannot be returnedpublic boolean containsRole(String role) throws WTException
WTException
- if it cannot be determined if the roles is in
this role holderpublic Vector getRoleList() throws WTException
WTException
- if the list cannot be returned
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |