wt.team
Interface ActorRoleHolder2

All Superinterfaces:
RoleHolder2
All Known Subinterfaces:
IndirectRoleHolder2
All Known Implementing Classes:
WTActorRoleHolder2, WTIndirectRoleHolder2

public interface ActorRoleHolder2
extends RoleHolder2

ActorRoleHolder2 is an interface for classes implementing role to actor role mappings

Supported API: false

Extendable: false


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

Supported API: false
 void deleteActorRoleTarget(Role leftRole, ActorRole rightRole)
          Remove role to actor role assignment pair

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

Supported API: false
 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: false
 
Methods inherited from interface wt.team.RoleHolder2
addPool, addPrincipal, deletePoolTarget, deletePrincipalTarget, getPoolTarget, getPrincipalTarget
 

Method Detail

addActorRole

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

Supported API: false

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: false

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,
                                  ActorRole rightRole)
                           throws WTException
Remove role to actor role assignment pair

Supported API: false

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: false

Specified by:
getRoles in interface RoleHolder2
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: false

Specified by:
deleteRole in interface RoleHolder2
Parameters:
role - the role object that should be removed
Throws:
WTException