Package wt.inf.template
Class StandardContainerTemplateService
java.lang.Object
wt.services.StandardManager
wt.inf.template.StandardContainerTemplateService
- All Implemented Interfaces:
Serializable,wt.fc._NetFactor,NetFactor,ContainerTemplateService,wt.inf.template.ContainerTemplateServiceSvr,wt.services.Manager
public class StandardContainerTemplateService
extends StandardManager
implements wt.inf.template.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:
-
Method Summary
Modifier and TypeMethodDescriptiongetContainerTemplate(WTContainerRef parent, String name, Class containerClass) Gets a template given a name and a container class object.getContainerTemplate(WTContainerRef parent, String name, Class containerClass, boolean lookupFlag, String locale) Gets a template given a name and a container class.getContainerTemplate(WTContainerRef parent, String name, String containerClassName) Gets a template given a name and a fully qualified container class name.getContainerTemplate(WTContainerRef parent, String name, String containerClassName, boolean lookupFlag, String locale) Gets a template given a name and a contaienr class name.getContainerTemplate(ContainerTemplateDefinition definition) Gets the latest iteration of a template given a container definition.getContainerTemplateRef(WTContainerRef parent, String name, Class containerClass) Gets a template given a name and container class object.getContainerTemplateRef(WTContainerRef parent, String name, Class containerClass, boolean lookup, String locale) Gets a template given a name and a fully qualified container class name.getContainerTemplateRef(WTContainerRef parent, String name, String containerClassName) Gets a template given a name and a fully qualified container class name.getContainerTemplateRef(WTContainerRef parent, String name, String containerClassName, boolean lookupflag, String locale) Gets a template given a name and a fully qualified container class name.getContainerTemplateRef(ContainerTemplateDefinition definition) Gets the latest iteration of a template given a container definition.getEnabledTemplateMasters(LookupSpec lookupSpec) returns all template masters residing in the passed in container, the locale is the server side locale
Supported API: truegetEnabledTemplateMasters(LookupSpec lookupSpec, Class containerClass) returns all enabled template masters that reside in the passed in LookupSpec
Supported API: truegetEnabledTemplateMasters(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.getEnabledTemplateMasters(WTContainerRef parentContainer) returns all template masters residing in the passed in container, the locale is the server side locale
Supported API: truegetEnabledTemplateMasters(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.Methods inherited from class wt.services.StandardManager
getManagerService, getManagerStatus, getName, getStartupType, initialize, performShutdownProcess, registerEvents
-
Method Details
-
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:
getEnabledTemplateMastersin interfaceContainerTemplateService- 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:
getEnabledTemplateMastersin interfaceContainerTemplateService- 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:
getEnabledTemplateMastersin interfaceContainerTemplateService- Parameters:
lookupSpec-containerClass-clientLocale-- Returns:
- QueryResult
- Throws:
WTException
-
getEnabledTemplateMasters
returns all template masters residing in the passed in container, the locale is the server side locale
Supported API: true- Specified by:
getEnabledTemplateMastersin interfaceContainerTemplateService- Parameters:
parentContainer-- Returns:
- QueryResult
- Throws:
WTException
-
getEnabledTemplateMasters
returns all template masters residing in the passed in container, the locale is the server side locale
Supported API: true- Specified by:
getEnabledTemplateMastersin interfaceContainerTemplateService- Parameters:
lookupSpec-- Returns:
- QueryResult
- 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:
getContainerTemplateRefin interfaceContainerTemplateService- 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:
getContainerTemplateRefin interfaceContainerTemplateService- 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:
getContainerTemplateRefin interfaceContainerTemplateService- 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:
getContainerTemplateRefin interfaceContainerTemplateService- 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:
getContainerTemplateRefin interfaceContainerTemplateService- 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:
getContainerTemplatein interfaceContainerTemplateService- 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:
getContainerTemplatein interfaceContainerTemplateService- 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:
getContainerTemplatein interfaceContainerTemplateService- 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:
getContainerTemplatein interfaceContainerTemplateService- 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:
getContainerTemplatein interfaceContainerTemplateService- 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
-