wt.inf.template
Class StandardContainerTemplateService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.inf.template.StandardContainerTemplateService
All Implemented Interfaces:
ContainerTemplateService, ContainerTemplateServiceSvr, Manager, NetFactor, Serializable

public class StandardContainerTemplateService
extends StandardManager
implements ContainerTemplateServiceSvr, ContainerTemplateService, Serializable

Use the newStandardContainerTemplateService static factory method(s), not the StandardContainerTemplateService 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: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String BUSS_JAR_CHECKIN_COMMENT
           
private static String CLASSNAME
           
private static String CONTAINER_COPY_KEY
           
private static int[] DEF_INDEXES
           
private static Object[] DEF_PARAMS
           
private static int[] FROM_INDICES
           
private static Map legalClassNames
           
private static Object mapLock
           
private static String RESOURCE
           
 TemplateServicesFactory templateServicesFactory
          

Supported API: false
 
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
StandardContainerTemplateService()
           
 
Method Summary
 WTContainerTemplate addBusinessXML(WTContainerTemplateRef templateRef, UploadBusinessXMLRequest businessRequest)
          Uploads the business XML.
private  void addEventListeners()
           
private  WTContainerTemplate addIxbDocumentAsContent(IxbDocument doc, WTContainerTemplate template)
           
 WTContainerRef assignContainerToTemplate(WTContainerRef container, WTContainerTemplateRef containerTemplate)
          If a container has been created with no template, this provides the ability to assign one retroactively.
 WTContainerTemplate assignDefaultValuesSpec(WTContainerTemplateRef templateRef, String ruleName)
          Sets the default values for the template.
private  void checkContainerClassName(String className)
           
private  void checkContainerRef(WTContainerRef contRef)
           
private  void cleanupDownloadJar(DefaultWTContainerTemplate tmpl)
           
private  String computeContainerClassName(Class contClass)
           
private  WTContainerTemplateRef computeTemplateRef(WTContainerTemplate tmpl)
           
 WTContainerRef copyContainer(WTContainerRef sourceContainer, ContainerCopyInstanceAttributes clientValues, ContainerCopyWorklist workList)
          Given a source container, worklist,this method creates a new WTContainer and returns a reference to it.
 WTContainerRef copyContainer(WTContainerRef sourceContainer, ContainerCopyInstanceAttributes clientvalues, ContainerCopyWorklist workList, String scriptId)
          Given a source container, worklist, and a scriptIdentifier this method creates a new WTContainer and returns a reference to it.
 WTContainerTemplate copyTemplate(WTContainerRef parentContainer, WTContainerTemplate template, GeneratedTemplateAttributes attrs)
          Saves the non-identity information of a template along with any associated content files to a new template.
 WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer, WTContainerTemplate template)
          Creates the container template.
 WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer, WTContainerTemplate template, UploadTemplateRequest businessXML)
          Creates the container template.
private  LookupSpec createLookupSpec(WTContainerRef start, boolean firstMatch, boolean filter)
           
private  DefaultWTContainerTemplate createTemplate(WTContainerTemplate template, WTContainerRef parentContainer, UploadTemplateRequest businessXML)
           
 void deleteContainerTemplate(WTContainerTemplateRef template)
          This method should be used to delete a container template.
 URL downloadBusinessXML(WTContainerTemplateRef templateRef)
          Prepares a jar file containing the standard70.dtd, the business XML, and any content files and fragments that are part of the WTContainerTemplate

Supported API: false
 File exportContainerAsTemplateToFile(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist)
          A lower level API that allows solutions to over-ride the default URL generation.
 File exportContainerAsTemplateToFile(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist, String scriptId)
          A lower level API that allows solutions to over-ride the default URL generation.
 QueryResult getAllTemplateMasters(LookupSpec lookupSpec)
          

Supported API: false
 QueryResult getAllTemplateMasters(LookupSpec lookupSpec, Class contClass)
          

Supported API: false
 QueryResult getAllTemplateMasters(WTContainerRef parentContainer)
          

Supported API: false
 QueryResult getAllTemplateMasters(WTContainerRef parentContainer, Class contClass)
          

Supported API: false
 QueryResult getAllTemplates(LookupSpec lookupSpec)
          

Supported API: false
 QueryResult getAllTemplates(LookupSpec lookupSpec, Class contClass)
          

Supported API: false
 QueryResult getAllTemplates(WTContainerRef parentContainer)
          

Supported API: false
 QueryResult getAllTemplates(WTContainerRef parentContainer, Class contClass)
          

Supported API: false
 XMLLob getBusinessXML(WTContainerTemplateRef templateRef)
          Retrieves the business XML for a subclass of DefaultWTContainerTemplate.
 String getConceptualClassname()
          Deprecated.  
private  QueryResult getContainers(WTContainerTemplateMaster master)
           
 QueryResult getContainers(WTContainerTemplateMasterReference definition)
          This signature gets all containers created from all iterations of the template.
 QueryResult getContainers(WTContainerTemplateRef definition)
          This method returns all containers created from all iterations of the master object.
 WTContainerTemplate getContainerTemplate(ContainerTemplateDefinition definition)
          Gets the latest iteration of a template given a container definition.
 WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, Class containerClass)
          Gets a template given a name and a container class object.
 WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, Class containerClass, boolean lookupFlag, String locale)
          Gets a template given a name and a container class.
 WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, String containerClassName)
          Gets a template given a name and a fully qualified container class name.
 WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, String containerClassName, boolean lookupFlag, String locale)
          Gets a template given a name and a contaienr class name.
 WTContainerTemplateRef getContainerTemplateRef(ContainerTemplateDefinition definition)
          Gets the latest iteration of a template given a container definition.
 WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, Class containerClass)
          Gets a template given a name and container class object.
 WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, Class containerClass, boolean lookup, String locale)
          Gets a template given a name and a fully qualified container class name.
 WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, String containerClassName)
          Gets a template given a name and a fully qualified container class name.
 WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, String containerClassName, boolean lookupflag, String locale)
          Gets a template given a name and a fully qualified container class name.
 WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate)
          Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template.
 WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate, WTContainer cont)
          Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template.
private  IxbDocument getDefaultValuesMappingRule(String name)
           
 QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec)
          returns all template masters residing in the passed in container, the locale is the server side locale

Supported API: true
 QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec, Class containerClass)
          returns all enabled template masters that reside in the passed in LookupSpec

Supported API: true
 QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec, Class containerClass, Locale clientLocale)
          returns all enabled template masters that reside in the passed in container, the result set is ordered by name corresponding to the passed in Locale.
 QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer)
          returns all template masters residing in the passed in container, the locale is the server side locale

Supported API: true
 QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer, Class containerClass)
          returns all enabled template masters that reside in the passed in container, the result set is ordered by name corresponding to the passed in Locale.
 QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer, Class containerClass, Locale clientLocale)
          returns all enabled template masters that reside in the passed in container, the result set is ordered by name corresponding to the passed in Locale.
private  QueryResult getEnabledTemplateMastersForClassAndLocale(WTContainerRef parentContainer, String className, Locale locale)
           
 QueryResult getEnabledTemplates(LookupSpec lookupSpec)
          Returns all container templates regardless of containerclass, the lookupspec only needs to specify the container restrictions The other restrictions will be taken care of by the service.
 QueryResult getEnabledTemplates(LookupSpec lookupSpec, Class containerClass)
          Returns all enabled templates which create a container of the type of the passed in container class which live in the containers correpsonding to the designated LookupSpec This lookup spec only needs to specify the specification for the container navigation, the rest of the search conditions will be added on your behalf by the service.
 QueryResult getEnabledTemplates(WTContainerRef parentContainer)
          

Supported API: false
 QueryResult getEnabledTemplates(WTContainerRef parentContainer, Class containerClass)
          

Supported API: false
private  QueryResult getEnabledTemplatesForClass(WTContainerRef parentContainer, String className)
           
private  QueryResult getEnabledTemplatesForClassAndLocale(WTContainerRef parentContainer, String className, Locale locale)
           
private  WTContainerTemplateRef getImportedTemplateRef(WTContainerRef contRef, ImportTemplateRequest req, GeneratedTemplateAttributes attrs)
           
 ImportTemplateRequest getImportRequest(File file)
          Returns the appropriate ImportTemplateRequest object for the passed in File.
 WTContainerTemplateRef getLatestIteration(ContainerTemplateDefinition definition)
          

Supported API: false
 WTContainerTemplateRef getLatestIteration(WTContainerTemplateRef definitionReference)
          

Supported API: false
private  XMLLob getLobFromBusinessXMLRequest(UploadTemplateRequest businessRequest)
           
private  WTContainerTemplateMaster getMasterInContainer(WTContainerRef contRef, String name, String className)
           
private  WTContainerTemplateMaster getMasterInContainer(WTContainerRef contRef, String name, String className, String locale)
           
private  QuerySpec getMasterQuerySpec(String name, String containerClassName)
           
private  QuerySpec getMasterQuerySpec(String name, String containerClassName, String locale)
           
private  WTContainerRef getParentContainerRef(WTContainerRef sourceRef)
           
private  QuerySpec getQueryForMasters(String container_classname, boolean enabled_only)
           
private  QuerySpec getQueryForTemplates(String container_classname, boolean enabled_only)
           
 InputStream getTemplateContentInputStream(WTContainerTemplateRef template, String contentPath)
          Allow users of this service to just get the input stream for any content files associated with a template.
private  DefaultWTContainerTemplate getTemplateFromRef(WTContainerTemplateRef tmplRef)
           
private  DefaultWTContainerTemplate getTemplateFromRef(WTContainerTemplateRef tmplRef, boolean validate)
           
private  QueryResult getTemplateMastersForClassAndLocale(LookupSpec ls, String className, Locale locale, boolean enabledOnly)
           
private  QueryResult getTemplateMastersForClassAndLocale(WTContainerRef parentContainer, String className, Locale locale, boolean enabledOnly)
           
 TemplateServicesFactory getTemplateServicesFactory()
          Gets the object for the association that plays role: templateServicesFactory.
private  QueryResult getTemplatesForClassAndLocale(LookupSpec ls, String container_classname, Locale locale, boolean enabled_only)
           
private  QueryResult getTemplatesForClassAndLocale(WTContainerRef parentContainer, String container_classname, Locale locale, boolean enabled_only)
           
 UploadTemplateRequest getUploadRequest(File file)
          Returns the appropriate UploadRequest based on an analysis of the passed in File object.
 WTContainerRef importBusinessXML(WTContainerRef container, XMLLob businessData)
          

Supported API: false
 WTContainerTemplateRef importContainerTemplate(ImportTemplateRequest req, WTContainerRef contRef, GeneratedTemplateAttributes attrs)
          Imports a file containing a single default values spec.
 void importDefaultValuesSpec(WTContainerRef contRef, UploadBusinessXMLRequest req)
          Imports a file containing a single default values spec.
 void importDefaultValuesSpec(WTContainerRef contRef, UploadBusinessXMLRequest req, String ruleName)
          Imports a file containing a single default values spec.
private  DefaultWTContainerTemplate initializeAttributes(DefaultWTContainerTemplate tmpl, WTContainerRef parentContainer)
           
private  void initializeRegistries()
           
private  WTContainerTemplateMaster lookupMasterFromContainer(WTContainerRef parent, String name, String containerClassName)
           
private  WTContainerTemplateMaster lookupMasterFromContainer(WTContainerRef parent, String name, String containerClassName, String locale)
           
static StandardContainerTemplateService newStandardContainerTemplateService()
          Default factory for the class.
