|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Supported API: true
Extendable: false
Method Summary | |
void |
checkIdentity(WTContainer container)
Throws a UniquenessException if a container with the
same name and parent as the given container already exists. |
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. |
ScheduleQueue |
getDeleteQueue()
Gets the ScheduleQueue used for deleting and restoring
the contents of a container when the container is deleted or restored. |
WTOrganization |
getOrganization(Object requestor)
Provides a delegation point to handle situations where the application requires that a WTOrganization exist. |
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 |
isInApplicationGeneratedDomain(WTOrganization org)
Determines if the organization is stored in an "org" domain automatically generated by the container service. |
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. |
Method Detail |
public void checkIdentity(WTContainer container) throws WTException
UniquenessException
if a container with the
same name and parent as the given container already exists.
container
-
WTException
public ExchangeContainer createExchange() throws WTException
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
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
.
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.
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.
org
-
WTException
public boolean exists(WTContainer container) throws WTException
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.
map
-
WTException
CreatorsMap
public void setClassic(WTContainer classic) throws WTException
classic
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |