wt.inf.library
Class ClassicCreator

java.lang.Object
  extended bywt.inf.template.creator.AbstractWTContainerCreator
      extended bywt.inf.team.AbstractContainerTeamManagedCreator
          extended bywt.inf.library.ClassicCreator
All Implemented Interfaces:
ContainerCreatorOrgOperations, WTContainerCreator

public final class ClassicCreator
extends AbstractContainerTeamManagedCreator



Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static Object[] DEF_PARAMS
           
private  ClassicCreatorHelper helper
           
private static String LIBRARY_TYPE
           
private static String ORG_CONTAINER_TYPE
           
private static String RESOURCE
           
private static String WTORG_TYPE
           
 
Fields inherited from class wt.inf.team.AbstractContainerTeamManagedCreator
ACCESSPOLICYRULE_CLASS, CABINET_CLASS, DISCRETEACTIONITEM_CLASS, MARKUP_CLASS, MEETING_CLASS, READ_TYPES, SUBFOLDER_CLASS, TOP_CLASS, WF_EXECUTION_OBJECT_CLASS
 
Fields inherited from class wt.inf.template.creator.AbstractWTContainerCreator
EMPTY_USER_ARRAY, WTOBJECT_TYPE
 
Constructor Summary
ClassicCreator()
          

Supported API: false
 
Method Summary
protected  WTContainer finalizeCreation(WTContainerCreateRequest createParams)
          This method should be over-ridden if there is a need to do any processing after loading business data.
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 initializeSystemDomains(WTContainerCreateRequest initData)
          This method initializes the domain and folder structure for the container.
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.team.AbstractContainerTeamManagedCreator
getAdminGroupContext, initializeContextProvider
 
Methods inherited from class wt.inf.template.creator.AbstractWTContainerCreator
checkCreate, create, createAccessControlRule, createRootDomain, finalizeInitialization, getContainer, getContainerRef, 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

helper

private final ClassicCreatorHelper helper

DEF_PARAMS

private static final Object[] DEF_PARAMS

LIBRARY_TYPE

private static final String LIBRARY_TYPE

WTORG_TYPE

private static final String WTORG_TYPE

ORG_CONTAINER_TYPE

private static final String ORG_CONTAINER_TYPE
Constructor Detail

ClassicCreator

public ClassicCreator()


Supported API: false

Method Detail

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 AbstractContainerTeamManagedCreator
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 AbstractContainerTeamManagedCreator
Parameters:
createParams -
Returns:
WTContainer
Throws:
WTException

initializeSystemDomains

protected WTContainer initializeSystemDomains(WTContainerCreateRequest initData)
                                       throws WTException
This method initializes the domain and folder structure for the container. There are two domains and cabinets that are created no matter what you add to your over-ride. Those being the container System and Business domains and cabinets. When over-riding, the ContainerRequest contains the container, when you get done manipulating the container simply return it. The framework will make sure that the the request object has the right container reference.

Supported API: false

Overrides:
initializeSystemDomains 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.

Supported API: false

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

finalizeCreation

protected WTContainer finalizeCreation(WTContainerCreateRequest createParams)
                                throws WTException
This method should be over-ridden if there is a need to do any processing after loading business data. The default is to do nothing.

Supported API: false

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

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 AbstractContainerTeamManagedCreator
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 AbstractContainerTeamManagedCreator
Parameters:
initData -
Returns:
WTContainer
Throws:
WTException