wt.team
Interface IndirectRoleHolder2

All Superinterfaces:
ActorRoleHolder2, RoleHolder2
All Known Implementing Classes:
WTIndirectRoleHolder2

public interface IndirectRoleHolder2
extends ActorRoleHolder2



Supported API: false

Extendable: false


Method Summary
 void addRole(Role role, Role assignment)
          Add a role to role assignment to the holder

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

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

Supported API: false
 Vector getRoles()
          Answer an enumeration of roles defined in the rolePrincipalMap, roleActorRoleMap, and the roleRoleMap

Supported API: false
 Enumeration getRoleTarget(Role leftRole)
          Answer an enumeration of the roles associated with a given role.
 
Methods inherited from interface wt.team.ActorRoleHolder2
addActorRole, deleteActorRoleTarget, getActorRoleTarget
 
Methods inherited from interface wt.team.RoleHolder2
addPool, addPrincipal, deletePoolTarget, deletePrincipalTarget, getPoolTarget, getPrincipalTarget
 

Method Detail

addRole

public void addRole(Role role,
                    Role assignment)
             throws WTException
Add a role to 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

getRoleTarget

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

Supported API: false

Parameters:
leftRole -
Returns:
Enumeration
Throws:
WTException

deleteRoleTarget

public void deleteRoleTarget(Role leftRole,
                             Role rightRole)
                      throws WTException
Remove role to 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, roleActorRoleMap, and the roleRoleMap

Supported API: false

Specified by:
getRoles in interface ActorRoleHolder2
Returns:
Vector
Throws:
WTException

deleteRole

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

Supported API: false

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