protected  void performStartupProcess()
          Dummy method to be overridden by subclasses.
private  DefaultWTContainerTemplate prepareBusinessXML(DefaultWTContainerTemplate tmpl)
           
private  void processLookupSpec(LookupSpec ls, QuerySpec qs, ClassAttribute name_attr, Locale locale)
           
 WTContainerTemplate replaceBusinessXML(WTContainerTemplateRef definitionReference, UploadTemplateRequest request)
          Purges the old business XML and any fragments, and replaces it with the passed in BusinessXML

Supported API: false
private  WTContainerTemplate replaceBusinessXML(WTContainerTemplateRef templateRef, UploadTemplateRequest businessRequest, boolean clobberOld)
           
 WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist)
          

Supported API: false
 WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist, String scriptId)
          Saves a container template to the container that is the parent container of the source container

Supported API: false
 WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef parentContainer, WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist)
          This signature saves the template to the specified parent container

Supported API: false
 WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef parentContainer, WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist, String scriptId)
          Saves a container template to the specified parent container

Supported API: false
private  void validateBusinessXML(XMLLob lob)
           
private  void validateLoadFromFileElement(IxbElement elem)
           
private  void validateLoadFromFileElements(IxbDocument doc)
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

templateServicesFactory

public final TemplateServicesFactory templateServicesFactory


Supported API: false


FROM_INDICES

private static final int[] FROM_INDICES

legalClassNames

private static Map legalClassNames

mapLock

private static Object mapLock

BUSS_JAR_CHECKIN_COMMENT

private static final String BUSS_JAR_CHECKIN_COMMENT

DEF_PARAMS

private static final Object[] DEF_PARAMS

DEF_INDEXES

private static final int[] DEF_INDEXES

CONTAINER_COPY_KEY

private static final String CONTAINER_COPY_KEY
See Also:
Constant Field Values
Constructor Detail

StandardContainerTemplateService

public StandardContainerTemplateService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

getTemplateServicesFactory

public final TemplateServicesFactory getTemplateServicesFactory()
Gets the object for the association that plays role: templateServicesFactory.

Supported API: false

Returns:
TemplateServicesFactory

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Dummy method to be overridden by subclasses. Subclasses should override this method and provide startup processing.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

newStandardContainerTemplateService

public static StandardContainerTemplateService newStandardContainerTemplateService()
                                                                            throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardContainerTemplateService
Throws:
WTException

getTemplateContentInputStream

public InputStream getTemplateContentInputStream(WTContainerTemplateRef template,
                                                 String contentPath)
                                          throws WTException
Allow users of this service to just get the input stream for any content files associated with a template. This is needed because StreamData and ApplicationData are not polymorphic.

Supported API: false

Specified by:
getTemplateContentInputStream in interface ContainerTemplateServiceSvr
Parameters:
template -
contentPath -
Returns:
InputStream
Throws:
WTException

importBusinessXML

public WTContainerRef importBusinessXML(WTContainerRef container,
                                        XMLLob businessData)
                                 throws WTException


Supported API: false

Specified by:
importBusinessXML in interface ContainerTemplateServiceSvr
Parameters:
container -
businessData -
Returns:
WTContainerRef
Throws:
WTException

getEnabledTemplates

public QueryResult getEnabledTemplates(WTContainerRef parentContainer,
                                       Class containerClass)
                                throws WTException


Supported API: false

Specified by:
getEnabledTemplates in interface ContainerTemplateService
Parameters:
parentContainer -
containerClass -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplates

public QueryResult getEnabledTemplates(LookupSpec lookupSpec,
                                       Class containerClass)
                                throws WTException
Returns all enabled templates which create a container of the type of the passed in container class which live in the containers correpsonding to the designated LookupSpec This lookup spec only needs to specify the specification for the container navigation, the rest of the search conditions will be added on your behalf by the service.

Supported API: false

Specified by:
getEnabledTemplates in interface ContainerTemplateService
Parameters:
lookupSpec -
containerClass -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplates

public QueryResult getEnabledTemplates(WTContainerRef parentContainer)
                                throws WTException


Supported API: false

Specified by:
getEnabledTemplates in interface ContainerTemplateService
Parameters:
parentContainer -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplates

public QueryResult getEnabledTemplates(LookupSpec lookupSpec)
                                throws WTException
Returns all container templates regardless of containerclass, the lookupspec only needs to specify the container restrictions The other restrictions will be taken care of by the service.

Supported API: false

Specified by:
getEnabledTemplates in interface ContainerTemplateService
Parameters:
lookupSpec -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplateMasters

public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer,
                                             Class containerClass)
                                      throws WTException
returns all enabled template masters that reside in the passed in container, the result set is ordered by name corresponding to the passed in Locale.

Supported API: true

Specified by:
getEnabledTemplateMasters in interface ContainerTemplateService
Parameters:
parentContainer -
containerClass -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplateMasters

public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec,
                                             Class containerClass)
                                      throws WTException
returns all enabled template masters that reside in the passed in LookupSpec

Supported API: true

Specified by:
getEnabledTemplateMasters in interface ContainerTemplateService
Parameters:
lookupSpec -
containerClass -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplateMasters

public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer,
                                             Class containerClass,
                                             Locale clientLocale)
                                      throws WTException
returns all enabled template masters that reside in the passed in container, the result set is ordered by name corresponding to the passed in Locale.

Supported API: true

Specified by:
getEnabledTemplateMasters in interface ContainerTemplateService
Parameters:
parentContainer -
containerClass -
clientLocale -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplateMasters

public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec,
                                             Class containerClass,
                                             Locale clientLocale)
                                      throws WTException
returns all enabled template masters that reside in the passed in container, the result set is ordered by name corresponding to the passed in Locale.

Supported API: true

