|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. |
void |
confirmParticipation(ContainerTeamManaged container,
WTUser user)
Given a WTContainer object and a WTUser, record the fact that the user has confirmed they will be participating in the container. |
ContainerTeamReference |
createContainerTeam(String name,
OrgContainer orgContainer,
String desc,
TeamCategory category)
Creates a new Container Team. |
WTGroup |
findContainerTeamGroup(ContainerTeamManaged container,
String searchBase,
String groupName)
This method returns a group stored in the container team ldap hiearchy. |
Enumeration |
findContainerTeamGroups(ContainerTeamManaged container,
String searchBase)
This method returns groups stored in the container team ldap hiearchy. |
QueryResult |
findRolePrincipalMap(Role role,
WTPrincipal principal,
ContainerTeam containerTeam)
Based on the input parameters, return a QueryResult of RolePrincipalMap objects Supported API: false |
ContainerTeam |
getContainerTeam(ContainerTeamManaged container)
Returns the container team for the specified container. |
QueryResult |
getMembersOf(ContainerSpec spec,
int membership_state)
Returns the WTUser s that are members of the containers
specified by the ContainerSpec . |
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(ContainerTeamReference teamReference,
WTUser replacedUser,
WTUser newUser,
boolean reassign)
Deprecated. |
void |
replaceUser(ContainerTeamReference teamReference,
WTUser replacedUser,
WTUser newUser,
boolean reassign,
boolean removed)
Replace the user in all containers that use the container team. |
WTContained |
setDefaultAdHocAcl(ContainerTeamManaged container,
WTContained contained)
Supported API: false |
AdHocControlled |
setPrincipalAdHocAcl(ContainerTeamManaged container,
AdHocControlled per,
Vector perms,
WTPrincipal principal)
Set the ad-hoc access rights for a given user or group. |
AdHocControlled |
setRoleAdHocAcl(ContainerTeamManaged container,
AdHocControlled per,
Vector perms,
String roleName)
Set the ad-hoc access rights for a given role in the container's team. |
Method Detail |
public void confirmParticipation(ContainerTeamManaged container, WTUser user) throws WTException
container
- user
- The user that is confirming participation in the project
WTException
public WTContained setDefaultAdHocAcl(ContainerTeamManaged container, WTContained contained) throws WTException, ClassNotFoundException
container
- contained
-
WTException
ClassNotFoundException
public 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
public 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
public 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
public 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
public void replaceUser(ContainerTeamReference teamReference, WTUser replacedUser, WTUser newUser, boolean reassign) 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.
WTException
public void recomputeMembership(ContainerTeamManaged container) throws WTException
container
- The container that should be synched with the team.
WTException
public void recomputeMembership(WTGroup group) throws WTException
group
-
WTException
public 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
public ContainerTeamManaged activate(ContainerTeamManaged container) throws WTException
container
- the ContainerTeamManaged object to be activated/started
WTException
public QueryResult findRolePrincipalMap(Role role, WTPrincipal principal, ContainerTeam containerTeam) throws WTException
role
- principal
- containerTeam
-
WTException
public Enumeration findContainerTeamGroups(ContainerTeamManaged container, String searchBase) throws WTException
container
- searchBase
-
WTException
public ContainerTeam getContainerTeam(ContainerTeamManaged container) throws WTException
container
- The container of interest.
WTException
public WTGroup findContainerTeamGroup(ContainerTeamManaged container, String searchBase, String groupName) throws WTException
container
- searchBase
- groupName
-
WTException
public QueryResult getMembersOf(ContainerSpec spec, int membership_state) throws WTException
WTUser
s that are members of the containers
specified by the ContainerSpec
.
spec
- Defines the set of containers to search inmembership_state
- The membership state of the users that are returned. This is one of the membership state constants defined in ContainerSpec
.
WTException
ContainerSpec
public 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
public 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
public void replaceUser(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
public AdHocControlled setRoleAdHocAcl(ContainerTeamManaged container, 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
public AdHocControlled setPrincipalAdHocAcl(ContainerTeamManaged container, 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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |