|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ContainerTeamService
Methods for manipulating ContainerTeams
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
ContainerTeamManaged |
activate(ContainerTeamManaged container)
activate/start the ContainerTeamManaged object Supported API: true |
void |
addGuestMember(ContainerTeam team,
WTPrincipal principal)
This method adds the principal to guest group. |
void |
addMember(ContainerTeam team,
Role role,
WTPrincipal principal)
This method adds the user to the necessary groups in the containers that use the container team. |
wt.inf.team.ContainerTeamReference |
createContainerTeam(String name,
OrgContainer orgContainer,
String desc,
TeamCategory category)
Creates a new Container Team. |
wt.inf.team.ContainerTeamReference |
createContainerTeam(String name,
OrgContainer orgContainer,
String desc,
TeamCategory category,
boolean shared,
boolean enabled,
boolean extendable,
String sharedTeamInvitationMsg,
WTPrincipalReference creator)
Creates a container team. |
List |
findContainersForTeam(ContainerTeam team)
Returns a list of the ContainerTeamManaged objects that use the team. |
ContainerTeam |
getContainerTeam(ContainerTeamManaged container)
Returns the container team for the specified container. |
String |
getRoleDescription(Role role,
ContainerTeam team)
Supported API: true |
ContainerTeamManaged |
inactivate(ContainerTeamManaged container,
ContainerTeamManagedState state)
inactivate/suspend the ContainerTeamManaged object Supported API: true |
void |
recomputeMembership(ContainerTeamManaged container)
Synchs the ContainerTeamMembership with the LDAP groups. |
void |
recomputeMembership(WTGroup group)
Synchs the ContainerTeamMembership with the LDAP groups. |
void |
removeGuestMember(ContainerTeam team,
WTPrincipal principal)
This method removes the principal from the guest group. |
void |
removeMember(ContainerTeam team,
Role role,
WTPrincipal principal)
This method removed the user from the necessary groups in the containers that use the container team. |
void |
removeRole(ContainerTeam team,
Role role)
This method removes the user participating in the role from the necessary groups in the containers that use the container team. |
void |
replaceUser(wt.inf.team.ContainerTeamReference teamReference,
WTUser replacedUser,
WTUser newUser,
boolean reassign,
boolean removed)
Replace the user in all containers that use the container team. |
wt.access.AdHocControlled |
setPrincipalAdHocAcl(ContainerTeamManaged container,
wt.access.AdHocControlled per,
Vector perms,
WTPrincipal principal)
Set the ad-hoc access rights for a given user or group. |
wt.access.AdHocControlled |
setRoleAdHocAcl(ContainerTeamManaged container,
wt.access.AdHocControlled per,
Vector perms,
String roleName)
Set the ad-hoc access rights for a given role in the container's team. |
void |
setRoleDescription(Role role,
String description,
ContainerTeam team)
The description to assign to the role. |
void |
updateContainerTeam(ContainerTeam team)
Supported API: true |
| Method Detail |
|---|
wt.inf.team.ContainerTeamReference createContainerTeam(String name,
OrgContainer orgContainer,
String desc,
TeamCategory category)
throws WTException
name - The name of the container team.orgContainer - The OrgContainer where the container is being created.desc - A description of the container team.category - Enumerated TeamCategory value.
WTException
wt.inf.team.ContainerTeamReference createContainerTeam(String name,
OrgContainer orgContainer,
String desc,
TeamCategory category,
boolean shared,
boolean enabled,
boolean extendable,
String sharedTeamInvitationMsg,
WTPrincipalReference creator)
throws WTException
name - The name of the container team.orgContainer - The OrgContainer where the container is being created.desc - A description of the container team.category - Enumerated TeamCategory value.shared - Indicates whether or not the team is shared.enabled - Determines if the team can be put into use.extendable - Gives the ability of a shared team to be extended locally.sharedTeamInvitationMsg - If the team being created is shared, an invitation message is allowed to be passed in and will be set on the container team itself. This message will be sent out to users who are added to the shared team.creator - Specifies the creator of the team. If this field is null, the current user will be used instead.
WTException
void addMember(ContainerTeam team,
Role role,
WTPrincipal principal)
throws WTException
team - The team where the participant should be added to the specified role.role - The role where the participant will be added as a team member.principal - The principal to be added to the role in the team.
WTException
void removeMember(ContainerTeam team,
Role role,
WTPrincipal principal)
throws WTException
team - The team where the participant should be removed from the specified role.role - The role where the participant will be removed as a team member.principal - The principal to be removed from the role in the team.
WTException
void removeRole(ContainerTeam team,
Role role)
throws WTException
team - The team where the role and should be removed. Participants who do not belong to additional roles in the team will be removed completely from the container team.role - The role that should be removed from the team.
WTException
void recomputeMembership(ContainerTeamManaged container)
throws WTException
container - The container that should be synched with the team.
WTException
void recomputeMembership(WTGroup group)
throws WTException
group -
WTException
ContainerTeamManaged inactivate(ContainerTeamManaged container,
ContainerTeamManagedState state)
throws WTException
container - the containerTeamManaged object to be inactiviated/suspendedstate - the ContainerTeamManagedState that the inactivated container should be set to
WTException
ContainerTeamManaged activate(ContainerTeamManaged container)
throws WTException
container - the ContainerTeamManaged object to be activated/started
WTException
ContainerTeam getContainerTeam(ContainerTeamManaged container)
throws WTException
container - The container of interest.
WTException
void addGuestMember(ContainerTeam team,
WTPrincipal principal)
throws WTException
team - The team where the participant should be added to the specified role.principal - The principal to be added to the role in the team.
WTException
void removeGuestMember(ContainerTeam team,
WTPrincipal principal)
throws WTException
team - The team where the participant should be removed from the specified role.principal - The principal to be removed from the role in the team.
WTException
void replaceUser(wt.inf.team.ContainerTeamReference teamReference,
WTUser replacedUser,
WTUser newUser,
boolean reassign,
boolean removed)
throws WTException
teamReference - A reference to the ContainerTeam where the user should be replaced.replacedUser - The user being replaced.newUser - The user taking the place of the replaced user.reassign - A flag that indicates whether or not ad hoc acls and object subscriptions should be assigned to the new user.removed - This should be true if this was called as a result of the user being removed from the container. This boolean is needed to determine the message to display if the user cannot be removed due to checked out objects.
WTException
wt.access.AdHocControlled setRoleAdHocAcl(ContainerTeamManaged container,
wt.access.AdHocControlled per,
Vector perms,
String roleName)
throws WTException
container - The Container for which the object is located in and for which to get the role from.per - The object to set access on.perms - a list of wt.access.AccessPermissions to grant to the role. If MODIFY is specified, a READ permission will be implicitly added as well. If the list is empty, all permissions will be removed for the role.roleName - The role name that is used to find the container's role. Example, for out-of-the box roles, pass is all upper-case forms of the role name in english: "MANUFACTURER". For custom roles, pass in the string exactly as entered in the modify team ui: "my Custom Role".
WTException
wt.access.AdHocControlled setPrincipalAdHocAcl(ContainerTeamManaged container,
wt.access.AdHocControlled per,
Vector perms,
WTPrincipal principal)
throws WTException
container - The Container for which the object is located in and for which to get the role from.per - The object to set access on.perms - a list of wt.access.AccessPermissions to grant to the role. If MODIFY is specified, a READ permission will be implicitly added as well. If the list is empty, all permissions will be removed for the role.principal - The user or group that is getting the new access level.
WTException
List findContainersForTeam(ContainerTeam team)
throws WTException
team -
WTException
void setRoleDescription(Role role,
String description,
ContainerTeam team)
throws WTException
role - description - team -
WTException
String getRoleDescription(Role role,
ContainerTeam team)
throws WTException
role - team -
WTException
void updateContainerTeam(ContainerTeam team)
throws WTException
team -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||