Specified by:
getEnabledTemplateMasters in interface ContainerTemplateService
Parameters:
lookupSpec -
containerClass -
clientLocale -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplateMasters

public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer)
                                      throws WTException
returns all template masters residing in the passed in container, the locale is the server side locale

Supported API: true

Specified by:
getEnabledTemplateMasters in interface ContainerTemplateService
Parameters:
parentContainer -
Returns:
QueryResult
Throws:
WTException

getEnabledTemplateMasters

public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec)
                                      throws WTException
returns all template masters residing in the passed in container, the locale is the server side locale

Supported API: true

Specified by:
getEnabledTemplateMasters in interface ContainerTemplateService
Parameters:
lookupSpec -
Returns:
QueryResult
Throws:
WTException

getAllTemplateMasters

public QueryResult getAllTemplateMasters(WTContainerRef parentContainer)
                                  throws WTException


Supported API: false

Specified by:
getAllTemplateMasters in interface ContainerTemplateService
Parameters:
parentContainer -
Returns:
QueryResult
Throws:
WTException

getAllTemplateMasters

public QueryResult getAllTemplateMasters(LookupSpec lookupSpec)
                                  throws WTException


Supported API: false

Specified by:
getAllTemplateMasters in interface ContainerTemplateService
Parameters:
lookupSpec -
Returns:
QueryResult
Throws:
WTException

getAllTemplateMasters

public QueryResult getAllTemplateMasters(WTContainerRef parentContainer,
                                         Class contClass)
                                  throws WTException


Supported API: false

Specified by:
getAllTemplateMasters in interface ContainerTemplateService
Parameters:
parentContainer -
contClass -
Returns:
QueryResult
Throws:
WTException

getAllTemplateMasters

public QueryResult getAllTemplateMasters(LookupSpec lookupSpec,
                                         Class contClass)
                                  throws WTException


Supported API: false

Specified by:
getAllTemplateMasters in interface ContainerTemplateService
Parameters:
lookupSpec -
contClass -
Returns:
QueryResult
Throws:
WTException

getAllTemplates

public QueryResult getAllTemplates(WTContainerRef parentContainer)
                            throws WTException


Supported API: false

Specified by:
getAllTemplates in interface ContainerTemplateService
Parameters:
parentContainer -
Returns:
QueryResult
Throws:
WTException

getAllTemplates

public QueryResult getAllTemplates(LookupSpec lookupSpec)
                            throws WTException


Supported API: false

Specified by:
getAllTemplates in interface ContainerTemplateService
Parameters:
lookupSpec -
Returns:
QueryResult
Throws:
WTException

getAllTemplates

public QueryResult getAllTemplates(WTContainerRef parentContainer,
                                   Class contClass)
                            throws WTException


Supported API: false

Specified by:
getAllTemplates in interface ContainerTemplateService
Parameters:
parentContainer -
contClass -
Returns:
QueryResult
Throws:
WTException

getAllTemplates

public QueryResult getAllTemplates(LookupSpec lookupSpec,
                                   Class contClass)
                            throws WTException


Supported API: false

Specified by:
getAllTemplates in interface ContainerTemplateService
Parameters:
lookupSpec -
contClass -
Returns:
QueryResult
Throws:
WTException

getContainers

public QueryResult getContainers(WTContainerTemplateMasterReference definition)
                          throws WTException
This signature gets all containers created from all iterations of the template.

Supported API: false

Specified by:
getContainers in interface ContainerTemplateService
Parameters:
definition -
Returns:
QueryResult
Throws:
WTException

getContainers

public QueryResult getContainers(WTContainerTemplateRef definition)
                          throws WTException
This method returns all containers created from all iterations of the master object. If you want only the containers created from a specific iteration of a template use the getContainersCreatedFrom method.

Supported API: false

Specified by:
getContainers in interface ContainerTemplateService
Parameters:
definition -
Returns:
QueryResult
Throws:
WTException

getLatestIteration

public WTContainerTemplateRef getLatestIteration(ContainerTemplateDefinition definition)
                                          throws WTException


Supported API: false

Specified by:
getLatestIteration in interface ContainerTemplateService
Parameters:
definition -
Returns:
WTContainerTemplateRef
Throws:
WTException

getLatestIteration

public WTContainerTemplateRef getLatestIteration(WTContainerTemplateRef definitionReference)
                                          throws WTException


Supported API: false

Specified by:
getLatestIteration in interface ContainerTemplateService
Parameters:
definitionReference -
Returns:
WTContainerTemplateRef
Throws:
WTException

addBusinessXML

public WTContainerTemplate addBusinessXML(WTContainerTemplateRef templateRef,
                                          UploadBusinessXMLRequest businessRequest)
                                   throws WTException
Uploads the business XML. If this object already has business XML an exception is thrown.

Supported API: false

Specified by:
addBusinessXML in interface ContainerTemplateService
Parameters:
templateRef -
businessRequest -
Returns:
WTContainerTemplate
Throws:
WTException

downloadBusinessXML

public URL downloadBusinessXML(WTContainerTemplateRef templateRef)
                        throws WTException
Prepares a jar file containing the standard70.dtd, the business XML, and any content files and fragments that are part of the WTContainerTemplate

Supported API: false

Specified by:
downloadBusinessXML in interface ContainerTemplateService
Parameters:
templateRef -
Returns:
URL
Throws:
WTException

createContainerTemplate

public WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer,
                                                   WTContainerTemplate template)
                                            throws WTException
Creates the container template. If the container is null, the template is created globally, otherwise the template is created in the scope of the container. All templates reside in the containers System Folder, unless there is no system folder, in which case it is created in the root folder of the container.

Supported API: false

Specified by:
createContainerTemplate in interface ContainerTemplateService
Parameters:
parentContainer -
template -
Returns:
WTContainerTemplate
Throws:
WTException

createContainerTemplate

public WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer,
                                                   WTContainerTemplate template,
                                                   UploadTemplateRequest businessXML)
                                            throws WTException
Creates the container template. If the container is null, the template is created globally, otherwise the template is created in the scope of the container. All templates reside in the containers System Folder, unless there is no system folder, in which case it is created in the root folder of the container.

Supported API: false

Specified by:
createContainerTemplate in interface ContainerTemplateService
Parameters:
parentContainer -
template -
businessXML -
Returns:
WTContainerTemplate
Throws:
WTException

copyTemplate

public WTContainerTemplate copyTemplate(WTContainerRef parentContainer,
                                        WTContainerTemplate template,
                                        GeneratedTemplateAttributes attrs)
                                 throws WTException
Saves the non-identity information of a template along with any associated content files to a new template.

Supported API: false

Specified by:
copyTemplate in interface ContainerTemplateService
Parameters:
parentContainer -
template -
attrs - Identity information for the new template. See wt.inf.template.GeneratedTemplateAttributes
Returns:
WTContainerTemplate
Throws:
WTException

getBusinessXML

public XMLLob getBusinessXML(WTContainerTemplateRef templateRef)
                      throws WTException
Retrieves the business XML for a subclass of DefaultWTContainerTemplate. If the passed in reference is not a sub-class of DefaultWTContainerTemplate, the method returns null.

Supported API: false

Specified by:
getBusinessXML in interface ContainerTemplateService
Parameters:
templateRef -
Returns:
XMLLob
Throws:
WTException

deleteContainerTemplate

public void deleteContainerTemplate(WTContainerTemplateRef template)
                             throws WTException
This method should be used to delete a container template. An Exception will be thrown if there are any containers that exist that have been created from this template. Templates should never be deleted via PersistenceHelper.manager.delete

Supported API: false

Specified by:
deleteContainerTemplate in interface ContainerTemplateService
Parameters:
template - A reference to the template to be deleted. An Exception is thrown if there are any containers that have been made with this template
Throws:
WTException

getContainerTemplateRef

public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent,
                                                      String name,
                                                      Class containerClass)
                                               throws WTException
Gets a template given a name and container class object. If a template matching the passed in criteria is not found in the target container, a lookup is performed.

Supported API: true

Specified by:
getContainerTemplateRef in interface ContainerTemplateService
Parameters:
parent -
name -
containerClass - An Exception will be thrown if the class is not a subclass of WTContainer
Returns:
WTContainerTemplateRef
Throws:
WTException

getContainerTemplateRef

public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent,
                                                      String name,
                                                      Class containerClass,
                                                      boolean lookup,
                                                      String locale)
                                               throws WTException
Gets a template given a name and a fully qualified container class name. This also for restricting the scope of the search to the passed in container, and to a specific locale.

Supported API: true

Specified by:
getContainerTemplateRef in interface ContainerTemplateService
Parameters:
parent -
name -
containerClass -
lookup - If set to false the search is restricted to the target container, if set to true, a lookup is performed.
locale - This may be null or an empty string.
Returns:
WTContainerTemplateRef
Throws:
WTException

getContainerTemplateRef

public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent,
                                                      String name,
                                                      String containerClassName)
                                               throws WTException
Gets a template given a name and a fully qualified container class name. If the template is not found, a lookup is performed.

Supported API: true

Specified by:
getContainerTemplateRef in interface ContainerTemplateService
Parameters:
parent -
name -
containerClassName - An Exception will be thrown if this is not the class name of a subclass of WTContainer
Returns:
WTContainerTemplateRef
Throws:
WTException

getContainerTemplateRef

public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent,
                                                      String name,
                                                      String containerClassName,
                                                      boolean lookupflag,
                                                      String locale)
                                               throws WTException
Gets a template given a name and a fully qualified container class name.

Supported API: true

Specified by:
getContainerTemplateRef in interface ContainerTemplateService
Parameters:
parent -
name -
containerClassName -
lookupflag - If the flag is set to false the search is restricted to the target contaner.
locale -
Returns:
WTContainerTemplateRef
Throws:
WTException

getContainerTemplateRef

public WTContainerTemplateRef getContainerTemplateRef(ContainerTemplateDefinition definition)
                                               throws WTException
Gets the latest iteration of a template given a container definition.

Supported API: true

Specified by:
getContainerTemplateRef in interface ContainerTemplateService
Parameters:
definition - Either a WTContainerTemplate or a WTContainerTemplateMaster object
Returns:
WTContainerTemplateRef
Throws:
WTException

getContainerTemplate

public WTContainerTemplate getContainerTemplate(WTContainerRef parent,
                                                String name,
                                                String containerClassName)
                                         throws WTException
Gets a template given a name and a fully qualified container class name. If a template matching this criteria is not found in the target container a lookup will be performed.

Supported API: true

Specified by:
getContainerTemplate in interface ContainerTemplateService
Parameters:
parent -
name -
containerClassName -
Returns:
WTContainerTemplate
Throws:
WTException

getContainerTemplate

public WTContainerTemplate getContainerTemplate(WTContainerRef parent,
                                                String name,
                                                String containerClassName,
                                                boolean lookupFlag,
                                                String locale)
                                         throws WTException
Gets a template given a name and a contaienr class name. This signature allows for filtering by container and locale. By specifying the lookup flag to false, the search is restricted to the passed in template. If it is set to true a lookup is performed that will return the first match to the passed in criteria.

Supported API: true

Specified by:
getContainerTemplate in interface ContainerTemplateService
Parameters:
parent -
name -
containerClassName -
lookupFlag - If set to true a lookup is performed.
locale - If you are only interested in a specific locale pass in a locale this will filter the query, other wise this value may be null or an empty string
Returns:
WTContainerTemplate
Throws:
WTException

getContainerTemplate

public WTContainerTemplate getContainerTemplate(WTContainerRef parent,
                                                String name,
                                                Class containerClass)
                                         throws WTException
Gets a template given a name and a container class object. A lookup will be performed if the container matching the passed in criteria is not in the target container

Supported API: true

Specified by:
getContainerTemplate in interface ContainerTemplateService
Parameters:
parent -
name -
containerClass -
Returns:
WTContainerTemplate
Throws:
WTException

getContainerTemplate

public WTContainerTemplate getContainerTemplate(ContainerTemplateDefinition definition)
                                         throws WTException
Gets the latest iteration of a template given a container definition.

Supported API: true

Specified by:
getContainerTemplate in interface ContainerTemplateService
Parameters:
definition - Either a WTContainerTemplate or a WTContainerTemplateMaster object
Returns:
WTContainerTemplate
Throws:
WTException

getContainerTemplate

public WTContainerTemplate getContainerTemplate(WTContainerRef parent,
                                                String name,
                                                Class containerClass,
                                                boolean lookupFlag,
                                                String locale)
                                         throws WTException
Gets a template given a name and a container class. This signature allows for filtering by container and locale

Supported API: true

Specified by:
getContainerTemplate in interface ContainerTemplateService
Parameters:
parent -
name -
containerClass -
lookupFlag - If set to true a lookup is performed.
locale - If you are only interested in a specific locale pass in a locale this will filter the query, other wise this value may be null or an empty string
Returns:
WTContainerTemplate
Throws:
WTException

assignContainerToTemplate

public WTContainerRef assignContainerToTemplate(WTContainerRef container,
                                                WTContainerTemplateRef containerTemplate)
                                         throws WTException
If a container has been created with no template, this provides the ability to assign one retroactively. The result of this addition is that the association to the template is made and the business XML residing in the template is loaded into the container.

Supported API: false

Specified by:
assignContainerToTemplate in interface ContainerTemplateService
Parameters:
container -
containerTemplate -
Returns:
WTContainerRef
Throws:
WTException

replaceBusinessXML

public WTContainerTemplate replaceBusinessXML(WTContainerTemplateRef definitionReference,
                                              UploadTemplateRequest request)
                                       throws WTException
Purges the old business XML and any fragments, and replaces it with the passed in BusinessXML

Supported API: false

Specified by:
replaceBusinessXML in interface ContainerTemplateService
Parameters:
definitionReference -
request -
Returns:
WTContainerTemplate
Throws:
WTException

getDefaultContainerValues

public WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate)
                                      throws WTException
Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template. This is usefull for client developers since container defaults can be forced on an instance based and a type based fashion.

Supported API: false

Specified by:
getDefaultContainerValues in interface ContainerTemplateService
Parameters:
containerTemplate -
Returns:
WTContainer
Throws:
WTException

getDefaultContainerValues

public WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate,
                                             WTContainer cont)
                                      throws WTException
Returns an unpersisted WTContainer corresponding to the DefaultContainerValues object corresponding to the passed in template. This is usefull for client developers since container defaults can be forced on an instance based and a type based fashion.

Supported API: false

Specified by:
getDefaultContainerValues in interface ContainerTemplateService
Parameters:
containerTemplate -
cont - An exception is thrown if the passed in container has been persisted.
Returns:
WTContainer
Throws:
WTException

copyContainer

public WTContainerRef copyContainer(WTContainerRef sourceContainer,
                                    ContainerCopyInstanceAttributes clientvalues,
                                    ContainerCopyWorklist workList,
                                    String scriptId)
                             throws WTException
Given a source container, worklist, and a scriptIdentifier this method creates a new WTContainer and returns a reference to it.

Supported API: false

Specified by:
copyContainer in interface ContainerTemplateService
Parameters:
sourceContainer -
clientvalues -
workList -
scriptId -
Returns:
WTContainerRef
Throws:
WTException

copyContainer

public WTContainerRef copyContainer(WTContainerRef sourceContainer,
                                    ContainerCopyInstanceAttributes clientValues,
                                    ContainerCopyWorklist workList)
                             throws WTException
Given a source container, worklist,this method creates a new WTContainer and returns a reference to it. The script that is run corresponds to the Default for the container type.

Supported API: false

Specified by:
copyContainer in interface ContainerTemplateService
Parameters:
sourceContainer -
clientValues -
workList -
Returns:
WTContainerRef
Throws:
WTException

exportContainerAsTemplateToFile

public File exportContainerAsTemplateToFile(WTContainerRef sourceContainer,
                                            GeneratedTemplateAttributes tmplAttrs,
                                            TemplateGeneratorWorklist worklist,
                                            String scriptId)
                                     throws WTException
A lower level API that allows solutions to over-ride the default URL generation.

Supported API: false

Specified by:
exportContainerAsTemplateToFile in interface ContainerTemplateService
Parameters:
sourceContainer - The container that the template is to be generated from
tmplAttrs - Client supplied attributes for the template to be created.
worklist -
scriptId -
Returns:
File
Throws:
WTException

exportContainerAsTemplateToFile

public File exportContainerAsTemplateToFile(WTContainerRef sourceContainer,
                                            GeneratedTemplateAttributes tmplAttrs,
                                            TemplateGeneratorWorklist worklist)
                                     throws WTException
A lower level API that allows solutions to over-ride the default URL generation. This signature uses the default scriptId for the passed in container type. If there is no scriptId for the container type, an exception is thrown.

Supported API: false

Specified by:
exportContainerAsTemplateToFile in interface ContainerTemplateService
Parameters:
sourceContainer - The container that the template is to be generated from
tmplAttrs - Client supplied attributes for the template to be created.
worklist -
Returns:
File
Throws:
WTException

importContainerTemplate

public WTContainerTemplateRef importContainerTemplate(ImportTemplateRequest req,
                                                      WTContainerRef contRef,
                                                      GeneratedTemplateAttributes attrs)
                                               throws WTException
Imports a file containing a single default values spec.

Supported API: false

Specified by:
importContainerTemplate in interface ContainerTemplateService
Parameters:
req -
contRef -
attrs - If this is not null or an empty string, the default values profile will be given the passed in name, otherwise the name will be the one specified in the file.
Returns:
WTContainerTemplateRef
Throws:
WTException

saveContainerAsTemplate

public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef sourceContainer,
                                                      GeneratedTemplateAttributes tmplAttrs,
                                                      TemplateGeneratorWorklist worklist)
                                               throws WTException


Supported API: false

Specified by:
saveContainerAsTemplate in interface ContainerTemplateService
Parameters:
sourceContainer - The container that the template is to be generated from
tmplAttrs - Client supplied attributes for the template to be created.
worklist -
Returns:
WTContainerTemplateRef
Throws:
WTException

saveContainerAsTemplate

public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef sourceContainer,
                                                      GeneratedTemplateAttributes tmplAttrs,
                                                      TemplateGeneratorWorklist worklist,
                                                      String scriptId)
                                               throws WTException
Saves a container template to the container that is the parent container of the source container

Supported API: false

Specified by:
saveContainerAsTemplate in interface ContainerTemplateService
Parameters:
sourceContainer - The container that the template is to be generated from
tmplAttrs - Client supplied attributes for the template to be created.
worklist -
scriptId -
Returns:
WTContainerTemplateRef
Throws:
WTException

saveContainerAsTemplate

public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef parentContainer,
                                                      WTContainerRef sourceContainer,
                                                      GeneratedTemplateAttributes tmplAttrs,
                                                      TemplateGeneratorWorklist worklist)
                                               throws WTException
This signature saves the template to the specified parent container

Supported API: false

Specified by:
saveContainerAsTemplate in interface ContainerTemplateService
Parameters:
parentContainer -
sourceContainer - The container that the template is to be generated from
tmplAttrs - Client supplied attributes for the template to be created.
worklist -
Returns:
WTContainerTemplateRef
Throws:
WTException

saveContainerAsTemplate

public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef parentContainer,
                                                      WTContainerRef sourceContainer,
                                                      GeneratedTemplateAttributes tmplAttrs,
                                                      TemplateGeneratorWorklist worklist,
                                                      String scriptId)
                                               throws WTException
Saves a container template to the specified parent container

Supported API: false

Specified by:
saveContainerAsTemplate in interface ContainerTemplateService
Parameters:
parentContainer -
sourceContainer - The container that the template is to be generated from
tmplAttrs - Client supplied attributes for the template to be created.
worklist -
scriptId -
Returns:
WTContainerTemplateRef
Throws:
WTException

assignDefaultValuesSpec

public WTContainerTemplate assignDefaultValuesSpec(WTContainerTemplateRef templateRef,
                                                   String ruleName)
                                            throws WTException
Sets the default values for the template.

Supported API: false

Specified by:
assignDefaultValuesSpec in interface ContainerTemplateService
Parameters:
templateRef -
ruleName -
Returns:
WTContainerTemplate
Throws:
WTException

importDefaultValuesSpec

public void importDefaultValuesSpec(WTContainerRef contRef,
                                    UploadBusinessXMLRequest req,
                                    String ruleName)
                             throws WTException
Imports a file containing a single default values spec.

Supported API: false

Specified by:
importDefaultValuesSpec in interface ContainerTemplateService
Parameters:
contRef -
req -
ruleName - If this is not null or an empty string, the default values profile will be given the passed in name, otherwise the name will be the one specified in the file.
Throws:
WTException

importDefaultValuesSpec

public void importDefaultValuesSpec(WTContainerRef contRef,
                                    UploadBusinessXMLRequest req)
                             throws WTException
Imports a file containing a single default values spec.

Supported API: false

Specified by:
importDefaultValuesSpec in interface ContainerTemplateService
Parameters:
contRef -
req -
Throws:
WTException

getUploadRequest

public UploadTemplateRequest getUploadRequest(File file)
                                       throws WTException
Returns the appropriate UploadRequest based on an analysis of the passed in File object. An exception is thrown if an UploadRequest cannot be procured. (This can be used for create template and replaceBusinessXML)

Supported API: false

Specified by:
getUploadRequest in interface ContainerTemplateService
Parameters:
file -
Returns:
UploadTemplateRequest
Throws:
WTException

getImportRequest

public ImportTemplateRequest getImportRequest(File file)
                                       throws WTException
Returns the appropriate ImportTemplateRequest object for the passed in File. This can be passed to the updateTemplate methods.

Supported API: false

Specified by:
getImportRequest in interface ContainerTemplateService
Parameters:
file -
Returns:
ImportTemplateRequest
Throws:
WTException

getDefaultValuesMappingRule

private IxbDocument getDefaultValuesMappingRule(String name)
                                         throws WTException
Throws:
WTException

addIxbDocumentAsContent

private WTContainerTemplate addIxbDocumentAsContent(IxbDocument doc,
                                                    WTContainerTemplate template)
                                             throws WTException
Throws:
WTException

checkContainerClassName

private void checkContainerClassName(String className)
                              throws WTException
Throws:
WTException

initializeRegistries

private void initializeRegistries()
                           throws WTException
Throws:
WTException

addEventListeners

private void addEventListeners()
                        throws WTException
Throws:
WTException

getContainers

private QueryResult getContainers(WTContainerTemplateMaster master)
                           throws WTException
Throws:
WTException

getEnabledTemplatesForClass

private QueryResult getEnabledTemplatesForClass(WTContainerRef parentContainer,
                                                String className)
                                         throws WTException
Throws:
WTException

getEnabledTemplatesForClassAndLocale

private QueryResult getEnabledTemplatesForClassAndLocale(WTContainerRef parentContainer,
                                                         String className,
                                                         Locale locale)
                                                  throws WTException
Throws:
WTException

getEnabledTemplateMastersForClassAndLocale

