|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.team.StandardTeamService
Standard implementation of the team service interfaces.
Use the newStandardTeamService
static factory method(s),
not the StandardTeamService
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: false
Extendable: false
Nested Class Summary | |
(package private) static class |
StandardTeamService.TeamTemplateFlusher
|
Field Summary | |
private static boolean |
ADD_LC_ROLES_IN_CREATE
|
private static boolean |
ALLOW_RERESOLUTION_LC_ROLES
|
private static boolean |
BYPASS_DELETE_EVENT_DISPATCH
|
private static String |
CLASSNAME
|
private static String |
deleteRPMSQL
|
private static boolean |
ENABLED_ONLY
|
private static Object |
IGNORE_DELETE_KEY
|
private static String |
RESOURCE
|
static String |
RETEAM_WITHOUT_MODIFYING
|
private static SequencePool |
sequencePool
|
private static String |
SERVICE_NAME
|
static Object |
TEAM
|
private static String |
teamKey
|
private static Object |
UNDO_CHECKOUT_KEY
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardTeamService()
|
Method Summary | |
void |
addLCRoles(PhaseTemplate phaseTemplate,
LifeCycleManaged object)
Deprecated. |
void |
addRoleActorRoleMap(Role role,
ActorRole actor,
WTActorRoleHolder2 roleHolder)
Add a role to actor role assignment to the roleholder Supported API: false |
void |
addRolePoolMap(Role role,
WTObject pool,
WTRoleHolder2 roleHolder)
Add a role to pooll assignment to the roleholder If the WTPrincinpal is not enabled, this action will be ignored. |
void |
addRolePrincipalMap(Role role,
WTPrincipal principal,
WTRoleHolder2 roleHolder)
Add a role to principal assignment to the roleholder If the WTPrincinpal is not enabled, this action will be ignored. |
void |
addRoleRoleMap(Role leftRole,
Role rightRole,
WTIndirectRoleHolder2 roleHolder)
Add a role to role assignment to the roleholder Supported API: false |
private Hashtable |
addToHash(Hashtable hash,
Role role,
WTPrincipalReference pRef)
|
private void |
addToMap(Map map,
Role role,
Object object)
|
void |
augmentRoles(LifeCycleManaged object,
TeamReference team)
Given a LifeCycleManaged object and a TeamReference, change the role participants to reflect those in the RoleHolder2 and dynamically update the participants of all Workflow Processes associated to the TeamReference. |
private CompositeWhereExpression |
buildRemoveMembersWhereClause(Map ending,
Map starting,
CompositeWhereExpression whereExpression)
|
private Map |
calculateNewMembers(Map finalMap,
Map startingMap)
|
private static void |
changeAdministrativeDomain(AdminDomainRef d_ref,
TeamReference teamRef)
|
private Map |
cloneMap(Map original)
Clones each list in the map |
Team |
copyTeam(Team team,
String copyName,
AdminDomainRef domain,
boolean persist)
Produces a copy of the Team object with the name passed as argument. |
TeamTemplate |
copyTeamTemplate(TeamTemplate aTeamTemplate,
String copyName,
String folderLocation,
boolean persist)
Produces a copy of the TeamTemplate object with the name passed as argument. |
TeamTemplate |
copyTeamTemplate(WTContainerRef containerRef,
TeamTemplate aTeamTemplate,
String copyName,
String folderLocation,
boolean persist)
Produces a copy of the TeamTemplate object with the name passed as argument. |
private RoleActorRoleMap |
createRoleActorRoleMap(Role role,
ActorRole actor,
WTActorRoleHolder2 roleHolder)
|
private void |
createRoleActorRoleMaps(WTCollection collection,
WTActorRoleHolder2 roleHolder,
Map map)
|
private RolePrincipalMap |
createRolePrincipalMap(Role role,
WTPrincipalReference principalRef,
WTRoleHolder2 roleHolder)
|
private RolePrincipalMap |
createRolePrincipalMap(Role role,
WTPrincipal principal,
WTRoleHolder2 roleHolder)
|
private WTRoleHolder2 |
createRolePrincipalMaps(WTCollection collection,
WTRoleHolder2 roleHolder,
Map map)
|
TeamReference |
createTeam(TeamTemplateReference teamTemplateReference,
String teamName,
String location,
Persistable object)
Deprecated. @R7.0. Use createTeam(WTRoleHolder2, name, object) instead. |
TeamReference |
createTeam(WTRoleHolder2 roleHolder,
String teamName,
Persistable object)
Creates a new Team based off the roleholder. |
private Team |
createTeam(WTRoleHolder2 roleHolder,
String teamName,
Persistable object,
boolean persist)
|
List |
createTeams(Collection collection,
WTKeyedMap phaseTemplates)
Creates a new Team based off the roleholder. |
WTList |
createTeams(WTList objects,
List names,
WTRoleHolder2 roleHolder)
This api allows multiple teams to be created at one time for different objects. |
TeamTemplateReference |
createTeamTemplate(String teamTemplateName,
String location,
String description,
TeamCategory category,
boolean enabled)
Creates a new TeamTemplate. |
TeamTemplateReference |
createTeamTemplate(WTContainerRef containerRef,
String teamTemplateName,
String location,
String description,
TeamCategory category,
boolean enabled)
Creates a new Team based off the Team Template. |
void |
deleteNonSharedTeams(WTCollection collection)
|
void |
deleteRole(Role role,
WTRoleHolder2 roleHolder)
Remove all occurances of a Role object from the role holde Supported API: false |
void |
deleteRoleActorRoleMap(Role role,
ActorRole actor,
WTActorRoleHolder2 roleHolder)
Remove a role to actor role assignment from the roleholder. |
void |
deleteRolePoolMap(Role role,
WTObject pool,
WTRoleHolder2 roleHolder)
Remove a role to pool assignment from the roleholder Supported API: false |
void |
deleteRolePrincipalMap(Role role,
WTPrincipal principal,
WTRoleHolder2 roleHolder)
Remove a role to principal assignment from the roleholder Supported API: false |
private static void |
deleteRolePrincipalMaps(Team team)
|
private void |
deleteRolePrincipalMaps(WTPrincipal principal)
|
void |
deleteRoleRoleMap(Role leftRole,
Role rightRole,
WTIndirectRoleHolder2 roleHolder)
Remove a role to role assignment from the roleholder Supported API: false |
private void |
deleteTeams(Set set,
QueryResult results)
|
protected void |
dispatchVetoableEvent(String eventType,
TeamManaged object)
Dispatches a TeamServiceEvent that includes the event type and target (i.e., TeamManaged object). |
TeamManaged |
doReteam(TeamManaged object,
TeamTemplateReference teamTempRef)
Associate the object with a new team Supported API: false |
HashMap |
findAllParticipantsByRole(WTRoleHolder2 roleholder)
This API returns a HashMap of all the participants of the role holder. |
Vector |
findCandidateTeamDistributionLists()
Answer a vector of teamDistributionList references that are enabled Supported API: false |
Vector |
findCandidateTeamDistributionLists(AdminDomainRef domainRef)
Answer a vector of teamDistributionList references that are enabled. |
Vector |
findCandidateTeamDistributionLists(WTContainerRef containerRef)
Answer a vector of teamDistributionList references that are enabled Supported API: false |
Vector |
findCandidateTeamDistributionLists(WTContainerRef containerRef,
AdminDomainRef domainRef)
Answer a vector of teamDistributionList references that are enabled. |
Vector |
findCandidateTeams()
Deprecated. @ R7.0. |
Vector |
findCandidateTeams(AdminDomainRef adminDomainRef)
Deprecated. @R7.0. |
Vector |
findCandidateTeamTemplates()
Answer a vector of teamTemplate references that the team managed object can be assigned to Supported API: false |
Vector |
findCandidateTeamTemplates(AdminDomainRef domainRef)
Answer a vector of teamTemplate references that the team managed object can be assigned to. |
Vector |
findCandidateTeamTemplates(WTContainerRef containerRef)
Answer a vector of teamTemplate references that the team managed object can be assigned to Supported API: false |
Vector |
findCandidateTeamTemplates(WTContainerRef containerRef,
AdminDomainRef domainRef)
Answer a vector of teamTemplate references that the team managed object can be assigned to Supported API: false |
private Vector |
findEnabledTeamDistributionListsByDomain(WTContainerRef containerRef,
AdministrativeDomain aDomain)
|
private Vector |
findEnabledTeamsByDomain(AdministrativeDomain aDomain)
find methods * |
private Vector |
findEnabledTeamTemplatesByDomain(WTContainerRef containerRef,
AdministrativeDomain aDomain)
|
private Map |
findObjectsTeams(WTList list)
This API finds all the teams associated with the objects in a collection and stores them. |
QueryResult |
findRoleActorRoleMap(Role role,
ActorRole actor,
WTRoleHolder2 roleHolder)
Based on the input parameters, return a QueryResult of RoleActorRoleMap objects Supported API: false |
QueryResult |
findRolePoolMap(Role role,
WTObject pool,
WTRoleHolder2 roleHolder)
Based on the input parameters, return a QueryResult of RolePoolMap objects Supported API: false |
QueryResult |
findRolePrincipalMap(Role role,
WTPrincipal principal,
WTRoleHolder2 roleHolder)
Based on the input parameters, return a QueryResult of RolePrincipalMap objects Supported API: false |
private QueryResult |
findRolePrincipalMap(Role role,
WTPrincipal principal,
WTRoleHolder2 roleHolder,
boolean returnDisabled)
Based on the input parameters, return a QueryResult of RolePrincipalMap objects Supported API: false |
QueryResult |
findRoleRoleMap(Role leftRole,
Role rightRole,
WTRoleHolder2 roleHolder)
Based on the input parameters, return a QueryResult of RoleRoleMap objects Supported API: false |
Vector |
findRoles(WTRoleHolder2 roleHolder)
Return an enumeration of all roles in the WTRoleHolder2 Supported API: false |
Vector |
findTeams()
Deprecated. @R.70. |
Vector |
findTeams(AdminDomainRef adminDomainRef)
Deprecated. @R.70. |
Vector |
findTeams(AdminDomainRef adminDomainRef,
String teamName)
Deprecated. @R.70 |
private Vector |
findTeamsByDomain(AdministrativeDomain aDomain)
|
Vector |
findTeamTemplates()
Answer a vector of TeamTemplateReferences for all team templates that match the input parameters, including the disabled ones Supported API: false |
Vector |
findTeamTemplates(WTContainerRef containerRef)
Answer a vector of TeamTemplateReferences for all team templates that match the input parameters, including the disabled ones Supported API: false |
private static Enumeration |
findWorkflowTeams(WTUser wtuser,
WTContainer container)
|
String |
getConceptualClassname()
Deprecated. |
TeamTemplate |
getEnabledTeamTemplate(WTContainerRef containerRef,
String teamTemplateIdentity)
Given the name or the identity of a TeamTemplate, find the enabled TeamTemplate object. |
private String |
getIdentity(TeamManaged p)
|
private Object |
getIgnoreDelete()
|
private String |
getKey(WTContainerRef ref,
String templateName)
|
private Map |
getMapOfTeams(WTCollection collection)
|
Vector |
getMembers(RoleHolder2 roleHolder)
Answer a vector of WTPrincipalReference of all members of a team object (Team, TeamTemplate or DistributionList) Supported API: false |
private Map |
getRolePrincipalMapsForTeams(Set set)
|
private String |
getStringOfTeamDistributionListIdentities(QueryResult qr)
|
private String |
getStringOfTeamIdentities(QueryResult qr)
|
private String |
getStringOfTeamTemplateIdentities(QueryResult qr)
|
Team |
getTeam(AdministrativeDomain adminDomain,
String teamName)
Deprecated. @R.70. |
Team |
getTeam(String name)
This API finds a team by the specified name. |
Team |
getTeam(TeamManaged object)
Given a TeamManaged object, answer the assigned Team Supported API: false |
TeamDistributionList |
getTeamDistributionList(AdministrativeDomain adminDomain,
String teamDistributionListName)
Finds a team distribution list specified by the input parameters. |
TeamDistributionList |
getTeamDistributionList(String teamDistributionListIdentity)
Given the name or the identity of a Team Distribution List identity, find the Team Distribution List object. |
TeamDistributionList |
getTeamDistributionList(WTContainerRef containerRef,
AdministrativeDomain adminDomain,
String teamDistributionListName)
Returns the team distribution list based on the parameters passed in. |
TeamDistributionList |
getTeamDistributionList(WTContainerRef containerRef,
String teamDistributionListIdentity)
Given the name or the identity of a Team Distribution List identity, find the Team Distribution List object. |
Vector |
getTeams()
Deprecated. @R.70. |
TeamTemplate |
getTeamTemplate(AdministrativeDomain adminDomain,
String teamTemplateName)
Returns the team template by the specified name in the administrative domain. |
TeamTemplate |
getTeamTemplate(String teamTemplateIdentity)
Given the name or the identity of a TeamTemplate, find the TeamTemplate object. |
TeamTemplate |
getTeamTemplate(TeamManaged object)
Given a TeamManaged object, answer the assigned TeamTemplate Supported API: false |
TeamTemplate |
getTeamTemplate(WTContainerRef containerRef,
AdministrativeDomain adminDomain,
String teamTemplateName)
Finds a team template as specified by the input parameters. |
TeamTemplate |
getTeamTemplate(WTContainerRef containerRef,
String teamTemplateIdentity)
Given the name or the identity of a TeamTemplate, find the TeamTemplate object. |
Vector |
getTeamTemplateNames()
Retrieve an unsorted Vector of TeamTemplate names as strings. |
Vector |
getTeamTemplateNames(WTContainerRef containerRef)
Retrieve an unsorted Vector of TeamTemplate names as strings. |
Vector |
getTeamTemplates()
Answer a vector of teamTemplate references for all team templates including the disabled ones Supported API: false |
Vector |
getTeamTemplates(WTContainerRef containerRef)
Answer a vector of teamTemplate references for all team templates including the disabled ones Supported API: false |
private boolean |
isCheckedOut(TeamManaged object)
|
private boolean |
isWorkingCopy(TeamManaged object)
Miscellaneous Methods * |
static StandardTeamService |
newStandardTeamService()
Default factory for the class. |
protected void |
performStartupProcess()
Overrides the startup process specific to the team service to provide custom startup for event subscription. |
Map |
populateRoleActorRoleMap(WTActorRoleHolder2 actorRoleHolder)
This API returns a Map of all the actor roles of the role holder2. |
Map |
populateRolePrincipalHash(WTRoleHolder2 roleHolder)
This API returns a Map of all the participants of the role holder. |
private Map |
populateRolePrincipalHash(WTRoleHolder2 roleHolder,
boolean returnDisabled)
creates a role-principal mapping of roleholder membership |
private void |
printResults(Map map)
|
protected void |
processCleanupLinkEvent(WTRoleHolder2 target,
BinaryLink link)
|
protected void |
processLatestIterationChange(TeamManaged original,
TeamManaged replacement)
Maintain the cookie information upon checkin, etc |
void |
registerEvents(ManagerService manager)
Overrides the registration of all applicable lifecycle service events with the service manager. |
private Hashtable |
removeFromHash(Hashtable hash,
Role role,
WTPrincipalReference pRef)
|
private void |
removeFromMap(Map map,
Role role,
Object object)
|
private static void |
removeSecuredPrincipals(Map map)
removeSecuredPrincipals - removes the principals the current session principal does not have access to. |
private void |
replaceUser(ContainerTeamManaged container,
WTUser replacedUser,
WTUser newUser)
|
WTPrincipalReference |
resolveActorRole(ActorRole actorRole,
Persistable object)
Given an actorRole and an object, resolve the actor role to a principal Supported API: false |
private Map |
resolveAllTeamMembers(WTRoleHolder2 roleHolder,
Team team,
Persistable object,
PhaseTemplate phaseTemplate)
|
private Vector |
resolveByAllPrincipals(Map map,
Role role,
PhaseTemplate phaseTemplate,
Persistable object,
TeamTemplate teamTemplate,
Vector principals)
|
private void |
resolveContainerTeamRoles(Map map,
Persistable object)
|
List |
resolveLCRoles(WTList list,
WTKeyedMap phaseTemplates)
This API resolved the lifecycle roles for the current phase of the lifecycle. |
private void |
resolvePhaseTemplateRoles(Map map,
TeamTemplate teamTemplate,
Persistable object,
PhaseTemplate phaseTemplate)
|
private Map |
resolveWTRoleHolder2Roles(WTRoleHolder2 roleHolder,
Persistable object)
|
TeamManaged |
reteam(TeamManaged object,
TeamTemplateReference teamTemplateRef)
Associate a team managed object with a new team. |
void |
setIgnoreDelete(Object obj)
Supported API: false |
TeamManaged |
setTeam(TeamManaged object,
String teamName,
String domain)
Set the team of the TeamManaged object Supported API: false |
private TeamManaged |
setTeam(TeamManaged object,
Team aTeam)
|
private TeamManaged |
setTeam(TeamManaged object,
TeamReference teamRef)
|
TeamManaged |
setTeamTemplate(TeamManaged object,
String teamTemplateName,
String domain)
Set the teamTemplate of the TeamManaged object Supported API: false |
private TeamManaged |
setTeamTemplate(TeamManaged object,
TeamTemplate aTeamTemplate)
|
TeamManaged |
setTeamTemplate(WTContainerRef containerRef,
TeamManaged object,
String teamTemplateName,
String domain)
Set the teamTemplate of the TeamManaged object Supported API: false |
private Vector |
teamDistributionListQRtoTeamDistributionListRefVector(QueryResult aResultSet)
|
private Vector |
teamQRtoTeamRefVector(QueryResult aResultSet)
|
private Vector |
teamTemplateQRtoTeamTemplateRefVector(QueryResult aResultSet)
|
void |
updateCache(WTRoleHolder2 copy,
WTRoleHolder2 readOnly)
This API should be used internally by the team service only. |
private void |
updateReadOnlyContainerTeam(ContainerTeam team,
RolePrincipalMap rpm,
Role role,
boolean add)
|
private void |
updateReadOnlyTeamTemplate(TeamTemplate teamTemplate,
RoleActorRoleMap rarm,
Role role,
boolean add)
|
private void |
updateReadOnlyTeamTemplate(TeamTemplate teamTemplate,
RolePrincipalMap rpm,
Role role,
boolean add)
|
private void |
validateIsLatestIteration(TeamManaged object,
String action)
|
TeamManaged |
validateReteam(TeamManaged object,
TeamTemplateReference teamTempRef)
Perform pre-team validations Supported API: false |
Vector |
whereUsed(TeamReference team)
Answer a Vector of TeamManaged objects Note: Any services that persist a TeamReference are individually responsible for making sure the Team doesn't disappear on them. |
Vector |
whereUsed(TeamTemplateReference teamTemplate)
Answer a Vector of Team objects Note: Any services that persist a TeamTemplateReference are individually responsible for making sure the Team Template doesn't disappear on them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final Object IGNORE_DELETE_KEY
public static final Object TEAM
private static final String teamKey
public static final String RETEAM_WITHOUT_MODIFYING
private static final boolean VERBOSE
private static final String SERVICE_NAME
private static final boolean ENABLED_ONLY
private static final boolean ADD_LC_ROLES_IN_CREATE
private static final boolean BYPASS_DELETE_EVENT_DISPATCH
private static final boolean ALLOW_RERESOLUTION_LC_ROLES
private static final SequencePool sequencePool
private static final Object UNDO_CHECKOUT_KEY
private static final String deleteRPMSQL
Constructor Detail |
public StandardTeamService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService manager)
registerEvents
in interface Manager
registerEvents
in class StandardManager
manager
- the ManagerService object used to override the registration of applicable events with the service managerprotected void dispatchVetoableEvent(String eventType, TeamManaged object) throws WTException, WTPropertyVetoException
eventType
- The name of the PersistentManagerEvent type.object
- The target of the persistable operation.
WTException
WTPropertyVetoException
public static StandardTeamService newStandardTeamService() throws WTException
WTException
public TeamManaged doReteam(TeamManaged object, TeamTemplateReference teamTempRef) throws WTException, TeamException
doReteam
in interface TeamServiceSvr
object
- the TeamManaged object to be re-teamedteamTempRef
-
WTException
TeamException
public TeamManaged validateReteam(TeamManaged object, TeamTemplateReference teamTempRef) throws WTException, TeamException
validateReteam
in interface TeamServiceSvr
object
- theTeamManaged object that should be re-teamed.teamTempRef
-
WTException
TeamException
public WTPrincipalReference resolveActorRole(ActorRole actorRole, Persistable object) throws WTException
resolveActorRole
in interface TeamServiceSvr
actorRole
- the ActorRole to be resolvedobject
- the object that is used to lookup a principal for the ActorRole
WTException
public List createTeams(Collection collection, WTKeyedMap phaseTemplates) throws WTException
createTeams
in interface TeamServiceSvr
collection
- A collection of a collection of objects that need a team. A new team will be created for each object in the collection. This sub collections should be a collection of Persistables.phaseTemplates
-
WTException
public List resolveLCRoles(WTList list, WTKeyedMap phaseTemplates) throws WTException
resolveLCRoles
in interface TeamServiceSvr
list
- This is a WTList of objects whoose team needs to be updated.phaseTemplates
- This is a map of the phaseTemplates to the objects in the list.
WTException
public Vector findCandidateTeamTemplates() throws WTException, TeamException
findCandidateTeamTemplates
in interface TeamService
WTException
TeamException
public Vector findCandidateTeamTemplates(AdminDomainRef domainRef) throws WTException, TeamException
findCandidateTeamTemplates
in interface TeamService
domainRef
- the domain to search for team templates
WTException
TeamException
public TeamTemplate getTeamTemplate(TeamManaged object) throws WTException, TeamException
getTeamTemplate
in interface TeamService
object
- the object whoose team template should be returned
WTException
TeamException
public TeamManaged reteam(TeamManaged object, TeamTemplateReference teamTemplateRef) throws WTException, TeamException
reteam
in interface TeamService
object
- the TeamManaged object that should be associated with a new teamteamTemplateRef
- a reference to a team, a TeamTemplateReference of the Team Template that the object should be reassigned to.
WTException
TeamException
public Vector getMembers(RoleHolder2 roleHolder) throws WTException
getMembers
in interface TeamService
roleHolder
- the roleholder of interest
WTException
public TeamTemplate copyTeamTemplate(TeamTemplate aTeamTemplate, String copyName, String folderLocation, boolean persist) throws WTException
copyTeamTemplate
in interface TeamService
aTeamTemplate
- the team template to copycopyName
- the name to assign to teh copyfolderLocation
- the location to store the team template. if null, the location will be set to the same location as the team template to copypersist
- specifies whether or not to persist the team template that is returned
WTException
public TeamTemplate getTeamTemplate(String teamTemplateIdentity) throws WTException, TeamException
getTeamTemplate
in interface TeamService
teamTemplateIdentity
- a String that contains the identity of the TeamTemplate
WTException
TeamException
public TeamReference createTeam(TeamTemplateReference teamTemplateReference, String teamName, String location, Persistable object) throws WTException
createTeam
in interface TeamService
teamTemplateReference
- The TeamTemplateReference from which the Team is created.teamName
- The name for the new Team.location
- the administrative domain where the team should be savedobject
- the object assigned to the team which is used to resolve actor roles into the team
WTException
public Vector whereUsed(TeamReference team) throws WTException, TeamException
whereUsed
in interface TeamService
team
- the team of interest
WTException
TeamException
public Vector findCandidateTeams() throws WTException
findCandidateTeams
in interface TeamService
WTException
public Vector findCandidateTeams(AdminDomainRef adminDomainRef) throws WTException
findCandidateTeams
in interface TeamService
adminDomainRef
- the domain to search for teams
WTException
public Team copyTeam(Team team, String copyName, AdminDomainRef domain, boolean persist) throws WTException
copyTeam
in interface TeamService
team
- the team to copycopyName
- the name to assign to the copydomain
- the domain to assign to the team. if the domain is null, it stores it in the same location as the team to copypersist
- specifies whether or not to persist the returned team
WTException
public Vector findTeams(AdminDomainRef adminDomainRef, String teamName) throws WTException
findTeams
in interface TeamService
adminDomainRef
- the administrative domain to search for teamsteamName
- the name of the team of interest
WTException
public Vector findTeams() throws WTException
findTeams
in interface TeamService
WTException
public Vector findTeams(AdminDomainRef adminDomainRef) throws WTException
findTeams
in interface TeamService
adminDomainRef
- the administrative domain to search for teams
WTException
public void addRolePrincipalMap(Role role, WTPrincipal principal, WTRoleHolder2 roleHolder) throws WTException
addRolePrincipalMap
in interface TeamService
role
- the role to add the principal to in the roleholderprincipal
- the principal to add to the roleroleHolder
- the roleholder to add the role-principal mapping to
WTException
public void addRoleActorRoleMap(Role role, ActorRole actor, WTActorRoleHolder2 roleHolder) throws WTException
addRoleActorRoleMap
in interface TeamService
role
- the role to add the actor role to in the actor roleholderactor
- the actor role to add to the roleroleHolder
- the roleholder to add the role-actor role map to
WTException
public void addRoleRoleMap(Role leftRole, Role rightRole, WTIndirectRoleHolder2 roleHolder) throws WTException
addRoleRoleMap
in interface TeamService
leftRole
- the role to add the rightrole to in the roleholderrightRole
- the role to add to the leftrole in the roleholderroleHolder
- the roleholder the role-role mapping should be added to
WTException
public void addRolePoolMap(Role role, WTObject pool, WTRoleHolder2 roleHolder) throws WTException
addRolePoolMap
in interface TeamService
role
- the role to add the pool to in the roleholderpool
- the pool (WTPrincipal or Team) to add to the roleholderroleHolder
- the roleholder to add the role-pool mapping to
WTException
public void deleteRole(Role role, WTRoleHolder2 roleHolder) throws WTException
deleteRole
in interface TeamService
role
- the role to remove from the roleholderroleHolder
- the roleholder of interest
WTException
public QueryResult findRolePrincipalMap(Role role, WTPrincipal principal, WTRoleHolder2 roleHolder) throws WTException
findRolePrincipalMap
in interface TeamService
role
- the role to use in the searchprincipal
- the principal to use in the searchroleHolder
- the roleholder to use in the search
WTException
public void deleteRolePrincipalMap(Role role, WTPrincipal principal, WTRoleHolder2 roleHolder) throws WTException
deleteRolePrincipalMap
in interface TeamService
role
- the role to remove the principal from in the roleholderprincipal
- the principal to remove from the role in the roleholderroleHolder
- the roleholder of interest
WTException
public void deleteRoleActorRoleMap(Role role, ActorRole actor, WTActorRoleHolder2 roleHolder) throws WTException
deleteRoleActorRoleMap
in interface TeamService
role
- the role to remove from the actor from in the roleholderactor
- the actor role to remove from the role in the roleholderroleHolder
- the roleholder of interest
WTException
public void deleteRoleRoleMap(Role leftRole, Role rightRole, WTIndirectRoleHolder2 roleHolder) throws WTException
deleteRoleRoleMap
in interface TeamService
leftRole
- the role to remove the right role from in the roleholderrightRole
- the role to remove from the left role in the roleholderroleHolder
- the roleholder of interest
WTException
public void deleteRolePoolMap(Role role, WTObject pool, WTRoleHolder2 roleHolder) throws WTException
deleteRolePoolMap
in interface TeamService
role
- the role to remove the pool from in the roleholderpool
- the pool to remove from the role in the roleholderroleHolder
- the roleholder of interest
WTException
public QueryResult findRoleActorRoleMap(Role role, ActorRole actor, WTRoleHolder2 roleHolder) throws WTException
findRoleActorRoleMap
in interface TeamService
role
- the role to use in the searchactor
- the actor role to use in the searchroleHolder
- the roleholder to use in the search
WTException
public QueryResult findRoleRoleMap(Role leftRole, Role rightRole, WTRoleHolder2 roleHolder) throws WTException
findRoleRoleMap
in interface TeamService
leftRole
- the left role to use in the searchrightRole
- the right role to use in the searchroleHolder
- the roleholder to use in the search
WTException
public QueryResult findRolePoolMap(Role role, WTObject pool, WTRoleHolder2 roleHolder) throws WTException
findRolePoolMap
in interface TeamService
role
- the role to use in the searchpool
- the pool to use in the searchroleHolder
- the roleholder to use in the search
WTException
public Vector findRoles(WTRoleHolder2 roleHolder) throws WTException
findRoles
in interface TeamService
roleHolder
- the roleholder to use in the search
WTException
public Vector whereUsed(TeamTemplateReference teamTemplate) throws WTException, TeamException
whereUsed
in interface TeamService
teamTemplate
- the team template of interest
WTException
TeamException
public void addLCRoles(PhaseTemplate phaseTemplate, LifeCycleManaged object) throws TeamException, WTException
addLCRoles
in interface TeamService
phaseTemplate
- the PhaseTemplate containing the role-participant mappings for the lifecycle phaseobject
- the object used during role resolution
TeamException
WTException
public TeamTemplateReference createTeamTemplate(String teamTemplateName, String location, String description, TeamCategory category, boolean enabled) throws WTException
createTeamTemplate
in interface TeamService
teamTemplateName
- the name to assign to the team templatelocation
- the location where the team should be storeddescription
- the description to assign to the team templatecategory
- the TeamCategory to assign to the team templateenabled
- specifies whether or not the team template should be enabled
WTException
public TeamTemplate getTeamTemplate(AdministrativeDomain adminDomain, String teamTemplateName) throws WTException, TeamException
getTeamTemplate
in interface TeamService
adminDomain
- the administrative domain to search for the team templateteamTemplateName
- the name of the team template to search for
WTException
TeamException
public Team getTeam(AdministrativeDomain adminDomain, String teamName) throws WTException, TeamException
getTeam
in interface TeamService
adminDomain
- the administrative domain to search for teamsteamName
- the name of the team to search for
WTException
TeamException
public Vector getTeams() throws WTException, TeamException
getTeams
in interface TeamService
WTException
TeamException
public TeamDistributionList getTeamDistributionList(String teamDistributionListIdentity) throws WTException, TeamException
getTeamDistributionList
in interface TeamService
teamDistributionListIdentity
- a String that contains the identity of the Team
WTException
TeamException
public Vector findCandidateTeamDistributionLists() throws WTException, TeamException
findCandidateTeamDistributionLists
in interface TeamService
WTException
TeamException
public Vector findCandidateTeamDistributionLists(AdminDomainRef domainRef) throws WTException, TeamException
findCandidateTeamDistributionLists
in interface TeamService
domainRef
- the administrative domain to search in for team distribution lists
WTException
TeamException
public TeamDistributionList getTeamDistributionList(AdministrativeDomain adminDomain, String teamDistributionListName) throws WTException, TeamException
getTeamDistributionList
in interface TeamService
adminDomain
- the administrative domain to search for team distribution lists inteamDistributionListName
- the name of the team distribution list to search for
WTException
TeamException
public Vector getTeamTemplateNames() throws WTException
getTeamTemplateNames
in interface TeamService
WTException
public Vector findTeamTemplates() throws WTException
findTeamTemplates
in interface TeamService
WTException
public Team getTeam(TeamManaged object) throws WTException, TeamException
getTeam
in interface TeamService
object
- the TeamManaged object whoose team should be returned
WTException
TeamException
public TeamManaged setTeamTemplate(TeamManaged object, String teamTemplateName, String domain) throws WTException, TeamException, WTPropertyVetoException
setTeamTemplate
in interface TeamService
object
- the TeamManaged object whose teamTemplate should be setteamTemplateName
- a String that contains the name of the teamTemplate to set on the TeamManaged object.domain
- a String that contain the AdministrativeDomain of the Team that should be set
WTException
TeamException
WTPropertyVetoException
public TeamManaged setTeam(TeamManaged object, String teamName, String domain) throws WTException, TeamException, WTPropertyVetoException
setTeam
in interface TeamService
object
- the TeamManaged object whose teamTemplate should be setteamName
- a String that contains the name of the team to set on the TeamManaged object.domain
- a String that contain the AdministrativeDomain of the Team that should be set
WTException
TeamException
WTPropertyVetoException
public Vector getTeamTemplates() throws WTException, TeamException
getTeamTemplates
in interface TeamService
WTException
TeamException
public void setIgnoreDelete(Object obj) throws WTException
setIgnoreDelete
in interface TeamService
obj
-
WTException
public Vector findCandidateTeamTemplates(WTContainerRef containerRef) throws WTException, TeamException
findCandidateTeamTemplates
in interface TeamService
containerRef
- the container to search for team templates
WTException
TeamException
public Vector findCandidateTeamTemplates(WTContainerRef containerRef, AdminDomainRef domainRef) throws WTException, TeamException
findCandidateTeamTemplates
in interface TeamService
containerRef
- the container to search for team templatesdomainRef
- the administrative domain to search for team templates
WTException
TeamException
public TeamTemplate copyTeamTemplate(WTContainerRef containerRef, TeamTemplate aTeamTemplate, String copyName, String folderLocation, boolean persist) throws WTException
copyTeamTemplate
in interface TeamService
containerRef
- the context where the team template should be storedaTeamTemplate
- the team template to copycopyName
- the name to assign to the copyfolderLocation
- the folder location to assign to the copy. if null, the team template will be assigned to the same location as the team template to copypersist
- specifies whether or not to persist the copy
WTException
public TeamTemplate getTeamTemplate(WTContainerRef containerRef, String teamTemplateIdentity) throws WTException, TeamException
getTeamTemplate
in interface TeamService
containerRef
- the container to search for the team templateteamTemplateIdentity
- a String that contains the identity of the TeamTemplate
WTException
TeamException
public TeamReference createTeam(WTRoleHolder2 roleHolder, String teamName, Persistable object) throws WTException
createTeam
in interface TeamService
roleHolder
- the roleholder from which the Team is createdteamName
- the name to assign to the teamobject
- the object used to resolve actor roles into the team
WTException
public TeamTemplateReference createTeamTemplate(WTContainerRef containerRef, String teamTemplateName, String location, String description, TeamCategory category, boolean enabled) throws WTException
createTeamTemplate
in interface TeamService
containerRef
- the container the team template belongs toteamTemplateName
- the name to assign to the team templatelocation
- the location of the team templatedescription
- the description to assign to the team templatecategory
- the TeamCategory to assign to the team templateenabled
- specifies whether or not the team template should be enabled
WTException
public TeamTemplate getTeamTemplate(WTContainerRef containerRef, AdministrativeDomain adminDomain, String teamTemplateName) throws WTException, TeamException
getTeamTemplate
in interface TeamService
containerRef
- the container to search for team templatesadminDomain
- the administrative domain to search for team templatesteamTemplateName
- the name of the team template to search for
WTException
TeamException
public TeamDistributionList getTeamDistributionList(WTContainerRef containerRef, String teamDistributionListIdentity) throws WTException, TeamException
getTeamDistributionList
in interface TeamService
containerRef
- the container to search for team distribution liststeamDistributionListIdentity
- a String that contains the identity of the team distribution list
WTException
TeamException
public Vector findCandidateTeamDistributionLists(WTContainerRef containerRef) throws WTException, TeamException
findCandidateTeamDistributionLists
in interface TeamService
containerRef
- the container to search for team distribution lists
WTException
TeamException
public Vector findCandidateTeamDistributionLists(WTContainerRef containerRef, AdminDomainRef domainRef) throws WTException, TeamException
findCandidateTeamDistributionLists
in interface TeamService
containerRef
- the container to search for team distribution listsdomainRef
- the domain in the container to search for team distribution lists
WTException
TeamException
public TeamDistributionList getTeamDistributionList(WTContainerRef containerRef, AdministrativeDomain adminDomain, String teamDistributionListName) throws WTException, TeamException
getTeamDistributionList
in interface TeamService
containerRef
- the container to search for the team distribution listadminDomain
- the administrative domain to search for team distribution liststeamDistributionListName
- the name of the team distribution list to search for
WTException
TeamException
public Vector getTeamTemplateNames(WTContainerRef containerRef) throws WTException
getTeamTemplateNames
in interface TeamService
containerRef
- the container to search for team template names
WTException
public Vector findTeamTemplates(WTContainerRef containerRef) throws WTException
findTeamTemplates
in interface TeamService
containerRef
- the container to search for team templates
WTException
public Vector getTeamTemplates(WTContainerRef containerRef) throws WTException, TeamException
getTeamTemplates
in interface TeamService
containerRef
-
WTException
TeamException
public TeamManaged setTeamTemplate(WTContainerRef containerRef, TeamManaged object, String teamTemplateName, String domain) throws WTException, TeamException, WTPropertyVetoException
setTeamTemplate
in interface TeamService
containerRef
- the container to search for the team template to assign to the objectobject
- the TeamManaged object whose teamTemplate should be setteamTemplateName
- a String that contains the name of the teamTemplate to set on the TeamManaged object.domain
- a String that contain the AdministrativeDomain of the Team that should be set
WTException
TeamException
WTPropertyVetoException
public HashMap findAllParticipantsByRole(WTRoleHolder2 roleholder) throws WTException
findAllParticipantsByRole
in interface TeamService
roleholder
- the roleholder of interest
WTException
public Map populateRolePrincipalHash(WTRoleHolder2 roleHolder) throws WTException
populateRolePrincipalHash
in interface TeamService
roleHolder
- the WTRoleHolder2 of interest
WTException
public Map populateRoleActorRoleMap(WTActorRoleHolder2 actorRoleHolder) throws WTException
populateRoleActorRoleMap
in interface TeamService
actorRoleHolder
- The WTActorRoleHolder2 of interest.
WTException
public WTList createTeams(WTList objects, List names, WTRoleHolder2 roleHolder) throws WTException
createTeams
in interface TeamService
objects
- a list of the objects to create teams fornames
- the names of the teams - null is acceptableroleHolder
- the roleholder to use as a base for creating the team
WTException
public void updateCache(WTRoleHolder2 copy, WTRoleHolder2 readOnly) throws WTException
updateCache
in interface TeamService
copy
- readOnly
-
WTException
public void augmentRoles(LifeCycleManaged object, TeamReference team) throws WTException, LifeCycleException
augmentRoles
in interface TeamService
object
- the object associated to the team that needs to have it's membership updatedteam
- the team to apply to the object
WTException
LifeCycleException
public Team getTeam(String name) throws WTException
getTeam
in interface TeamService
name
- the name of the team to search for
WTException
public TeamTemplate getEnabledTeamTemplate(WTContainerRef containerRef, String teamTemplateIdentity) throws WTException, TeamException
getEnabledTeamTemplate
in interface TeamService
containerRef
- the container to search for enabled team templatesteamTemplateIdentity
- a String that contains the identity of the TeamTemplate
WTException
TeamException
protected void processLatestIterationChange(TeamManaged original, TeamManaged replacement) throws WTException
WTException
protected void processCleanupLinkEvent(WTRoleHolder2 target, BinaryLink link) throws WTException
WTException
private boolean isWorkingCopy(TeamManaged object) throws WTException
WTException
private boolean isCheckedOut(TeamManaged object) throws WTException
WTException
private void validateIsLatestIteration(TeamManaged object, String action) throws WTException
WTException
private TeamManaged setTeam(TeamManaged object, TeamReference teamRef) throws WTException
WTException
private String getIdentity(TeamManaged p)
private Vector findEnabledTeamsByDomain(AdministrativeDomain aDomain) throws TeamException
TeamException
private Vector findEnabledTeamDistributionListsByDomain(WTContainerRef containerRef, AdministrativeDomain aDomain) throws TeamException
TeamException
private Vector findEnabledTeamTemplatesByDomain(WTContainerRef containerRef, AdministrativeDomain aDomain) throws TeamException
TeamException
private Vector findTeamsByDomain(AdministrativeDomain aDomain) throws TeamException
TeamException
private Vector teamQRtoTeamRefVector(QueryResult aResultSet) throws WTException
WTException
private Vector teamDistributionListQRtoTeamDistributionListRefVector(QueryResult aResultSet) throws WTException
WTException
private Vector teamTemplateQRtoTeamTemplateRefVector(QueryResult aResultSet) throws WTException
WTException
private String getStringOfTeamTemplateIdentities(QueryResult qr) throws WTException, TeamException
WTException
TeamException
private String getStringOfTeamIdentities(QueryResult qr) throws WTException, TeamException
WTException
TeamException
private String getStringOfTeamDistributionListIdentities(QueryResult qr) throws WTException, TeamException
WTException
TeamException
private TeamManaged setTeamTemplate(TeamManaged object, TeamTemplate aTeamTemplate) throws WTException
WTException
private TeamManaged setTeam(TeamManaged object, Team aTeam) throws WTException
WTException
private Object getIgnoreDelete()
private RolePrincipalMap createRolePrincipalMap(Role role, WTPrincipal principal, WTRoleHolder2 roleHolder) throws WTException
WTException
private RolePrincipalMap createRolePrincipalMap(Role role, WTPrincipalReference principalRef, WTRoleHolder2 roleHolder) throws WTException
WTException
private RoleActorRoleMap createRoleActorRoleMap(Role role, ActorRole actor, WTActorRoleHolder2 roleHolder) throws WTException
WTException
private void replaceUser(ContainerTeamManaged container, WTUser replacedUser, WTUser newUser) throws WTException
WTException
private static Enumeration findWorkflowTeams(WTUser wtuser, WTContainer container) throws WTException
WTException
private static void changeAdministrativeDomain(AdminDomainRef d_ref, TeamReference teamRef) throws WTException
WTException
private void deleteRolePrincipalMaps(WTPrincipal principal) throws WTException
WTException
private static void deleteRolePrincipalMaps(Team team) throws WTException
WTException
private CompositeWhereExpression buildRemoveMembersWhereClause(Map ending, Map starting, CompositeWhereExpression whereExpression) throws WTException
WTException
private Hashtable addToHash(Hashtable hash, Role role, WTPrincipalReference pRef)
private Hashtable removeFromHash(Hashtable hash, Role role, WTPrincipalReference pRef)
private void printResults(Map map)
private String getKey(WTContainerRef ref, String templateName)
private QueryResult findRolePrincipalMap(Role role, WTPrincipal principal, WTRoleHolder2 roleHolder, boolean returnDisabled) throws WTException
role
- principal
- roleHolder
- returnDisabled
- - if true, will return disabled users if the roleHolder is a contanier team.
WTException
private void updateReadOnlyContainerTeam(ContainerTeam team, RolePrincipalMap rpm, Role role, boolean add) throws WTException
WTException
private void updateReadOnlyTeamTemplate(TeamTemplate teamTemplate, RolePrincipalMap rpm, Role role, boolean add) throws WTException
WTException
private void updateReadOnlyTeamTemplate(TeamTemplate teamTemplate, RoleActorRoleMap rarm, Role role, boolean add) throws WTException
WTException
private void addToMap(Map map, Role role, Object object)
private void removeFromMap(Map map, Role role, Object object)
private Map cloneMap(Map original)
public void deleteNonSharedTeams(WTCollection collection) throws WTException, TeamException
WTException
TeamException
private Map getMapOfTeams(WTCollection collection) throws WTException
WTException
private void deleteTeams(Set set, QueryResult results) throws WTException
WTException
private Team createTeam(WTRoleHolder2 roleHolder, String teamName, Persistable object, boolean persist) throws WTException
WTException
private Map resolveAllTeamMembers(WTRoleHolder2 roleHolder, Team team, Persistable object, PhaseTemplate phaseTemplate) throws WTException
WTException
private Map resolveWTRoleHolder2Roles(WTRoleHolder2 roleHolder, Persistable object) throws WTException
WTException
private void resolvePhaseTemplateRoles(Map map, TeamTemplate teamTemplate, Persistable object, PhaseTemplate phaseTemplate) throws WTException
WTException
private Vector resolveByAllPrincipals(Map map, Role role, PhaseTemplate phaseTemplate, Persistable object, TeamTemplate teamTemplate, Vector principals) throws WTException
WTException
private void resolveContainerTeamRoles(Map map, Persistable object) throws WTException
WTException
private WTRoleHolder2 createRolePrincipalMaps(WTCollection collection, WTRoleHolder2 roleHolder, Map map) throws WTException
WTException
private void createRoleActorRoleMaps(WTCollection collection, WTActorRoleHolder2 roleHolder, Map map) throws WTException
WTException
private Map calculateNewMembers(Map finalMap, Map startingMap)
private Map populateRolePrincipalHash(WTRoleHolder2 roleHolder, boolean returnDisabled) throws WTException
roleHolder
- - the roleholder of interestreturnDisabled
- - if true and container is a ContainerTeam
the return map includes disabled participants.
WTException
private Map findObjectsTeams(WTList list) throws WTException
WTException
private Map getRolePrincipalMapsForTeams(Set set) throws WTException
WTException
private static void removeSecuredPrincipals(Map map) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |