|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supported API: true
Extendable: false
Method Summary | |||||||||||||||||||||||||||||
boolean |
canCreate(Class container_class,
WTUser user)
Uses a CanCreateDelegate to determine if the user can
create a container of type container_class in their organization's
OrgContainer . |
||||||||||||||||||||||||||||
boolean |
canCreate(Class container_class,
WTUser user,
WTContainerRef parent_ref)
Uses a CanCreateDelegate to determine if the given user
can create an instance of the given container class in the given container. |
||||||||||||||||||||||||||||
WTContainer |
changePublicParentDomain(WTContainer container,
AdminDomainRef new_parent)
Changes a WTContainer's publicParentDomain property. |
||||||||||||||||||||||||||||
OrgContainer |
changeRestrictedDirectorySearchScope(OrgContainer container,
boolean restrict)
Changes a persistent OrgContainer 's restrictedDirectorySearchScope
property. |
||||||||||||||||||||||||||||
void |
checkCreate(Class container_class,
WTUser user,
WTContainerRef parent_ref)
Throws an exception if the given user cannot create a container in the given parent container. |
||||||||||||||||||||||||||||
WTContainer |
create(WTContainer container)
Finds an appropriate WTContainerCreator for the given
container and calls create() . |
||||||||||||||||||||||||||||
WTContainer |
create(WTContainer container,
String selector)
Finds an appropriate WTContainerCreator for the given
container and calls create() . |
||||||||||||||||||||||||||||
AdminDomainRef |
getBasePublicDomain(OrgContainer container,
Class container_class)
Returns the root public domain for containers of the given class. |
||||||||||||||||||||||||||||
WTContainerRef |
getByInternetDomain(String domain_name)
Supported API: false |
||||||||||||||||||||||||||||
WTContainerRef |
getByPath(String path)
Finds a container based on a path. |
||||||||||||||||||||||||||||
WTLibrary |
getClassicContainer()
Returns a cached, read-only instance of the installation's classic container. |
||||||||||||||||||||||||||||
WTContainerRef |
getClassicRef()
Returns a cached, inflated, read-only reference to the installation's classic container. |
||||||||||||||||||||||||||||
QueryResult |
getContainers(ContainerSpec spec)
Gets the containers specified in the ContainerSpec . |
||||||||||||||||||||||||||||
DirectoryContextProvider |
getContextProvider(WTContainer container)
Returns the DirectoryContextProvider associated
with the given container. |
||||||||||||||||||||||||||||
DirectoryContextProvider |
getContextProvider(WTContainerRef container_ref)
Returns the DirectoryContextProvider associated
with the given container. |
||||||||||||||||||||||||||||
CreatorsMap |
getCreatorsMap(OrgContainer container)
Supported API: false |
||||||||||||||||||||||||||||
ExchangeContainer |
getExchangeContainer()
Returns a cached, read-only instance of the installation's exchange (site) container. |
||||||||||||||||||||||||||||
WTContainerRef |
getExchangeRef()
Returns a cached, inflated, read-only reference to the installation's exchange (site) container. |
||||||||||||||||||||||||||||
String |
getInternetDomain(WTContainer container)
Returns the name of the internet domain associated with the given container, for example "com.ptc". |
||||||||||||||||||||||||||||
String |
getInternetDomain(WTContainerRef container_ref)
Returns the name of the internet domain associated with the given container, for example "com.ptc". |
||||||||||||||||||||||||||||
WTContainer |
getNamespace(Class contained_class,
WTContainer new_container)
Get the namespace for objects of the given class in the given container. |
||||||||||||||||||||||||||||
WTContainer |
getNamespace(WTContained contained)
Deprecated. Replaced by getNamespace(Class) |
||||||||||||||||||||||||||||
WTContainer |
getNamespace(WTContained contained,
WTContainer new_container)
Deprecated. Replaced by getNamespace(Class, WTContainer) |
||||||||||||||||||||||||||||
OrgContainer |
getOrgContainer(WTContained contained)
Finds the first parent of the given container that is an OrgContainer . |
||||||||||||||||||||||||||||
OrgContainer |
getOrgContainer(WTOrganization wt_org)
Find the OrgContainer for a WTOrganization
Supported API: true |
||||||||||||||||||||||||||||
WTContainerRef |
getOrgContainerRef(WTContained contained)
Finds the first parent of the given container that is an OrgContainer . |
||||||||||||||||||||||||||||
WTContainerRef |
getOrgContainerRef(WTOrganization wt_org)
Find the OrgContainer for a WTOrganization
Supported API: false |
||||||||||||||||||||||||||||
PrincipalQueryResult |
getPrincipals(PrincipalSpec spec)
Deprecated. Replaced by DirectoryHelperSvr.queryPrincipals
Finds principals in the public context of the given container, as
defined in the |
||||||||||||||||||||||||||||
DirectoryContextProvider |
getPublicContextProvider(WTContainer container,
Class principal_class)
Deprecated. Replaced by getPublicContextProviders
Creates
|
||||||||||||||||||||||||||||
DirectoryContextProvider[] |
getPublicContextProviders(PrincipalSpec spec)
Returns an array of DirectoryContextProvider s that select
a set of principals appropriate for display in clients. |
||||||||||||||||||||||||||||
AdminDomainRef |
getPublicDomainRef(OrgContainer container,
Class container_class,
String domain_path)
Gets the public domain for the given container class. |
||||||||||||||||||||||||||||
PublicDomainSet |
getPublicDomains(OrgContainer container,
Class container_class)
Finds all domains that can be used for a child container's publicParentDomain
property. |
||||||||||||||||||||||||||||
DirectorySubtree |
getSubtree(WTContainer container)
Get a DirectorySubtree representing the path to the root
directory node corresponding to the given container. |
||||||||||||||||||||||||||||
boolean |
isAdministrator(WTContainerRef container_ref,
WTPrincipal user)
Determines if a user is an administrator of a container. |
||||||||||||||||||||||||||||
boolean |
isAdministrator(WTContainerRef container_ref,
WTPrincipal user,
boolean lookup)
Determines if a user is an administrator of a container. |
||||||||||||||||||||||||||||
boolean |
isDescendedFrom(WTContainerRef parent_ref,
WTContainerRef child_ref)
Determines if child_ref is a descendent of parent_ref . |
||||||||||||||||||||||||||||
boolean |
isRootDomain(AdminDomainRef domain_ref)
Determines whether the given domain should be considered a root domain for the given container. |
||||||||||||||||||||||||||||
QueryResult |
lookup(LookupSpec spec)
Perform the lookup specified in the LookupSpec
Supported API: false |
||||||||||||||||||||||||||||
WTContainer |
makePrivate(WTContainer container)
Sets the container's privateAccess property to true . |
||||||||||||||||||||||||||||
WTContainer |
makePublic(WTContainer container)
Sets the container's privateAccess property to false . |
Method Detail |
public boolean canCreate(Class container_class, WTUser user) throws WTException
CanCreateDelegate
to determine if the user can
create a container of type container_class
in their organization's
OrgContainer
.
container_class
- user
-
WTException
CanCreateDelegate
public boolean canCreate(Class container_class, WTUser user, WTContainerRef parent_ref) throws WTException
CanCreateDelegate
to determine if the given user
can create an instance of the given container class in the given container.
container_class
- user
- parent_ref
-
WTException
CanCreateDelegate
public WTContainer changePublicParentDomain(WTContainer container, AdminDomainRef new_parent) throws WTException
publicParentDomain
property.
The new domain must be included in those returned by getPublicDomains
for the container's OrgContainer
container
- new_parent
-
WTException
public OrgContainer changeRestrictedDirectorySearchScope(OrgContainer container, boolean restrict) throws WTException
OrgContainer
's restrictedDirectorySearchScope
property. If the new value is true
, then the container's
associated WTOrganization
is removed from the site-level
All Unrestricted Organizations
group. If the new value
is false
, then the organization is added to the group.
By default, members of the All Unrestricted Organizations
group are granted read access to all principals in the User
domain or any of its child domains.
Use WTContainerHelper.setRestrictedDirectorySearchScope(OrgContainer,boolean)
to assign this value to an unpersisted container.
Supported API: false
container
- restrict
-
WTException
OrgContainer.restrictedDirectorySearchScope
public void checkCreate(Class container_class, WTUser user, WTContainerRef parent_ref) throws WTException
container_class
- user
- parent_ref
-
WTException
CanCreateDelegate
public WTContainer create(WTContainer container) throws WTException
WTContainerCreator
for the given
container and calls create()
.
container
-
WTException
WTContainerCreator
public WTContainer create(WTContainer container, String selector) throws WTException
WTContainerCreator
for the given
container and calls create()
.
container
- selector
- An optional selector to help pick the appropriate WTContainerCreator
.
WTException
WTContainerCreator
public AdminDomainRef getBasePublicDomain(OrgContainer container, Class container_class) throws WTException
container
- container_class
-
WTException
public WTContainerRef getByInternetDomain(String domain_name) throws WTException
domain_name
-
WTException
WTContainer.getInternetDomain()
public WTContainerRef getByPath(String path) throws WTException
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
path
-
WTException
public WTLibrary getClassicContainer() throws WTException
ClassicContainer
.
WTException
public WTContainerRef getClassicRef() throws WTException
ClassicContainer
.
WTException
public QueryResult getContainers(ContainerSpec spec) throws WTException
ContainerSpec
.
spec
-
WTException
public DirectoryContextProvider getContextProvider(WTContainer container) throws WTException
DirectoryContextProvider
associated
with the given container.
container
-
WTException
WTContainer.getContextProvider()
public DirectoryContextProvider getContextProvider(WTContainerRef container_ref) throws WTException
DirectoryContextProvider
associated
with the given container.
container_ref
-
WTException
WTContainer.getContextProvider()
public CreatorsMap getCreatorsMap(OrgContainer container) throws WTException
container
-
CreatorsMap
for the given container.
WTException
CreatorsMap
public ExchangeContainer getExchangeContainer() throws WTException
ExchangeContainer
.
WTException
public WTContainerRef getExchangeRef() throws WTException
ExchangeContainer
.
WTException
public String getInternetDomain(WTContainerRef container_ref) throws WTException
This property may be derived from WTOrganization.internetDomain
Supported API: false
container_ref
-
WTException
WTContainer.getInternetDomain()
,
WTOrganization.getInternetDomain()
public String getInternetDomain(WTContainer container) throws WTException
This property may be derived from WTOrganization.internetDomain
Supported API: false
container
-
WTException
WTContainer.getInternetDomain()
,
WTOrganization.getInternetDomain()
public WTContainer getNamespace(WTContained contained) throws WTException
contained
-
WTException
public WTContainer getNamespace(WTContained contained, WTContainer new_container) throws WTException
contained
- new_container
-
WTException
public WTContainer getNamespace(Class contained_class, WTContainer new_container) throws WTException
WTContained
must be assignable from the class.
contained_class
- new_container
-
WTException
public OrgContainer getOrgContainer(WTContained contained) throws WTException
OrgContainer
.
contained
- The contained object to find an OrgContainer
for.
WTException
public OrgContainer getOrgContainer(WTOrganization wt_org) throws WTException
OrgContainer
for a WTOrganization
wt_org
-
OrgContainer
, or null
if one can't be found
WTException
public WTContainerRef getOrgContainerRef(WTContained contained) throws WTException
OrgContainer
.
contained
-
OrgContainer
WTException
public WTContainerRef getOrgContainerRef(WTOrganization wt_org) throws WTException
OrgContainer
for a WTOrganization
wt_org
-
OrgContainer
, or
null
if one can't be found
WTException
public PrincipalQueryResult getPrincipals(PrincipalSpec spec) throws WTException
Finds principals in the public context of the given container, as
defined in the PrincipalSpec
parameter object.
spec
-
PrincipalQueryResult
containing the resulting
principals.
WTException
public DirectoryContextProvider getPublicContextProvider(WTContainer container, Class principal_class) throws WTException
Creates DirectoryContextProvider
s according to the following
specification:
Organizations | Groups | Users | |
---|---|---|---|
Site Container | Selects all principals in all adapters | ||
Windchll PDM Container | Selects all principals in all adapters | ||
Restricted OrgContainers |
Selects only the given OrgContainer 's organization. |
Only selects groups in the bundled adapter, underneath the organization's "Public" node | Selects users that are members of the organization in all adpaters |
Unrestricted OrgContainers |
Selects only the given OrgContainer 's organization. |
In the bundled adapter, selects groups underneath the organization's "Public" node. In all other adapters, selects all groups. | Selects all users in all adapters |
ContainerTeamManaged containers in restricted OrgContainer s |
Only selects organizations and groups in the default adapter, underneath the containers "accessGroups" node. This node is the root for all of the container's role groups. | Selects users that are members of the container's organization in all adapters | |
ContainerTeamManaged containers in unrestricted
OrgContainer s |
In the bundled adapter, selects groups and organizations underneath the container's "accessGroups" node. This node is the root for all of the container's role groups. In all other adapters, selects all groups. | Selects all users in all adpaters |
container
- principal_class
-
WTException
public DirectoryContextProvider[] getPublicContextProviders(PrincipalSpec spec) throws WTException
DirectoryContextProvider
s that select
a set of principals appropriate for display in clients. The following
table presents the results of getPublicContextProviders
given an input container reference and principal class.
Notes on the table:
includeAllServices
property is true
in the table below. If it were false
, the results would
be the same, except only the bundled adapter would be included.performLookup
property is true
in
the table below. If it were false
, then the results for
WTGroup
would not include contexts from parent containers.principalClass
is WTPrincipal.class
itself, then the resulting array will contain a context or set of
contexts for each principal subclass as defined below.
Organizations | Groups | Users | |
---|---|---|---|
Site Container | A single context provider with no search filter in any service. | A single context provider that searches with one level scope beneath the base DN of the bundled adapter. No search filter for other services. | A single context provider with no search filter
in any service. If |
Organization Container |
|
||
Application Container |
|
||
Classic Container |
|
Supported API: false
spec
-
WTException
PrincipalSpec
,
wt#org#DirectoryContextProvider
public AdminDomainRef getPublicDomainRef(OrgContainer container, Class container_class, String domain_path) throws WTException
/Root/Default/Project/HR/Arden Hills, then the way to get the "Arden Hills" domain would be:
getPublicDomain(org, Project2.class, "/HR/Arden Hills").
Supported API: false
container
- container_class
- domain_path
-
WTException
public PublicDomainSet getPublicDomains(OrgContainer container, Class container_class) throws WTException
publicParentDomain
property. 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.
container
- container_class
-
WTException
public DirectorySubtree getSubtree(WTContainer container) throws WTException
DirectorySubtree
representing the path to the root
directory node corresponding to the given container.
container
-
WTException
DirectorySubtree
,
getContextProvider(wt.inf.container.WTContainer)
public boolean isAdministrator(WTContainerRef container_ref, WTPrincipal user) throws WTException
isAdministrator(WTContainerRef,WTPrincipal,boolean)
with lookup
set to true
.
container_ref
- user
-
WTException
public boolean isAdministrator(WTContainerRef container_ref, WTPrincipal user, boolean lookup) throws WTException
true
if the user is a member of the container's administrators group. If
lookup
is true
, will also return true
if the user is in the administrators group of any of the container's
ancestors.
container_ref
- user
- lookup
-
WTException
WTContainer.getAdministrators()
public boolean isDescendedFrom(WTContainerRef parent_ref, WTContainerRef child_ref) throws WTException
child_ref
is a descendent of parent_ref
.
parent_ref
- child_ref
-
WTException
public boolean isRootDomain(AdminDomainRef domain_ref) throws WTException
domain_ref
-
WTException
public QueryResult lookup(LookupSpec spec) throws WTException
LookupSpec
spec
-
WTException
LookupSpec
public WTContainer makePrivate(WTContainer container) throws WTException
privateAccess
property to true
.
In addition, reparents the container's defaultDomain
to point to the org container's privateDomain
.
container
-
WTException
public WTContainer makePublic(WTContainer container) throws WTException
privateAccess
property to false
.
In addition, reparents the container's defaultDomain
to point to the domain stored in the container's publicParentDomain
property.
container
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |