wt.pdmlink
Class PDMLinkProductCreator

java.lang.Object
  extended bywt.inf.template.creator.AbstractWTContainerCreator
      extended bywt.inf.team.AbstractContainerTeamManagedCreator
          extended bywt.pdmlink.PDMLinkProductCreator
All Implemented Interfaces:
ContainerCreatorOrgOperations, Serializable, WTContainerCreator

public class PDMLinkProductCreator
extends AbstractContainerTeamManagedCreator
implements Serializable

This WTContainerCreator deals with the uniqe aspects of creating a PDMLinkProduct which includes persisting an associated WTProduct.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
(package private)  WTProduct product
           
private static String RESOURCE
           
 
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
PDMLinkProductCreator()
           
 
Method Summary
protected  boolean canCreate(WTContainerCreateRequest initData)
          Verifies that the container is a PDMLinkProduct and that it has an associated WTProduct

Supported API: false

Extendable: false
protected  WTContainer finalizeCreation(WTContainerCreateRequest createParams)
          Reassociates the saved WTProduct with the newly persisted PDMLinkProduct

Supported API: false

Extendable: false
protected  WTContainer initializeSystemDomains(WTContainerCreateRequest initData)
          Persists the WTProductMaster associated with the newly persisted PDMLinkProduct.
protected  WTContainer setPrePersistAttributes(WTContainerCreateRequest initData)
          Saves the WTProduct that is associated with the unpersisted PDMLinkProduct

Supported API: false

Extendable: false
 
Methods inherited from class wt.inf.team.AbstractContainerTeamManagedCreator
getAdminGroupContext, initializeContextProvider, initializeRequiredSystemUsers, initializeSystemAccess, initializeSystemFolders, migratePrePersistAttributes
 
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

product

WTProduct product
Constructor Detail

PDMLinkProductCreator

public PDMLinkProductCreator()
Method Detail

canCreate

protected boolean canCreate(WTContainerCreateRequest initData)
                     throws WTException
Verifies that the container is a PDMLinkProduct and that it has an associated WTProduct

Supported API: false

Extendable: false

Throws:
WTException

setPrePersistAttributes

protected WTContainer setPrePersistAttributes(WTContainerCreateRequest initData)
                                       throws WTException
Saves the WTProduct that is associated with the unpersisted PDMLinkProduct

Supported API: false

Extendable: false

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

initializeSystemDomains

protected WTContainer initializeSystemDomains(WTContainerCreateRequest initData)
                                       throws WTException
Persists the WTProductMaster associated with the newly persisted PDMLinkProduct.

Supported API: false

Extendable: false

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

finalizeCreation

protected WTContainer finalizeCreation(WTContainerCreateRequest createParams)
                                throws WTException
Reassociates the saved WTProduct with the newly persisted PDMLinkProduct

Supported API: false

Extendable: false

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