wt.inf.team
Class AbstractContainerTeamManagedCreator

java.lang.Object
  extended bywt.inf.template.creator.AbstractWTContainerCreator
      extended bywt.inf.team.AbstractContainerTeamManagedCreator
All Implemented Interfaces:
ContainerCreatorOrgOperations, WTContainerCreator
Direct Known Subclasses:
ClassicCreator, PDMLinkProductCreator, ProjectCreator, WTLibraryCreator

public abstract class AbstractContainerTeamManagedCreator
extends AbstractWTContainerCreator



Supported API: false

Extendable: false


Field Summary
protected static String ACCESSPOLICYRULE_CLASS
           
protected static String CABINET_CLASS
           
private static String CLASSNAME
           
protected static String DISCRETEACTIONITEM_CLASS
           
protected static String MARKUP_CLASS
           
protected static String MEETING_CLASS
           
protected static String[] READ_TYPES
           
private static String RESOURCE
           
protected static String SUBFOLDER_CLASS
           
protected static String TOP_CLASS
           
protected static String WF_EXECUTION_OBJECT_CLASS
           
 
Fields inherited from class wt.inf.template.creator.AbstractWTContainerCreator
EMPTY_USER_ARRAY, WTOBJECT_TYPE
 
Constructor Summary
AbstractContainerTeamManagedCreator()
           
 
Method Summary
 DirectoryContextProvider getAdminGroupContext(WTContainer cont)
          Returns and if necessary populates the directory context nodes needed for the WTContainer

Supported API: false
private  String getGroupDescription(String name, WTContainer container)
           
private  WTPrincipalReference[] getPrincRefArray(WTPrincipal confirmed, WTPrincipal guest)
           
protected  WTContainer initializeContextProvider(WTContainerCreateRequest initData)
          This over-ride adds the following nodes to the DirectoryContextProvider ContainerTeamHelper.MEMBERSHIP_GROUPS ContainerTeamHelper.NVITED ContainerTeamHelper.MY_PAGE_QUERYABLE ContainerTeamHelper.USERS ContainerTeamHelper.ACCESS_GROUPS ContainerTeamHelper.ROLE_GROUPS ContainerTeamHelper.ORG_GROUPS ContainerTeamHelper.OTHER_GROUPS ContainerTeamHelper.CONFIRMED ContainerTeamHelper.GUEST

Supported API: false
protected  WTContainer initializeRequiredSystemUsers(WTContainerCreateRequest initData)
          This method initializes users and groups required for the container.
protected  WTContainer initializeSystemAccess(WTContainerCreateRequest createParams)
          Initializes System access rules.
protected  WTContainer initializeSystemFolders(WTContainerCreateRequest initData)
          This method initializes the folder structure for the container.
protected  WTContainer migratePrePersistAttributes(WTContainerCreateRequest initData)
          This method should provide the equivalent of setPrePersistAttributes, but with a container that has already been persisted.
protected  WTContainer setPrePersistAttributes(WTContainerCreateRequest initData)
          This method sets attributes which need to be set prior to persisting the container.
 
Methods inherited from class wt.inf.template.creator.AbstractWTContainerCreator
checkCreate, create, createAccessControlRule, createRootDomain, finalizeCreation, finalizeInitialization, getContainer, getContainerRef, initializeSystemDomains, loadBusinessTemplate, migrate, runScript, skipOrgXML, skipProjectXML, skipXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

WF_EXECUTION_OBJECT_CLASS

protected static final String WF_EXECUTION_OBJECT_CLASS

TOP_CLASS

protected static final String TOP_CLASS

MARKUP_CLASS

protected static final String MARKUP_CLASS

CABINET_CLASS

protected static final String CABINET_CLASS

SUBFOLDER_CLASS

protected static final String SUBFOLDER_CLASS

ACCESSPOLICYRULE_CLASS

protected static final String ACCESSPOLICYRULE_CLASS

MEETING_CLASS

protected static final String MEETING_CLASS

DISCRETEACTIONITEM_CLASS