private QueryResult getEnabledTemplateMastersForClassAndLocale(WTContainerRef parentContainer,
                                                               String className,
                                                               Locale locale)
                                                        throws WTException
Throws:
WTException

getTemplatesForClassAndLocale

private QueryResult getTemplatesForClassAndLocale(WTContainerRef parentContainer,
                                                  String container_classname,
                                                  Locale locale,
                                                  boolean enabled_only)
                                           throws WTException
Throws:
WTException

getTemplatesForClassAndLocale

private QueryResult getTemplatesForClassAndLocale(LookupSpec ls,
                                                  String container_classname,
                                                  Locale locale,
                                                  boolean enabled_only)
                                           throws WTException
Throws:
WTException

getQueryForTemplates

private QuerySpec getQueryForTemplates(String container_classname,
                                       boolean enabled_only)
                                throws WTException
Throws:
WTException

getTemplateMastersForClassAndLocale

private QueryResult getTemplateMastersForClassAndLocale(LookupSpec ls,
                                                        String className,
                                                        Locale locale,
                                                        boolean enabledOnly)
                                                 throws WTException
Throws:
WTException

getTemplateMastersForClassAndLocale

private QueryResult getTemplateMastersForClassAndLocale(WTContainerRef parentContainer,
                                                        String className,
                                                        Locale locale,
                                                        boolean enabledOnly)
                                                 throws WTException
Throws:
WTException

getQueryForMasters

private QuerySpec getQueryForMasters(String container_classname,
                                     boolean enabled_only)
                              throws WTException
Throws:
WTException

processLookupSpec

private void processLookupSpec(LookupSpec ls,
                               QuerySpec qs,
                               ClassAttribute name_attr,
                               Locale locale)
                        throws WTException
Throws:
WTException

getLobFromBusinessXMLRequest

private XMLLob getLobFromBusinessXMLRequest(UploadTemplateRequest businessRequest)
                                     throws WTException
Throws:
WTException

initializeAttributes

private DefaultWTContainerTemplate initializeAttributes(DefaultWTContainerTemplate tmpl,
                                                        WTContainerRef parentContainer)
                                                 throws WTException,
                                                        WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

cleanupDownloadJar

private void cleanupDownloadJar(DefaultWTContainerTemplate tmpl)
                         throws WTException
Throws:
WTException

replaceBusinessXML

private WTContainerTemplate replaceBusinessXML(WTContainerTemplateRef templateRef,
                                               UploadTemplateRequest businessRequest,
                                               boolean clobberOld)
                                        throws WTException
Throws:
WTException

prepareBusinessXML

private DefaultWTContainerTemplate prepareBusinessXML(DefaultWTContainerTemplate tmpl)
                                               throws WTException
Throws:
WTException

createLookupSpec

private LookupSpec createLookupSpec(WTContainerRef start,
                                    boolean firstMatch,
                                    boolean filter)
                             throws WTException
Throws:
WTException

getParentContainerRef

private WTContainerRef getParentContainerRef(WTContainerRef sourceRef)
                                      throws WTException
Throws:
WTException

getTemplateFromRef

private DefaultWTContainerTemplate getTemplateFromRef(WTContainerTemplateRef tmplRef)
                                               throws WTException
Throws:
WTException

getTemplateFromRef

private DefaultWTContainerTemplate getTemplateFromRef(WTContainerTemplateRef tmplRef,
                                                      boolean validate)
                                               throws WTException
Throws:
WTException

checkContainerRef

private void checkContainerRef(WTContainerRef contRef)
                        throws WTException
Throws:
WTException

getMasterInContainer

private WTContainerTemplateMaster getMasterInContainer(WTContainerRef contRef,
                                                       String name,
                                                       String className)
                                                throws WTException
Throws:
WTException

getMasterInContainer

private WTContainerTemplateMaster getMasterInContainer(WTContainerRef contRef,
                                                       String name,
                                                       String className,
                                                       String locale)
                                                throws WTException
Throws:
WTException

lookupMasterFromContainer

private WTContainerTemplateMaster lookupMasterFromContainer(WTContainerRef parent,
                                                            String name,
                                                            String containerClassName)
                                                     throws WTException
Throws:
WTException

lookupMasterFromContainer

private WTContainerTemplateMaster lookupMasterFromContainer(WTContainerRef parent,
                                                            String name,
                                                            String containerClassName,
                                                            String locale)
                                                     throws WTException
Throws:
WTException

getMasterQuerySpec

private QuerySpec getMasterQuerySpec(String name,
                                     String containerClassName)
                              throws WTException
Throws:
WTException

getMasterQuerySpec

private QuerySpec getMasterQuerySpec(String name,
                                     String containerClassName,
                                     String locale)
                              throws WTException
Throws:
WTException

computeTemplateRef

private WTContainerTemplateRef computeTemplateRef(WTContainerTemplate tmpl)
                                           throws WTException
Throws:
WTException

computeContainerClassName

private String computeContainerClassName(Class contClass)
                                  throws WTException
Throws:
WTException

validateBusinessXML

private void validateBusinessXML(XMLLob lob)
                          throws WTException
Throws:
WTException

validateLoadFromFileElements

private void validateLoadFromFileElements(IxbDocument doc)
                                   throws WTException
Throws:
WTException

getImportedTemplateRef

private WTContainerTemplateRef getImportedTemplateRef(WTContainerRef contRef,
                                                      ImportTemplateRequest req,
                                                      GeneratedTemplateAttributes attrs)
                                               throws WTException
Throws:
WTException

validateLoadFromFileElement

private void validateLoadFromFileElement(IxbElement elem)
                                  throws WTException
Throws:
WTException

createTemplate

private DefaultWTContainerTemplate createTemplate(WTContainerTemplate template,
                                                  WTContainerRef parentContainer,
                                                  UploadTemplateRequest businessXML)
                                           throws WTException
Throws:
WTException