wt.team
Class WTActorRoleHolder2

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.team.WTRoleHolder2
          extended by wt.team.WTActorRoleHolder2
All Implemented Interfaces:
Externalizable, Serializable, NetFactor, ObjectMappable, Persistable, DisplayIdentification, wt.team.ActorRoleHolder2, RoleHolder2

public abstract class WTActorRoleHolder2
extends WTRoleHolder2
implements wt.team.ActorRoleHolder2, Externalizable



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 void addActorRole(Role role, wt.project.ActorRole assignment)
          Add a role to actor role assignment to the holder

Supported API: true
 void deleteActorRoleTarget(Role leftRole, wt.project.ActorRole rightRole)
          Remove role to actor role assignment pair

Supported API: true
 void deleteRole(Role role)
          Remove the role and all associated principals and actor roles from the rolePrincipalMap and the roleActorRoleMap

Supported API: true
 Enumeration getActorRoleTarget(Role leftRole)
          Answer an enumeration of the actor roles associated with a given role.
 Vector getRoles()
          Answer an enumeration of roles defined in the rolePrincipalMap and the roleActorRoleMap

Supported API: true
 
Methods inherited from class wt.team.WTRoleHolder2
addPool, addPrincipal, deletePoolTarget, deletePrincipalTarget, getMembers, getPoolTarget, getPrincipalTarget
 
Methods inherited from class wt.fc.WTObject
getDisplayIdentifier, getDisplayIdentity, getDisplayType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wt.team.RoleHolder2
getPrincipalTarget
 

Method Detail

addActorRole

public void addActorRole(Role role,
                         wt.project.ActorRole assignment)
                  throws WTException
Add a role to actor role assignment to the holder

Supported API: true

Parameters:
role - the 'key' role object to be added to the RoleHolder
assignment - The 'associated' role object that is mapped to another role. At runtime, this role is resolved to a principal.
Throws:
WTException

getActorRoleTarget

public Enumeration getActorRoleTarget(Role leftRole)
                               throws WTException
Answer an enumeration of the actor roles associated with a given role.

Supported API: true

Parameters:
leftRole - the role object which is the key used to retrieve all the associated actor roles
Returns:
Enumeration
Throws:
WTException

deleteActorRoleTarget

public void deleteActorRoleTarget(Role leftRole,
                                  wt.project.ActorRole rightRole)
                           throws WTException
Remove role to actor role assignment pair

Supported API: true

Parameters:
leftRole - the 'key' role object in the role to role assocation that should be removed
rightRole - the 'associated' role in the role to role map that should be removed
Throws:
WTException

getRoles

public Vector getRoles()
                throws WTException
Answer an enumeration of roles defined in the rolePrincipalMap and the roleActorRoleMap

Supported API: true

Overrides:
getRoles in class WTRoleHolder2
Returns:
Vector
Throws:
WTException

deleteRole

public void deleteRole(Role role)
                throws WTException
Remove the role and all associated principals and actor roles from the rolePrincipalMap and the roleActorRoleMap

Supported API: true

Overrides:
deleteRole in class WTRoleHolder2
Parameters:
role -
Throws:
WTException