protected static final String DISCRETEACTIONITEM_CLASS

READ_TYPES

protected static final String[] READ_TYPES
Constructor Detail

AbstractContainerTeamManagedCreator

public AbstractContainerTeamManagedCreator()
Method Detail

setPrePersistAttributes

protected WTContainer setPrePersistAttributes(WTContainerCreateRequest initData)
                                       throws WTException
This method sets attributes which need to be set prior to persisting the container. Default is to do nothing.

Supported API: false

Overrides:
setPrePersistAttributes in class AbstractWTContainerCreator
Parameters:
initData -
Returns:
WTContainer
Throws:
WTException

migratePrePersistAttributes

protected WTContainer migratePrePersistAttributes(WTContainerCreateRequest initData)
                                           throws WTException
This method should provide the equivalent of setPrePersistAttributes, but with a container that has already been persisted. This is required by Windchill/PDM and PDMLink migration scenarios.

Supported API: false

Overrides:
migratePrePersistAttributes in class AbstractWTContainerCreator
Parameters:
initData -
Returns:
WTContainer
Throws:
WTException

initializeSystemFolders

protected WTContainer initializeSystemFolders(WTContainerCreateRequest initData)
                                       throws WTException
This method initializes the folder structure for the container. By default no folders are created in this method. If your container requires ad-hocs to be set on folders, this is the place to set them, even the default cabinets.

Supported API: false

Overrides:
initializeSystemFolders in class AbstractWTContainerCreator
Parameters:
initData -
Returns:
WTContainer
Throws:
WTException

initializeRequiredSystemUsers

protected WTContainer initializeRequiredSystemUsers(WTContainerCreateRequest initData)
                                             throws WTException
This method initializes users and groups required for the container. Whether this method is over-ridden or not, a Container Administrators group is created, and the user owning the active session is made the containers administrator. This method allows Containers to add required users and groups in addition to the required users.

Supported API: false

Overrides:
initializeRequiredSystemUsers in class AbstractWTContainerCreator
Parameters:
initData -
Returns:
WTContainer
Throws:
WTException

initializeSystemAccess

protected WTContainer initializeSystemAccess(WTContainerCreateRequest createParams)
                                      throws WTException
Initializes System access rules. By default, the only rules put in place are to make the Container Administrator god.

Supported API: false

Overrides:
initializeSystemAccess in class AbstractWTContainerCreator
Parameters:
createParams -
Returns:
WTContainer
Throws:
WTException

getAdminGroupContext

public DirectoryContextProvider getAdminGroupContext(WTContainer cont)
                                              throws WTException
Returns and if necessary populates the directory context nodes needed for the WTContainer

Supported API: false

Specified by:
getAdminGroupContext in interface ContainerCreatorOrgOperations
Overrides:
getAdminGroupContext in class AbstractWTContainerCreator
Parameters:
cont -
Returns:
DirectoryContextProvider
Throws:
WTException

initializeContextProvider

protected WTContainer initializeContextProvider(WTContainerCreateRequest initData)
                                         throws WTException
This over-ride adds the following nodes to the DirectoryContextProvider ContainerTeamHelper.MEMBERSHIP_GROUPS ContainerTeamHelper.NVITED ContainerTeamHelper.MY_PAGE_QUERYABLE ContainerTeamHelper.USERS ContainerTeamHelper.ACCESS_GROUPS ContainerTeamHelper.ROLE_GROUPS ContainerTeamHelper.ORG_GROUPS ContainerTeamHelper.OTHER_GROUPS ContainerTeamHelper.CONFIRMED ContainerTeamHelper.GUEST

Supported API: false

Overrides:
initializeContextProvider in class AbstractWTContainerCreator
Parameters:
initData -
Returns:
WTContainer
Throws:
WTException

getPrincRefArray

private WTPrincipalReference[] getPrincRefArray(WTPrincipal confirmed,
                                                WTPrincipal guest)
                                         throws WTException
Throws:
WTException

getGroupDescription

private String getGroupDescription(String name,
                                   WTContainer container)