Package wt.inf.container
Interface WTContainerService
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionchangePublicParentDomain(WTContainer container, AdminDomainRef new_parent) Changes a WTContainer'spublicParentDomainproperty.create(WTContainer container) Finds an appropriateWTContainerCreatorfor the given container and callscreate().createOrGetProfileGroup(String name, String description, WTContainer container) Returns the Standard Profile group with the specified name and residing in the specified container if it exists; otherwise, a new Standard Profile group is created.booleancreateProfileGroup(String name, String description, WTContainer container) Creates a Standard Profile group with the specified name and residing in the specified container if it does not already exist; otherwise, no Profile group is created and false is returned.voiddeleteProfileGroup(WTGroup group)
Supported API: truevoiddeleteProfileGroups(WTCollection groups) Deletes multiple profiles
Supported API: truevoiddisableProfileGroup(WTGroup group)
Supported API: truevoidenableProfileGroup(WTGroup group)
Supported API: truegetBasePublicDomain(OrgContainer container, Class container_class) Returns the root public domain for containers of the given class.Finds a container based on a path.getContainers(ContainerSpec spec) Gets the containers specified in theContainerSpec.Gets the containers specified in theLookupSpec.getDisplayPath(WTContainerRef containerRef, Locale locale) The API returns the display path for a given container in a specified locale.getInternalGroups(PrincipalSpec principalSpec, String pattern)
Supported API: truegetInternalGroupType(WTGroup internalGroup) This API is used to get the internal group type for to help in import/export of internal groups.getOrgContainer(WTOrganization wt_org) Find theOrgContainerfor a {@link <code>WTOrganization</code>}
Supported API: truegetOrgContainer(WTUser user) Find theOrgContainerfor a {@link <code>WTUser</code>}
Supported API: truegetProfileGroup(String name, WTContainer container) Returns the Profile group for the specified name, and residing in the specified container if it exists.getProfileGroup(String name, WTContainer container, Profile.Type profileType) Returns the Profile group of the specified type, with the specified name, and residing in the specified container if it exists.getProfileGroups(WTContainer container) Returns all Profile groups residing in the specified container.getProfileGroups(WTContainer container, Profile.Type profileType) Returns all Profile groups of the specified type and residing in the specified container.Returns all profile groups that apply to the given user.getProfileGroupsForRoleAccessCheck(WTUser user, Profile.Type profileType) Returns the profile groups of the specified type that apply to the given user.Returns all profile groups that apply to the given user.getProfileGroupsForUser(WTUser user, Profile.Type profileType) Returns all the profile groups of the specified profile type, that apply to the given user.getProfileGroupType(WTGroup profileGroup) The API returns the type of the profile group.Returns an array ofDirectoryContextProviders that provides the capability to select a set of principals for display in clients based on how thePrincipalSpecis configured.getPublicDomains(OrgContainer container, Class container_class) Finds all domains that can be used for a child container'spublicParentDomainproperty.makePrivate(WTContainer container) Sets the container'sprivateAccessproperty totrue.makePublic(WTContainer container) Sets the container'sprivateAccessproperty tofalse.voidupdateProfileGroup(WTGroup group)
Supported API: true
-
Method Details
-
changePublicParentDomain
WTContainer changePublicParentDomain(WTContainer container, AdminDomainRef new_parent) throws WTException Changes a WTContainer'spublicParentDomainproperty. The new domain must be included in those returned bygetPublicDomainsfor the container'sOrgContainer
Supported API: true- Parameters:
container-new_parent-- Returns:
- WTContainer
- Throws:
WTException
-
enableProfileGroup
Supported API: true- Parameters:
group-- Throws:
WTException
-
create
Finds an appropriateWTContainerCreatorfor the given container and callscreate().
Supported API: true- Parameters:
container-- Returns:
- WTContainer
- Throws:
WTException- See Also:
-
WTContainerCreator
-
getBasePublicDomain
AdminDomainRef getBasePublicDomain(OrgContainer container, Class container_class) throws WTException Returns the root public domain for containers of the given class. In the OOTB configuration, for products and repositories this will be a domain named "PDM" stored under the container's default domain, and for projects this will be a domain named "Project" stored under the container's default domain.
Supported API: true- Parameters:
container-container_class-- Returns:
- AdminDomainRef
- Throws:
WTException
-
getByPath
Finds a container based on a path. The path is of the form:
path ::= path_element (path_element)* path_element ::= '/' class_name '=' container_name class_name ::= the fully qualified name of a container class container_name :: = the name of a container instance
Supported API: true- Parameters:
path-- Returns:
- WTContainerRef
- Throws:
WTException
-
getContainers
Gets the containers specified in theContainerSpec.
Supported API: true- Parameters:
spec-- Returns:
- QueryResult
- Throws:
WTException- See Also:
-
getOrgContainer
Find theOrgContainerfor a {@link <code>WTOrganization</code>}
Supported API: true- Parameters:
wt_org-- Returns:
- The associated
OrgContainer, ornullif one can't be found - Throws:
WTException
-
getOrgContainer
Find theOrgContainerfor a {@link <code>WTUser</code>}
Supported API: true- Parameters:
wt_org-- Returns:
- The associated
OrgContainer, ornullif one can't be found - Throws:
WTException
-
getPublicContextProviders
Returns an array ofDirectoryContextProviders that provides the capability to select a set of principals for display in clients based on how thePrincipalSpecis configured. The following table presents different results given a combination of container type and principal type configured using aPrincipalSpecNotes on this table:
- By default the
includeAllServicesproperty is set totruein thePrincipalSpecused to produce the results in the table below. If it werefalse, the results would be the same, except only principals from the bundled adapter would be included. - By default the
performLookupproperty is set totruein thePrincipalSpecused to produce the results in the table below. So in addition to searching for principals from the current context, it will also searches for principals from ancestor contexts. If it is set tofalse, the results would only include principals from the current context. -
If
includeOrganizationsattribute is set totruewhen searching forWTGroup, the result will include organizations as well. If its set tofalse, organizations will be excluded from the results. - If the
principalClassattribute isWTPrincipal,the resulting array will contain a context or set of contexts for each principal subclass as defined below. -
Following are the system groups that would be returned by default depending on the context that is being
searched. Site : Unrestricted Organizations Organization : Product Creator, Project Creator, Library Creator, All
Participating Members, This Org, Filter Template Creator, Shared Team Creator, Product/Project/Library: Team
Members, GUEST, INVITED, all roles groups (eg. APPROVER, DESIGNER etc) and all org groups (eg. 435_ORG). Each of
these groups can be queried individually by setting the
internalGroupSetattribute apppropriately. IfperformLookupattribute is set to true, then by default all internal groups from the parent context are returned in addition to internal groups from the current context.
Creates
DirectoryContextProviders according to the following specification:Container\Principal class type WTOrganizationWTGroup/th>WTUserExchangeContainerBy default it selects all organizations from all configured adapters. If includeAllServices</code attribute> is set tofalse, it only selects organizations from the bundled adapter.By default, it selects all Organizations and Site level user defined groups from all configured adapters. It also selects all system group at the Site level. If includeAllServicesattribute is set tofalse, it restricts the Site level user defined groups and Organizations to only the bundled adapter. IfincludeOrganizationsattribute is set tofalse, organizations wont be returned.By default it selects all users from all configured adapters. if includeAllServicesattribute is set tofalse, it only selects users from the bundled adapter. IffilterByOrganizationattribute is set totrue, it retricts the users to only the ones associated to the Organization of theExchangeContainer.OrgContainerBy default it selects all organizations from all configured adapters. If includeAllServicesattribute is set tofalse, it only selects organizations from the bundled adapter. IfperformLookUpattribute is set tofalse, it will not return any organizations.By default it selects Site level user defined groups and Organizations from all configured adapters. In addition it also selects user defined groups under the Organization's public node as well as Organization node. It also selects system groups from both the Site and the Org Level. if performLookupattribute is set tofalse, it does not return any organization. In addition it restricts User defined groups to only the ones under the Organization's public node as well as Organization node. It also restricts the system groups to only the Org Level. IfincludeOrganizationsattribute is set tofalse, organizations wont be returned.By default it selects all users in all configured adapters. if filterByOrganizationattribute is set totrue, it selects only users associated to the currentOrgContainer. IfincludeAllServicesattribute is set tofalse, it restricts users to the bundled adapter. IfperformLookUpattribute is set to false, it will not return any users.ContainerTeamManagedBy default it selects all organizations from all configured adapters. If includeAllServicesattribute is set tofalse, it only selects organizations from the bundled adapter. IfperformLookUpattribute is set tofalse, it will not return any organizations.By default it selects Site level user defined groups and Organizations from all configured adapters. In addition it also selects user defined groups under the OrgContainer's public node as well as Organization node. It also selects system groups from the Site, the Org Level and application context level. if includeOrganizations</code is set tofalse, it will not return organizations. IfperformLookUpis set tofalseit wil only return system groups from the application context level.By default it selects all users in all configured adapters. if filterByOrganizationattribute is set totrue, it selecst only users associated to the current OrgContainer. IfincludeAllServicesattribute is set tofalse, it restricts users to the bundled adapter. IfperformLookUpattribute is set to false, it will not return any users.
Supported API: true- Parameters:
spec-- Returns:
- DirectoryContextProvider[]
- Throws:
WTException- See Also:
- By default the
-
getPublicDomains
Finds all domains that can be used for a child container'spublicParentDomainproperty. This includes the container's base domain for the given container class, as well as all children of the base domain that are also in the container.
Supported API: true- Parameters:
container- OrgContainer whose domains are of interest.container_class- Indicates container type (Ex:- Project2.class ) whose base/children domains are looked up.- Returns:
- PublicDomainSet Set of domain references and domain paths, sorted by domain path for both methods.
- Throws:
NotAuthorizedException- If the current user does not have access to the domain path (which includes a container path) for the base domain or any of its children.WTException
-
makePrivate
Sets the container'sprivateAccessproperty totrue. In addition, reparents the container'sdefaultDomainto point to the org container'sprivateDomain.
Supported API: true- Parameters:
container-- Returns:
- WTContainer
- Throws:
WTException
-
makePublic
Sets the container'sprivateAccessproperty tofalse. In addition, reparents the container'sdefaultDomainto point to the domain stored in the container'spublicParentDomainproperty.
Supported API: true- Parameters:
container-- Returns:
- WTContainer
- Throws:
WTException
-
getInternalGroups
Supported API: true- Parameters:
principalSpec-pattern-- Returns:
- WTPrincipal[]
- Throws:
WTException
-
createProfileGroup
boolean createProfileGroup(String name, String description, WTContainer container) throws WTException Creates a Standard Profile group with the specified name and residing in the specified container if it does not already exist; otherwise, no Profile group is created and false is returned.
Supported API: true- Parameters:
name-description-container- Container profile group resides in.- Returns:
- boolean True if a new profile group was created; otherwise false, usually because a profile group with the specified name already exists for the container.
- Throws:
WTException
-
getProfileGroup
Returns the Profile group for the specified name, and residing in the specified container if it exists. Profile type is not considered; the first profile found matching the name and container is returned. If a matching profile does not exist, null is returned.
Supported API: true- Parameters:
name-container- Container profile group resides in.- Returns:
- WTGroup
- Throws:
WTException
-
getProfileGroup
WTGroup getProfileGroup(String name, WTContainer container, Profile.Type profileType) throws WTException Returns the Profile group of the specified type, with the specified name, and residing in the specified container if it exists. If a matching profile does not exist, null is returned.
Supported API: true- Parameters:
name-container- Container profile group resides in.profileType- The type of Profile search to for. Possible values are: Profile.Type.STANDARD, Profile.Type.LICENSE, Profile.Type.ANY (any type is searched). If ANY is specified, the first profile matching name and container is returned. If null is specified, it defaults to ANY.- Returns:
- WTGroup
- Throws:
WTException
-
getProfileGroups
Returns all Profile groups residing in the specified container. Profile type is not considered; any profile type is returned.
Supported API: true- Parameters:
container-- Returns:
- Map
- Throws:
WTException
-
getProfileGroups
Map<Boolean,Enumeration<WTPrincipal>> getProfileGroups(WTContainer container, Profile.Type profileType) throws WTException Returns all Profile groups of the specified type and residing in the specified container.
Supported API: true- Parameters:
container-profileType- The type of Profiles to include in the result map. Possible values are: Profile.Type.STANDARD, Profile.Type.LICENSE, Profile.Type.ANY (any type is returned). If null is specified, it defaults to ANY.- Returns:
- Map
- Throws:
WTException
-
getProfileGroupsForUser
Returns all profile groups that apply to the given user. Profile type is not considered; any profile type is returned.
Supported API: true- Parameters:
user-- Returns:
- Map
- Throws:
WTException
-
getProfileGroupsForUser
Returns all the profile groups of the specified profile type, that apply to the given user.
Supported API: true- Parameters:
user-profileType- The type of Profiles to include in the result map. Possible values are: Profile.Type.STANDARD, Profile.Type.LICENSE, Profile.Type.ANY (any type is returned). If null is specified, it defaults to ANY.- Returns:
- Map
- Throws:
WTException
-
getProfileGroupsForRoleAccessCheck
Returns all profile groups that apply to the given user. Profile type is not considered; any profile type is returned. The output of this set is intended for evaluating visibility and so overlaps will be eliminated in cases where Org and Site profiles have similar names.
Supported API: true- Parameters:
user-- Returns:
- Map
- Throws:
WTException
-
getProfileGroupsForRoleAccessCheck
Returns the profile groups of the specified type that apply to the given user. The output of this set is intended for evaluating visibility and so overlaps will be eliminated in cases where Org and Site profiles have similar names.
Supported API: true- Parameters:
user-profileType- The type of Profiles to include in the result map. Possible values are: Profile.Type.STANDARD, Profile.Type.LICENSE, Profile.Type.ANY (any type is returned). If null is specified, it defaults to ANY.- Returns:
- Map
- Throws:
WTException
-
updateProfileGroup
Supported API: true- Parameters:
group-- Throws:
WTException
-
deleteProfileGroup
Supported API: true- Parameters:
group-- Throws:
WTException
-
disableProfileGroup
Supported API: true- Parameters:
group-- Throws:
WTException
-
getInternalGroupType
This API is used to get the internal group type for to help in import/export of internal groups.
Supported API: true- Parameters:
internalGroup-- Returns:
- String
- Throws:
WTException
-
getProfileGroupType
The API returns the type of the profile group. The type could be either enabled or disabled.
Supported API: true- Parameters:
profileGroup-- Returns:
- String
- Throws:
WTException
-
getDisplayPath
The API returns the display path for a given container in a specified locale.
Supported API: true- Parameters:
WTContainerRef-Locale-- Returns:
- String
- Throws:
WTException
-
deleteProfileGroups
Deletes multiple profiles
Supported API: true- Parameters:
groups-- Throws:
WTException
-
createOrGetProfileGroup
WTGroup createOrGetProfileGroup(String name, String description, WTContainer container) throws WTException Returns the Standard Profile group with the specified name and residing in the specified container if it exists; otherwise, a new Standard Profile group is created.
Supported API: true- Parameters:
name-description-container- Container profile group resides in.- Returns:
- WTGroup
- Throws:
WTException
-
getContainers
Gets the containers specified in theLookupSpec.
Supported API: true- Parameters:
LookupSpec-- Returns:
- WTContainerRef[]
- Throws:
WTException
-