@Exported public interface TemplateDao extends DataAccessObject
| Modifier and Type | Method and Description | 
|---|---|
| List<ArgumentBean> | getArguments(AssetId assetId)Returns a list containing the arguments associated with a template for
 the specified asset type. | 
| String | getPageName(String templateName,
           String assetType,
           Long site)Returns the Site Catalog pagename corresponding to a template. | 
| List<ArgumentBean> | getTemplateArguments(String templateName,
                    String assetType)Returns a list containing the arguments associated with a template for
 the specified asset type. | 
| List<TemplateBean> | getTemplates(TypeBean type,
            Long site,
            List<TemplateBean.Type> templateTypes)Returns the templates which can be applied for the the given asset type
 and sub-type. | 
getResponse, getService, setServiceList<TemplateBean> getTemplates(TypeBean type, Long site, List<TemplateBean.Type> templateTypes) throws DataAccessException
type - the asset type and sub-type for which the templates are to be retrieved.site - the site for which the templates are to be retrieved.templateTypes - list of all the template types which need to be included.DataAccessException - wraps any underlying exception caused during data access.List<ArgumentBean> getTemplateArguments(String templateName, String assetType) throws DataAccessException
templateName - the template for which the arguments need to be retrieved.assetType - the asset type for which the templates are to be retrieved.DataAccessException - wraps any underlying exception caused during data access.String getPageName(String templateName, String assetType, Long site) throws DataAccessException
templateName - The template name (i.e. Template asset name) for which the Site Catalog pagename is to be retrieved.assetType - The asset type applicable to the template (code null for a typeless template)site - The site id for which the templates are to be retrieved.DataAccessException - wraps any underlying exception caused during data access.List<ArgumentBean> getArguments(AssetId assetId) throws DataAccessException
assetId - AssetId of template,cselement,siteentry for which the arguments need to be retrieved.DataAccessException - wraps any exception underlying the service call.