|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods for manipulating templates.
Supported API: true
Extendable: false
Method Summary | |
WTContainerTemplate |
addBusinessXML(WTContainerTemplateRef templateRef,
UploadBusinessXMLRequest businessRequest)
Uploads the business XML. |
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. |
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. |
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. |
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. |
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. |
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 |
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 |
UploadTemplateRequest |
getUploadRequest(File file)
Returns the appropriate UploadRequest based on an analysis of the passed in File object. |
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. |
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 |
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 |
Method Detail |
public QueryResult getEnabledTemplates(WTContainerRef parentContainer, Class containerClass) throws WTException
parentContainer
- containerClass
-
WTException
public QueryResult getEnabledTemplates(LookupSpec lookupSpec, Class containerClass) throws WTException
lookupSpec
- containerClass
-
WTException
public QueryResult getEnabledTemplates(WTContainerRef parentContainer) throws WTException
parentContainer
-
WTException
public QueryResult getEnabledTemplates(LookupSpec lookupSpec) throws WTException
lookupSpec
-
WTException
public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer, Class containerClass) throws WTException
parentContainer
- containerClass
-
WTException
public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec, Class containerClass) throws WTException
lookupSpec
- containerClass
-
WTException
public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer, Class containerClass, Locale clientLocale) throws WTException
parentContainer
- containerClass
- clientLocale
-
WTException
public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec, Class containerClass, Locale clientLocale) throws WTException
lookupSpec
- containerClass
- clientLocale
-
WTException
public QueryResult getEnabledTemplateMasters(WTContainerRef parentContainer) throws WTException
parentContainer
-
WTException
public QueryResult getEnabledTemplateMasters(LookupSpec lookupSpec) throws WTException
lookupSpec
-
WTException
public QueryResult getAllTemplateMasters(WTContainerRef parentContainer) throws WTException
parentContainer
-
WTException
public QueryResult getAllTemplateMasters(LookupSpec lookupSpec) throws WTException
lookupSpec
-
WTException
public QueryResult getAllTemplateMasters(WTContainerRef parentContainer, Class contClass) throws WTException
parentContainer
- contClass
-
WTException
public QueryResult getAllTemplateMasters(LookupSpec lookupSpec, Class contClass) throws WTException
lookupSpec
- contClass
-
WTException
public QueryResult getAllTemplates(WTContainerRef parentContainer) throws WTException
parentContainer
-
WTException
public QueryResult getAllTemplates(LookupSpec lookupSpec) throws WTException
lookupSpec
-
WTException
public QueryResult getAllTemplates(WTContainerRef parentContainer, Class contClass) throws WTException
parentContainer
- contClass
-
WTException
public QueryResult getAllTemplates(LookupSpec lookupSpec, Class contClass) throws WTException
lookupSpec
- contClass
-
WTException
public QueryResult getContainers(WTContainerTemplateMasterReference definition) throws WTException
definition
-
WTException
public QueryResult getContainers(WTContainerTemplateRef definition) throws WTException
definition
-
WTException
public WTContainerTemplateRef getLatestIteration(ContainerTemplateDefinition definition) throws WTException
definition
-
WTException
public WTContainerTemplateRef getLatestIteration(WTContainerTemplateRef definitionReference) throws WTException
definitionReference
-
WTException
public WTContainerTemplate addBusinessXML(WTContainerTemplateRef templateRef, UploadBusinessXMLRequest businessRequest) throws WTException
templateRef
- businessRequest
-
WTException
public URL downloadBusinessXML(WTContainerTemplateRef templateRef) throws WTException
templateRef
-
WTException
public WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer, WTContainerTemplate template) throws WTException
parentContainer
- template
-
WTException
public WTContainerTemplate createContainerTemplate(WTContainerRef parentContainer, WTContainerTemplate template, UploadTemplateRequest businessXML) throws WTException
parentContainer
- template
- businessXML
-
WTException
public WTContainerTemplate copyTemplate(WTContainerRef parentContainer, WTContainerTemplate template, GeneratedTemplateAttributes attrs) throws WTException
parentContainer
- template
- attrs
- Identity information for the new template.
See wt.inf.template.GeneratedTemplateAttributes
WTException
public XMLLob getBusinessXML(WTContainerTemplateRef templateRef) throws WTException
templateRef
-
WTException
public void deleteContainerTemplate(WTContainerTemplateRef template) throws WTException
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
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
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
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
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
definition
- Either a WTContainerTemplate or a WTContainerTemplateMaster object
WTException
public WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, String containerClassName) throws WTException
parent
- name
- containerClassName
-
WTException
public WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, String containerClassName, boolean lookupFlag, String locale) throws WTException
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
parent
- name
- containerClass
-
WTException
public WTContainerTemplate getContainerTemplate(ContainerTemplateDefinition definition) throws WTException
definition
- Either a WTContainerTemplate or a WTContainerTemplateMaster object
WTException
public WTContainerTemplate getContainerTemplate(WTContainerRef parent, String name, Class containerClass, boolean lookupFlag, String locale) throws WTException
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
container
- containerTemplate
-
WTException
public WTContainerTemplate replaceBusinessXML(WTContainerTemplateRef definitionReference, UploadTemplateRequest request) throws WTException
definitionReference
- request
-
WTException
public WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate) throws WTException
containerTemplate
-
WTException
public WTContainer getDefaultContainerValues(WTContainerTemplateRef containerTemplate, WTContainer cont) throws WTException
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
sourceContainer
- clientvalues
- workList
- scriptId
-
WTException
public WTContainerRef copyContainer(WTContainerRef sourceContainer, ContainerCopyInstanceAttributes clientValues, ContainerCopyWorklist workList) throws WTException
sourceContainer
- clientValues
- workList
-
WTException
public File exportContainerAsTemplateToFile(WTContainerRef sourceContainer, GeneratedTemplateAttributes tmplAttrs, TemplateGeneratorWorklist worklist, String scriptId) throws WTException
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
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
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
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
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
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
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
templateRef
- ruleName
-
WTException
public void importDefaultValuesSpec(WTContainerRef contRef, UploadBusinessXMLRequest req, String ruleName) throws WTException
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
contRef
- req
-
WTException
public UploadTemplateRequest getUploadRequest(File file) throws WTException
file
-
WTException
public ImportTemplateRequest getImportRequest(File file) throws WTException
file
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |