wt.inf.team
Class ContainerTeam

java.lang.Object
  extended by wt.fc.WTObject
      extended by wt.team.WTRoleHolder2
          extended by wt.inf.team.ContainerTeam
All Implemented Interfaces:
Externalizable, Serializable, AccessControlled, wt.access.AccessControlList, wt.access.AdHocControlled, wt.access.PolicyAccessControlled, wt.access.SecurityLabeled, wt.admin.DomainAdministered, Identified, NetFactor, ObjectMappable, Persistable, DisplayIdentification, WTContained, WTContainedIdentified, Notifiable, Ownable, wt.recent.RecentlyVisited, RoleHolder2

public class ContainerTeam
extends WTRoleHolder2
implements Notifiable, wt.access.AdHocControlled, Ownable, wt.admin.DomainAdministered, WTContainedIdentified, wt.access.PolicyAccessControlled, wt.access.SecurityLabeled, Externalizable

Use the newContainerTeam static factory method(s), not the ContainerTeam constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: true

Extendable: false

See Also:
Serialized Form

Method Summary
 HashMap getAllMembers()
          Answer a hashmap of WTPrincipalReference and the associated roles of all assignees in the RoleHolder.
 ArrayList getAllPrincipalsForTarget(Role role)
          Answer an ArrayList of enabled WTPrincipalReference of all assignees in the ContainerTeam.
 IdentificationObject getIdentificationObject()
          Constructs and returns an identification object.
 Vector getMembers()
          Returns all the members of a container team.
 Vector getRoles()
          Answer an enumeration of roles in the rolePrincipalMap

Supported API: true
 
Methods inherited from class wt.team.WTRoleHolder2
addPool, deletePoolTarget, 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
 

Method Detail

getRoles

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

Supported API: true

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

getAllPrincipalsForTarget

public ArrayList getAllPrincipalsForTarget(Role role)
                                    throws WTException
Answer an ArrayList of enabled WTPrincipalReference of all assignees in the ContainerTeam. This method returns disabled users.

Supported API: true

Parameters:
role - The role to find associated participants.
Returns:
ArrayList
Throws:
WTException

getAllMembers

public HashMap getAllMembers()
                      throws WTException
Answer a hashmap of WTPrincipalReference and the associated roles of all assignees in the RoleHolder. The hashmap keys are the principal references for the team members. The roles the member participates in is stored as an array list as the value for the key.

Supported API: true

Returns:
HashMap
Throws:
WTException

getMembers

public Vector getMembers()
                  throws WTException
Returns all the members of a container team.

Supported API: true

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

getIdentificationObject

public IdentificationObject getIdentificationObject()
                                             throws WTException
Constructs and returns an identification object. This method is the only way to obtain an identification object.

Supported API: true

Specified by:
getIdentificationObject in interface Identified
Returns:
IdentificationObject
Throws:
WTException