|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.inf.template.StandardContainerTemplateService
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public final TemplateServicesFactory templateServicesFactory
private static final int[] FROM_INDICES
private static Map legalClassNames
private static Object mapLock
private static final String BUSS_JAR_CHECKIN_COMMENT
private static final Object[] DEF_PARAMS
private static final int[] DEF_INDEXES
private static final String CONTAINER_COPY_KEY
Constructor Detail |
public StandardContainerTemplateService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public final TemplateServicesFactory getTemplateServicesFactory()
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static StandardContainerTemplateService newStandardContainerTemplateService() throws WTException
WTException
public InputStream getTemplateContentInputStream(WTContainerTemplateRef template, String contentPath) throws WTException
getTemplateContentInputStream
in interface ContainerTemplateServiceSvr
template
- contentPath
-
WTException
public WTContainerRef importBusinessXML(WTContainerRef container, XMLLob businessData) throws WTException
importBusinessXML
in interface ContainerTemplateServiceSvr
container
- businessData
-
WTException
public QueryResult getEnabledTemplates(WTContainerRef parentContainer, Class containerClass) throws WTException
getEnabledTemplates
in interface ContainerTemplateService
parentContainer
- containerClass
-
WTException
public QueryResult getEnabledTemplates(LookupSpec lookupSpec, Class containerClass) throws WTException
getEnabledTemplates
in interface ContainerTemplateService
lookupSpec
- containerClass
-
WTException
public QueryResult getEnabledTemplates(WTContainerRef parentContainer) throws WTException
getEnabledTemplates
in interface ContainerTemplateService
parentContainer
-
WTException
public QueryResult getEnabledTemplates(LookupSpec lookupSpec) throws WTException
getEnabledTemplates
in interface ContainerTemplateService
lookupSpec
-
WTException
public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer, Class containerClass) throws WTException
getEnabledTemplateMasters
in interface ContainerTemplateService
parentContainer
- containerClass
-
WTException
public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec, Class containerClass) throws WTException
getEnabledTemplateMasters
in interface ContainerTemplateService
lookupSpec
- containerClass
-
WTException
public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer, Class containerClass, Locale clientLocale) throws WTException
getEnabledTemplateMasters
in interface ContainerTemplateService
parentContainer
- containerClass
- clientLocale
-
WTException
public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec, Class containerClass, Locale clientLocale) throws WTException
getEnabledTemplateMasters
in interface ContainerTemplateService
lookupSpec
- containerClass
- clientLocale
-
WTException
public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer) throws WTException
getEnabledTemplateMasters
in interface ContainerTemplateService
parentContainer
-
WTException
public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec) throws WTException
getEnabledTemplateMasters
in interface ContainerTemplateService
lookupSpec
-
WTException
public QueryResult getAllTemplateMasters(WTContainerRef parentContainer) throws WTException
getAllTemplateMasters
in interface ContainerTemplateService
parentContainer
-
WTException
public QueryResult getAllTemplateMasters(LookupSpec lookupSpec) throws WTException
getAllTemplateMasters
in interface ContainerTemplateService
lookupSpec
-
WTException
public QueryResult getAllTemplateMasters(WTContainerRef parentContainer, Class contClass) throws WTException
getAllTemplateMasters
in interface ContainerTemplateService
parentContainer
- contClass
-
WTException
public QueryResult getAllTemplateMasters(LookupSpec lookupSpec, Class contClass) throws WTException
getAllTemplateMasters
in interface ContainerTemplateService
lookupSpec
- contClass
-
WTException
public QueryResult getAllTemplates(WTContainerRef parentContainer) throws WTException
getAllTemplates
in interface ContainerTemplateService
parentContainer
-
WTException
public QueryResult getAllTemplates(LookupSpec lookupSpec) throws WTException
getAllTemplates
in interface ContainerTemplateService
lookupSpec
-
WTException
public QueryResult getAllTemplates(WTContainerRef parentContainer, Class contClass) throws WTException
getAllTemplates
in interface ContainerTemplateService
parentContainer
- contClass
-
WTException
public QueryResult getAllTemplates(LookupSpec lookupSpec, Class contClass) throws WTException
getAllTemplates
in interface ContainerTemplateService
lookupSpec
- contClass
-
WTException
public QueryResult getContainers(WTContainerTemplateMasterReference definition) throws WTException
getContainers
in interface ContainerTemplateService
definition
-
WTException
public QueryResult getContainers(WTContainerTemplateRef definition) throws WTException
getContainers
in interface ContainerTemplateService
definition
-
WTException
public WTContainerTemplateRef getLatestIteration(ContainerTemplateDefinition definition) throws WTException
getLatestIteration
in interface ContainerTemplateService
definition
-
WTException
public WTContainerTemplateRef getLatestIteration(WTContainerTemplateRef definitionReference) throws WTException
getLatestIteration
in interface ContainerTemplateService
definitionReference
-
WTException
public WTContainerTemplate addBusinessXML(WTContainerTemplateRef templateRef, UploadBusinessXMLRequest businessRequest) throws WTException
addBusinessXML
in interface ContainerTemplateService
templateRef
- businessRequest
-
WTException
public URL downloadBusinessXML(WTContainerTemplateRef templateRef) throws WTException
downloadBusinessXML
in interface ContainerTemplateService
templateRef
-
WTException
public WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer, WTContainerTemplate template) throws WTException
createContainerTemplate
in interface ContainerTemplateService
parentContainer
- template
-
WTException
public WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer, WTContainerTemplate template, UploadTemplateRequest businessXML) throws WTException
createContainerTemplate
in interface ContainerTemplateService
parentContainer
- template
- businessXML
-
WTException
public WTContainerTemplate copyTemplate(WTContainerRef parentContainer, WTContainerTemplate template, GeneratedTemplateAttributes attrs) throws WTException
copyTemplate
in interface ContainerTemplateService
parentContainer
- template
- attrs
- Identity information for the new template.
See wt.inf.template.GeneratedTemplateAttributes
WTException
public XMLLob getBusinessXML(WTContainerTemplateRef templateRef) throws WTException
getBusinessXML
in interface ContainerTemplateService
templateRef
-
WTException
public void deleteContainerTemplate(WTContainerTemplateRef template) throws WTException
deleteContainerTemplate
in interface ContainerTemplateService
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
WTException
public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, Class containerClass) throws WTException
getContainerTemplateRef
in interface ContainerTemplateService
parent
- name
- containerClass
- An Exception will be thrown if the class is not a subclass of WTContainer
WTException
public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, Class containerClass, boolean lookup, String locale) throws WTException
getContainerTemplateRef
in interface ContainerTemplateService
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.
WTException
public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, String containerClassName) throws WTException
getContainerTemplateRef
in interface ContainerTemplateService
parent
- name
- containerClassName
- An Exception will be thrown if this is not the class name of a subclass of WTContainer
WTException
public WTContainerTemplateRef getContainerTemplateRef(WTContainerRef parent, String name, String containerClassName, boolean lookupflag, String locale) throws WTException
getContainerTemplateRef
in interface ContainerTemplateService
parent
- name
- containerClassName
- lookupflag
- If the flag is set to false the search is restricted to the target contaner.locale
-
WTException
public WTContainerTemplateRef getContainerTemplateRef(ContainerTemplateDefinition definition) throws WTException
getContainerTemplateRef
in interface ContainerTemplateService
definition
- Either a WTContainerTemplate or a WTContainerTemplateMaster object
WTException
public WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, String containerClassName) throws WTException
getContainerTemplate
in interface ContainerTemplateService
parent
- name
- containerClassName
-
WTException
public WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, String containerClassName, boolean lookupFlag, String locale) throws WTException
getContainerTemplate
in interface ContainerTemplateService
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
WTException
public WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, Class containerClass) throws WTException
getContainerTemplate
in interface ContainerTemplateService
parent
- name
- containerClass
-
WTException
public WTContainerTemplate getContainerTemplate(ContainerTemplateDefinition definition) throws WTException
getContainerTemplate
in interface ContainerTemplateService
definition
- Either a WTContainerTemplate or a WTContainerTemplateMaster object
WTException
public WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, Class containerClass, boolean lookupFlag, String locale) throws WTException
getContainerTemplate
in interface ContainerTemplateService
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
WTException
public WTContainerRef assignContainerToTemplate(WTContainerRef container, WTContainerTemplateRef containerTemplate) throws WTException
assignContainerToTemplate
in interface ContainerTemplateService
container
- containerTemplate
-
WTException
public WTContainerTemplate replaceBusinessXML(WTContainerTemplateRef definitionReference, UploadTemplateRequest request) throws WTException
replaceBusinessXML
in interface ContainerTemplateService
definitionReference
- request
-
WTException
public WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate) throws WTException
getDefaultContainerValues
in interface ContainerTemplateService
containerTemplate
-
WTException
public WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate, WTContainer cont) throws WTException
getDefaultContainerValues
in interface ContainerTemplateService
containerTemplate
- cont
- An exception is thrown if the passed in container has been persisted.
WTException
public WTContainerRef copyContainer(WTContainerRef sourceContainer, ContainerCopyInstanceAttributes clientvalues, ContainerCopyWorklist workList, String scriptId) throws WTException
copyContainer
in interface ContainerTemplateService
sourceContainer
- clientvalues
- workList
- scriptId
-
WTException
public WTContainerRef copyContainer(WTContainerRef sourceContainer, ContainerCopyInstanceAttributes clientValues, ContainerCopyWorklist workList) throws WTException
copyContainer
in interface ContainerTemplateService
sourceContainer
- clientValues
- workList
-
WTException
public File exportContainerAsTemplateToFile(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist, String scriptId) throws WTException
exportContainerAsTemplateToFile
in interface ContainerTemplateService
sourceContainer
- The container that the template is to be generated fromtmplAttrs
- Client supplied attributes for the template to be created.worklist
- scriptId
-
WTException
public File exportContainerAsTemplateToFile(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist) throws WTException
exportContainerAsTemplateToFile
in interface ContainerTemplateService
sourceContainer
- The container that the template is to be generated fromtmplAttrs
- Client supplied attributes for the template to be created.worklist
-
WTException
public WTContainerTemplateRef importContainerTemplate(ImportTemplateRequest req, WTContainerRef contRef, GeneratedTemplateAttributes attrs) throws WTException
importContainerTemplate
in interface ContainerTemplateService
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.
WTException
public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist) throws WTException
saveContainerAsTemplate
in interface ContainerTemplateService
sourceContainer
- The container that the template is to be generated fromtmplAttrs
- Client supplied attributes for the template to be created.worklist
-
WTException
public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist, String scriptId) throws WTException
saveContainerAsTemplate
in interface ContainerTemplateService
sourceContainer
- The container that the template is to be generated fromtmplAttrs
- Client supplied attributes for the template to be created.worklist
- scriptId
-
WTException
public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef parentContainer, WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist) throws WTException
saveContainerAsTemplate
in interface ContainerTemplateService
parentContainer
- sourceContainer
- The container that the template is to be generated fromtmplAttrs
- Client supplied attributes for the template to be created.worklist
-
WTException
public WTContainerTemplateRef saveContainerAsTemplate(WTContainerRef parentContainer, WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist, String scriptId) throws WTException
saveContainerAsTemplate
in interface ContainerTemplateService
parentContainer
- sourceContainer
- The container that the template is to be generated fromtmplAttrs
- Client supplied attributes for the template to be created.worklist
- scriptId
-
WTException
public WTContainerTemplate assignDefaultValuesSpec(WTContainerTemplateRef templateRef, String ruleName) throws WTException
assignDefaultValuesSpec
in interface ContainerTemplateService
templateRef
- ruleName
-
WTException
public void importDefaultValuesSpec(WTContainerRef contRef, UploadBusinessXMLRequest req, String ruleName) throws WTException
importDefaultValuesSpec
in interface ContainerTemplateService
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.
WTException
public void importDefaultValuesSpec(WTContainerRef contRef, UploadBusinessXMLRequest req) throws WTException
importDefaultValuesSpec
in interface ContainerTemplateService
contRef
- req
-
WTException
public UploadTemplateRequest getUploadRequest(File file) throws WTException
getUploadRequest
in interface ContainerTemplateService
file
-
WTException
public ImportTemplateRequest getImportRequest(File file) throws WTException
getImportRequest
in interface ContainerTemplateService
file
-
WTException
private IxbDocument getDefaultValuesMappingRule(String name) throws WTException
WTException
private WTContainerTemplate addIxbDocumentAsContent(IxbDocument doc, WTContainerTemplate template) throws WTException
WTException
private void checkContainerClassName(String className) throws WTException
WTException
private void initializeRegistries() throws WTException
WTException
private void addEventListeners() throws WTException
WTException
private QueryResult getContainers(WTContainerTemplateMaster master) throws WTException
WTException
private QueryResult getEnabledTemplatesForClass(WTContainerRef parentContainer, String className) throws WTException
WTException
private QueryResult getEnabledTemplatesForClassAndLocale(WTContainerRef parentContainer, String className, Locale locale) throws WTException
WTException
private QueryResult getEnabledTemplateMastersForClassAndLocale(WTContainerRef parentContainer, String className, Locale locale) throws WTException
WTException
private QueryResult getTemplatesForClassAndLocale(WTContainerRef parentContainer, String container_classname, Locale locale, boolean enabled_only) throws WTException
WTException
private QueryResult getTemplatesForClassAndLocale(LookupSpec ls, String container_classname, Locale locale, boolean enabled_only) throws WTException
WTException
private QuerySpec getQueryForTemplates(String container_classname, boolean enabled_only) throws WTException
WTException
private QueryResult getTemplateMastersForClassAndLocale(LookupSpec ls, String className, Locale locale, boolean enabledOnly) throws WTException
WTException
private QueryResult getTemplateMastersForClassAndLocale(WTContainerRef parentContainer, String className, Locale locale, boolean enabledOnly) throws WTException
WTException
private QuerySpec getQueryForMasters(String container_classname, boolean enabled_only) throws WTException
WTException
private void processLookupSpec(LookupSpec ls, QuerySpec qs, ClassAttribute name_attr, Locale locale) throws WTException
WTException
private XMLLob getLobFromBusinessXMLRequest(UploadTemplateRequest businessRequest) throws WTException
WTException
private DefaultWTContainerTemplate initializeAttributes(DefaultWTContainerTemplate tmpl, WTContainerRef parentContainer) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void cleanupDownloadJar(DefaultWTContainerTemplate tmpl) throws WTException
WTException
private WTContainerTemplate replaceBusinessXML(WTContainerTemplateRef templateRef, UploadTemplateRequest businessRequest, boolean clobberOld) throws WTException
WTException
private DefaultWTContainerTemplate prepareBusinessXML(DefaultWTContainerTemplate tmpl) throws WTException
WTException
private LookupSpec createLookupSpec(WTContainerRef start, boolean firstMatch, boolean filter) throws WTException
WTException
private WTContainerRef getParentContainerRef(WTContainerRef sourceRef) throws WTException
WTException
private DefaultWTContainerTemplate getTemplateFromRef(WTContainerTemplateRef tmplRef) throws WTException
WTException
private DefaultWTContainerTemplate getTemplateFromRef(WTContainerTemplateRef tmplRef, boolean validate) throws WTException
WTException
private void checkContainerRef(WTContainerRef contRef) throws WTException
WTException
private WTContainerTemplateMaster getMasterInContainer(WTContainerRef contRef, String name, String className) throws WTException
WTException
private WTContainerTemplateMaster getMasterInContainer(WTContainerRef contRef, String name, String className, String locale) throws WTException
WTException
private WTContainerTemplateMaster lookupMasterFromContainer(WTContainerRef parent, String name, String containerClassName) throws WTException
WTException
private WTContainerTemplateMaster lookupMasterFromContainer(WTContainerRef parent, String name, String containerClassName, String locale) throws WTException
WTException
private QuerySpec getMasterQuerySpec(String name, String containerClassName) throws WTException
WTException
private QuerySpec getMasterQuerySpec(String name, String containerClassName, String locale) throws WTException
WTException
private WTContainerTemplateRef computeTemplateRef(WTContainerTemplate tmpl) throws WTException
WTException
private String computeContainerClassName(Class contClass) throws WTException
WTException
private void validateBusinessXML(XMLLob lob) throws WTException
WTException
private void validateLoadFromFileElements(IxbDocument doc) throws WTException
WTException
private WTContainerTemplateRef getImportedTemplateRef(WTContainerRef contRef, ImportTemplateRequest req, GeneratedTemplateAttributes attrs) throws WTException
WTException
private void validateLoadFromFileElement(IxbElement elem) throws WTException
WTException
private DefaultWTContainerTemplate createTemplate(WTContainerTemplate template, WTContainerRef parentContainer, UploadTemplateRequest businessXML) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |