Skip navigation links


com.fatwire.services
Interface TemplateService

All Superinterfaces:
Service

public interface TemplateService
extends Service

The Template Service is the interface providing template related services.


Method Summary
 TemplatesBean fetchTemplates(java.lang.Long site, TypeBean type, java.util.List<TemplateBean.Type> templateType, java.lang.String nameRegex, java.lang.Integer start, java.lang.Integer pageSize)
          Fetches the templates in the specified editorial site as per specified filter criteria and returns paged results.
 TemplatesBean fetchTemplates(java.lang.Long site, TypeBean type, java.util.List<TemplateBean.Type> templateType, java.lang.String nameRegex, java.lang.Integer start, java.lang.Integer pageSize, java.lang.String deviceGroupSuffix)
          Fetches the templates in the specified editorial site as per specified filter criteria and returns paged results.
 java.util.List<ArgumentBean> getArguments(AssetId assetId)
          Returns a list containing the arguments associated with a template for the specified asset type.
 java.util.List<ArgumentBean> getTemplateArguments(java.lang.String templateName, java.lang.String assetType)
          Returns a list containing the arguments associated with a template for the specified asset type.
 java.util.List<TemplateBean> getTemplates(java.lang.Long site, TypeBean type, java.util.List<TemplateBean.Type> templateType, java.lang.String nameRegex)
          Returns the templates in the specified editorial site as per specified filter criteria.

 

Methods inherited from interface com.fatwire.services.Service
getManager, getResponse, setManager

 

Method Detail

getTemplates

java.util.List<TemplateBean> getTemplates(java.lang.Long site,
                                          TypeBean type,
                                          java.util.List<TemplateBean.Type> templateType,
                                          java.lang.String nameRegex)
                                          throws ServiceException
Returns the templates in the specified editorial site as per specified filter criteria.
Parameters:
site - the editorial site for which the templates are being retrieved.
type - filter for a specific asset type and sub-type, or null for Typeless.
templateType - filter for a specific template type.
nameRegex - comma-separated list of regular expression to match the template name against, null for no name restriction.
Returns:
a list containing all templates matching the filter criteria.
Throws:
ServiceException - wraps any exception underlying the service call.

fetchTemplates

TemplatesBean fetchTemplates(java.lang.Long site,
                             TypeBean type,
                             java.util.List<TemplateBean.Type> templateType,
                             java.lang.String nameRegex,
                             java.lang.Integer start,
                             java.lang.Integer pageSize)
                             throws ServiceException
Fetches the templates in the specified editorial site as per specified filter criteria and returns paged results.
Parameters:
site - the editorial site for which the templates are being fetched.
type - filter for a specific asset type and sub-type, or null for Typeless.
templateType - filter for a specific template type.
nameRegex - comma-separated list of regular expression to match the template name against, null for no name restriction.
start - the start index for the paged result.
pageSize - the page size for the result.
Returns:
a list containing all templates matching the filter criteria.
Throws:
ServiceException - wraps any exception underlying the service call.

fetchTemplates

TemplatesBean fetchTemplates(java.lang.Long site,
                             TypeBean type,
                             java.util.List<TemplateBean.Type> templateType,
                             java.lang.String nameRegex,
                             java.lang.Integer start,
                             java.lang.Integer pageSize,
                             java.lang.String deviceGroupSuffix)
                             throws ServiceException
Fetches the templates in the specified editorial site as per specified filter criteria and returns paged results.
Parameters:
site - the editorial site for which the templates are being fetched.
type - filter for a specific asset type and sub-type, or null for Typeless.
templateType - filter for a specific template type.
nameRegex - comma-separated list of regular expression to match the template name against, null for no name restriction.
start - the start index for the paged result.
pageSize - the page size for the result.
deviceGroupSuffix - The suffix of the selected device's device group.
Returns:
a list containing all templates matching the filter criteria.
Throws:
ServiceException - wraps any exception underlying the service call.

getTemplateArguments

java.util.List<ArgumentBean> getTemplateArguments(java.lang.String templateName,
                                                  java.lang.String assetType)
                                                  throws ServiceException
Returns a list containing the arguments associated with a template for the specified asset type.
Parameters:
templateName - name of the temaplate for which the arguments need to be retrieved.
type - the asset type for which the templates are to be retrieved.
Returns:
a list containing the arguments associated with this template and the asset type.
Throws:
ServiceException - wraps any exception underlying the service call.

getArguments

java.util.List<ArgumentBean> getArguments(AssetId assetId)
                                          throws ServiceException
Returns a list containing the arguments associated with a template for the specified asset type.
Parameters:
AssetId - AssetId of template,cselement,siteentry for which the arguments need to be retrieved.
Returns:
a list containing the arguments associated with this template and the asset type.
Throws:
ServiceException - wraps any exception underlying the service call.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.