|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.inf.container.StandardWTContainerService
Use the newStandardWTContainerService
static factory method(s),
not the StandardWTContainerService
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 | |
private static class |
StandardWTContainerService.DomainInfo
|
private static class |
StandardWTContainerService.IsAdministratorKey
|
static class |
StandardWTContainerService.TemplateTypes
|
Field Summary | |
private AuditServiceEventHandler |
auditServiceEventHandler
|
private static String |
CLASSNAME
|
private static Vector |
CREATE_PERMISSION
|
private static boolean |
DEBUG
|
private DeleteManagerEventHandler |
deleteManagerEventHandler
|
protected static String |
DOMAIN_ID
|
protected ExchangeContainer |
exchange
|
private FolderServiceEventHandler |
folderServiceEventHandler
|
private IdentityServiceEventHandler |
identityServiceEventHandler
|
protected static Object |
IS_ADMINISTRATOR_CONTEXT_KEY
|
private static DebugWriter |
LOG
|
private PersistenceManagerEventHandler |
persistenceManagerEventHandler
|
private static Vector |
READ_PERMISSION
|
private static String |
RESOURCE
|
private WorkInProgressEventHandler |
workInProgressEventHandler
|
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 | |
StandardWTContainerService()
|
Method Summary | |||||||||||||||||||||||||||||
protected static void |
addPermissionForCheckout(WTCollection targetCollection)
|
||||||||||||||||||||||||||||
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. |
||||||||||||||||||||||||||||
void |
checkIdentity(WTContainer container)
Throws a UniquenessException if a container with the
same name and parent as the given container already exists. |
||||||||||||||||||||||||||||
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() . |
||||||||||||||||||||||||||||
ExchangeContainer |
createExchange()
Used internally by the container service during the installation process. |
||||||||||||||||||||||||||||
boolean |
exists(WTContainer container)
Determines if a container with the same name and parent as the given container already exists. |
||||||||||||||||||||||||||||
private WTGroup |
getAdministratorsReadOnly(WTContainerRef container_ref)
|
||||||||||||||||||||||||||||
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. |
||||||||||||||||||||||||||||
String |
getConceptualClassname()
Deprecated. |
||||||||||||||||||||||||||||
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 |
||||||||||||||||||||||||||||
ScheduleQueue |
getDeleteQueue()
Gets the ScheduleQueue used for deleting and restoring
the contents of a container when the container is deleted or restored. |
||||||||||||||||||||||||||||
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) |
||||||||||||||||||||||||||||
WTOrganization |
getOrganization(Object requestor)
Provides a delegation point to handle situations where the application requires that a WTOrganization exist. |
||||||||||||||||||||||||||||
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: false |
||||||||||||||||||||||||||||
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
|
||||||||||||||||||||||||||||
private DirectoryContextProvider |
getPublicContextProvider(WTContainer container,
Class principal_class,
boolean restrict)
|
||||||||||||||||||||||||||||
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. |
||||||||||||||||||||||||||||
private StandardWTContainerService.DomainInfo |
getUnusedDomainInfo(String name,
AdminDomainRef parent_domain_ref)
|
||||||||||||||||||||||||||||
String |
getUnusedDomainName(String name,
AdminDomainRef parent_domain_ref)
Returns a version of the supplied name that does not
corresponding to an existing AdministrativeDomain in
the given parent domain. |
||||||||||||||||||||||||||||
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 |
isInApplicationGeneratedDomain(WTOrganization org)
Determines if the organization is stored in an "org" domain automatically generated by the container service. |
||||||||||||||||||||||||||||
private boolean |
isRestrictedDirectorySearchScope(WTContainer container)
|
||||||||||||||||||||||||||||
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 . |
||||||||||||||||||||||||||||
static StandardWTContainerService |
newStandardWTContainerService()
Default factory for the class. |
||||||||||||||||||||||||||||
protected void |
performStartupProcess()
Dummy method to be overridden by subclasses. |
||||||||||||||||||||||||||||
void |
registerEvents(ManagerService manager_service)
Register events with the passed ManagerService. |
||||||||||||||||||||||||||||
void |
save(CreatorsMap map)
Configures and persists any new CreatorsLink s in the
given map. |
||||||||||||||||||||||||||||
void |
setClassic(WTContainer classic)
Used internally by the container service during the installation process. |
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 boolean DEBUG
private static final DebugWriter LOG
protected static final String DOMAIN_ID
protected ExchangeContainer exchange
private DeleteManagerEventHandler deleteManagerEventHandler
private IdentityServiceEventHandler identityServiceEventHandler
private PersistenceManagerEventHandler persistenceManagerEventHandler
private AuditServiceEventHandler auditServiceEventHandler
private FolderServiceEventHandler folderServiceEventHandler
private WorkInProgressEventHandler workInProgressEventHandler
protected static final Object IS_ADMINISTRATOR_CONTEXT_KEY
private static final Vector CREATE_PERMISSION
private static final Vector READ_PERMISSION
Constructor Detail |
public StandardWTContainerService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public void registerEvents(ManagerService manager_service)
registerEvents
in interface Manager
registerEvents
in class StandardManager
manager_service
- protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static StandardWTContainerService newStandardWTContainerService() throws WTException
WTException
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
.
canCreate
in interface WTContainerService
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.
canCreate
in interface WTContainerService
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
changePublicParentDomain
in interface WTContainerService
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
changeRestrictedDirectorySearchScope
in interface WTContainerService
container
- restrict
-
WTException
OrgContainer.restrictedDirectorySearchScope
public void checkCreate(Class container_class, WTUser user, WTContainerRef parent_ref) throws WTException
checkCreate
in interface WTContainerService
container_class
- user
- parent_ref
-
WTException
CanCreateDelegate
public WTContainer create(WTContainer container) throws WTException
WTContainerCreator
for the given
container and calls create()
.
create
in interface WTContainerService
container
-
WTException
WTContainerCreator
public WTContainer create(WTContainer container, String selector) throws WTException
WTContainerCreator
for the given
container and calls create()
.
create
in interface WTContainerService
container
- selector
- An optional selector to help pick the appropriate WTContainerCreator
.
WTException
WTContainerCreator
public AdminDomainRef getBasePublicDomain(OrgContainer container, Class container_class) throws WTException
getBasePublicDomain
in interface WTContainerService
container
- container_class
-
WTException
public WTContainerRef getByInternetDomain(String domain_name) throws WTException
getByInternetDomain
in interface WTContainerService
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
getByPath
in interface WTContainerService
path
-
WTException
public WTLibrary getClassicContainer() throws WTException
getClassicContainer
in interface WTContainerService
ClassicContainer
.
WTException
public WTContainerRef getClassicRef() throws WTException
getClassicRef
in interface WTContainerService
ClassicContainer
.
WTException
public QueryResult getContainers(ContainerSpec spec) throws WTException
ContainerSpec
.
getContainers
in interface WTContainerService
spec
-
WTException
public DirectoryContextProvider getContextProvider(WTContainer container) throws WTException
DirectoryContextProvider
associated
with the given container.
getContextProvider
in interface WTContainerService
container
-
WTException
WTContainer.getContextProvider()
public DirectoryContextProvider getContextProvider(WTContainerRef container_ref) throws WTException
DirectoryContextProvider
associated
with the given container.
getContextProvider
in interface WTContainerService
container_ref
-
WTException
WTContainer.getContextProvider()
public CreatorsMap getCreatorsMap(OrgContainer container) throws WTException
getCreatorsMap
in interface WTContainerService
container
-
CreatorsMap
for the given container.
WTException
CreatorsMap
public ExchangeContainer getExchangeContainer() throws WTException
getExchangeContainer
in interface WTContainerService
ExchangeContainer
.
WTException
public WTContainerRef getExchangeRef() throws WTException
getExchangeRef
in interface WTContainerService
ExchangeContainer
.
WTException
public String getInternetDomain(WTContainerRef container_ref) throws WTException
This property may be derived from WTOrganization.internetDomain
Supported API: false
getInternetDomain
in interface WTContainerService
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
getInternetDomain
in interface WTContainerService
container
-
WTException
WTContainer.getInternetDomain()
,
WTOrganization.getInternetDomain()
public WTContainer getNamespace(WTContained contained) throws WTException
getNamespace
in interface WTContainerService
contained
-
WTException
public WTContainer getNamespace(WTContained contained, WTContainer new_container) throws WTException
getNamespace
in interface WTContainerService
contained
- new_container
-
WTException
public WTContainer getNamespace(Class contained_class, WTContainer new_container) throws WTException
WTContained
must be assignable from the class.
getNamespace
in interface WTContainerService
contained_class
- new_container
-
WTException
public OrgContainer getOrgContainer(WTContained contained) throws WTException
OrgContainer
.
getOrgContainer
in interface WTContainerService
contained
- The contained object to find an OrgContainer
for.
WTException
public OrgContainer getOrgContainer(WTOrganization wt_org) throws WTException
OrgContainer
for a WTOrganization
getOrgContainer
in interface WTContainerService
wt_org
-
OrgContainer
, or null
if one can't be found
WTException
public WTContainerRef getOrgContainerRef(WTContained contained) throws WTException
OrgContainer
.
getOrgContainerRef
in interface WTContainerService
contained
-
OrgContainer
WTException
public WTContainerRef getOrgContainerRef(WTOrganization wt_org) throws WTException
OrgContainer
for a WTOrganization
getOrgContainerRef
in interface WTContainerService
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.
getPrincipals
in interface WTContainerService
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 |
getPublicContextProvider
in interface WTContainerService
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
getPublicContextProviders
in interface WTContainerService
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
getPublicDomainRef
in interface WTContainerService
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.
getPublicDomains
in interface WTContainerService
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.
getSubtree
in interface WTContainerService
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
.
isAdministrator
in interface WTContainerService
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.
isAdministrator
in interface WTContainerService
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
.
isDescendedFrom
in interface WTContainerService
parent_ref
- child_ref
-
WTException
public boolean isRootDomain(AdminDomainRef domain_ref) throws WTException
isRootDomain
in interface WTContainerService
domain_ref
-
WTException
public QueryResult lookup(LookupSpec spec) throws WTException
LookupSpec
lookup
in interface WTContainerService
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
.
makePrivate
in interface WTContainerService
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.
makePublic
in interface WTContainerService
container
-
WTException
public void checkIdentity(WTContainer container) throws WTException
UniquenessException
if a container with the
same name and parent as the given container already exists.
checkIdentity
in interface WTContainerServiceSvr
container
-
WTException
public ExchangeContainer createExchange() throws WTException
createExchange
in interface WTContainerServiceSvr
WTException
public ScheduleQueue getDeleteQueue()
ScheduleQueue
used for deleting and restoring
the contents of a container when the container is deleted or restored.
If a service needs to do some work once a container's content is deleted or restored, it can add a queue entry from the appropriate POST listener.
Supported API: false
getDeleteQueue
in interface WTContainerServiceSvr
wt#fc#delete#DeleteManager
public WTOrganization getOrganization(Object requestor) throws WTException
WTOrganization
exist. The requestor
parameter is the object that is driving the requirement for the organization
to be created. In OOTB 7.0, the requestor can be:
OrgContainer
. In this case, the container creation
process needs to ensure that a corresponding WTOrganization
exists for the container it is about to create.
WTPrincipal
. In this case, the team service is
adding a new user to a team and needs to add the user to the appropriate
"org group".
WTOrganizationValidator
.
getOrganization
in interface WTContainerServiceSvr
requestor
-
WTOrganization
WTException
public String getUnusedDomainName(String name, AdminDomainRef parent_domain_ref) throws WTException
name
that does not
corresponding to an existing AdministrativeDomain
in
the given parent domain. After first shortening the name to ensure
it fits within AdministrativeDomain.name
's upper
limit, the implementation makes several attempst to handle domain
name confilicts. If the a domain with the name returned by attempt
zero, it will construct modified versions of the name iteratively
until no existing domain is found.
The format for domain names is:
WTContainerServerHelper.MAX_DOMAIN_CREATION_ATTEMPTS
attempts to find a non-existing domain. This value can be configured
in wt.properties
by the wt.inf.container.WTContainerServerHelper.maxDomainCreationAttempts
property.
getUnusedDomainName
in interface WTContainerServiceSvr
name
- parent_domain_ref
- This parameter can be null
to allow for searching for a container "root" domain.
WTException
public boolean isInApplicationGeneratedDomain(WTOrganization org) throws WTException
getOrganization(Object)
API.
isInApplicationGeneratedDomain
in interface WTContainerServiceSvr
org
-
WTException
public boolean exists(WTContainer container) throws WTException
exists
in interface WTContainerServiceSvr
container
-
WTException
public void save(CreatorsMap map) throws WTException
CreatorsLink
s in the
given map. If any of the CreatorsLink
s have a null
creators group reference, a creators group is created for them.
save
in interface WTContainerServiceSvr
map
-
WTException
CreatorsMap
public void setClassic(WTContainer classic) throws WTException
setClassic
in interface WTContainerServiceSvr
classic
-
WTException
private final DirectoryContextProvider getPublicContextProvider(WTContainer container, Class principal_class, boolean restrict) throws WTException
WTException
private final boolean isRestrictedDirectorySearchScope(WTContainer container) throws WTException
WTException
private StandardWTContainerService.DomainInfo getUnusedDomainInfo(String name, AdminDomainRef parent_domain_ref) throws WTException
WTException
private WTGroup getAdministratorsReadOnly(WTContainerRef container_ref) throws WTException
WTException
protected static void addPermissionForCheckout(WTCollection targetCollection) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |