wt.clients.lifecycle.administrator
Class CIndirectRoleHolder

java.lang.Object
  extended bywt.clients.util.PersistableItem
      extended bywt.clients.project.CRoleHolder
          extended bywt.clients.lifecycle.administrator.CIndirectRoleHolder
Direct Known Subclasses:
CPhaseTemplate

public class CIndirectRoleHolder
extends CRoleHolder

Subclass of CRoleHolder which handles dealing with Role to Role mappings.


Field Summary
 
Fields inherited from class wt.clients.project.CRoleHolder
roleHolder
 
Fields inherited from class wt.clients.util.PersistableItem
 
Constructor Summary
protected CIndirectRoleHolder()
          Creates a new empty CIndirectRoleHolder.
protected CIndirectRoleHolder(IndirectRoleHolder role_holder)
          Creates a new CIndirectRoleHolder given a server IndirectRoleHolder.
 
Method Summary
protected  void addRoleTarget(String role, String target)
          Adds a role to role mapping.
 void deleteRoleTarget(String role, String target)
          Deletes a role from a role to role mapping.
 Vector getRoleList()
          Returns a Vector of roles in the role holder.
 Enumeration getRoleTargets(String role)
          Returns an enumeration of Role Target names.
 
Methods inherited from class wt.clients.project.CRoleHolder
addPrincipal, containsRole, deletePrincipal, deleteRole, getPrincipals, getRoleHolder, getRoles
 
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
 

Constructor Detail

CIndirectRoleHolder

protected CIndirectRoleHolder()
Creates a new empty CIndirectRoleHolder.


CIndirectRoleHolder

protected CIndirectRoleHolder(IndirectRoleHolder role_holder)
Creates a new CIndirectRoleHolder given a server IndirectRoleHolder.

Parameters:
role_holder - the server role holder.
Method Detail

addRoleTarget

protected void addRoleTarget(String role,
                             String target)
                      throws WTException
Adds a role to role mapping.

Parameters:
role - the role to map another role to
target - the role to map
Throws:
WTException - if the role target cannot be added

getRoleTargets

public Enumeration getRoleTargets(String role)
                           throws WTException
Returns an enumeration of Role Target names.

Parameters:
role - the role to find the targets of
Throws:
WTException - if the role targets cannot be found

deleteRoleTarget

public void deleteRoleTarget(String role,
                             String target)
                      throws WTException
Deletes a role from a role to role mapping.

Parameters:
role - the role to delete the mapping from
target - the role to unmap
Throws:
WTException - if the role target cannot be deleted

getRoleList

public Vector getRoleList()
                   throws WTException
Returns a Vector of roles in the role holder.

Overrides:
getRoleList in class CRoleHolder
Throws:
WTException - if the role targets cannot be found