public interface ApplicationTemplateManagerService
Modifier and Type | Field and Description |
---|---|
static String |
CLV_LIST_TEMPLATE_CATEGORY |
static String |
CLV_NAVIGATION_TEMPLATE_CATEGORY |
static String |
CLV_PAGINATOR_TEMPLATE_CATEGORY |
static String |
CLV_TEMPLATE_STORAGE_FOLDER |
Modifier and Type | Method and Description |
---|---|
void |
addPlugin(org.exoplatform.services.cms.views.PortletTemplatePlugin portletTemplatePlugin)
Adds a plugin.
|
void |
addTemplate(javax.jcr.Node portletTemplateHome,
org.exoplatform.services.cms.views.PortletTemplatePlugin.PortletTemplateConfig config)
Adds a template to the portlet template home.
|
List<String> |
getAllManagedPortletName(String repository)
Gets all portlet names that have dynamic Groovy templates managed by the service.
|
javax.jcr.Node |
getApplicationTemplateHome(String portletName,
SessionProvider provider)
Gets the application template home.
|
Set<String> |
getConfiguredAppTemplateMap(String portletName)
Gets all configured templates of a given portlet.
|
javax.jcr.Node |
getTemplateByName(String portletName,
String category,
String templateName,
SessionProvider sessionProvider)
Gets a template by its name under a given category.
|
javax.jcr.Node |
getTemplateByPath(String templatePath,
SessionProvider sessionProvider)
Gets a template by its path under a given category.
|
List<javax.jcr.Node> |
getTemplatesByCategory(String portletName,
String category,
SessionProvider sessionProvider)
Gets templates under a given category.
|
void |
removeTemplate(String portletName,
String catgory,
String templateName,
SessionProvider sessionProvider)
Removes a template from a given portlet.
|
static final String CLV_PAGINATOR_TEMPLATE_CATEGORY
static final String CLV_NAVIGATION_TEMPLATE_CATEGORY
static final String CLV_LIST_TEMPLATE_CATEGORY
static final String CLV_TEMPLATE_STORAGE_FOLDER
void addPlugin(org.exoplatform.services.cms.views.PortletTemplatePlugin portletTemplatePlugin) throws Exception
portletTemplatePlugin
- The portlet template plugin to be added.Exception
- The exceptionList<String> getAllManagedPortletName(String repository) throws Exception
repository
- Name of the repository.Exception
- The exceptionList<javax.jcr.Node> getTemplatesByCategory(String portletName, String category, SessionProvider sessionProvider) throws Exception
portletName
- Name of the portet that contains the given category.category
- The given category.sessionProvider
- The session provider.Exception
- The exceptionjavax.jcr.Node getTemplateByName(String portletName, String category, String templateName, SessionProvider sessionProvider) throws Exception
portletName
- Name of the portet that contains the given category.category
- The given category.templateName
- Name of the template.sessionProvider
- The session provider.Exception
- The exceptionjavax.jcr.Node getTemplateByPath(String templatePath, SessionProvider sessionProvider) throws Exception
templatePath
- Path of the template.sessionProvider
- The session provider.Exception
- The exceptionvoid addTemplate(javax.jcr.Node portletTemplateHome, org.exoplatform.services.cms.views.PortletTemplatePlugin.PortletTemplateConfig config) throws Exception
portletTemplateHome
- The portlet template home.config
- Configuration of the portlet template.Exception
- The exceptionvoid removeTemplate(String portletName, String catgory, String templateName, SessionProvider sessionProvider) throws Exception
portletName
- Name of the given portlet.catgory
- Category of the template which needs to be removed.templateName
- Name of the removed template.sessionProvider
- The session provider.Exception
- The exceptionjavax.jcr.Node getApplicationTemplateHome(String portletName, SessionProvider provider) throws Exception
portletName
- Name of the portlet.provider
- The session provider.Exception
- The exceptionCopyright © 2003-2017 eXo Platform SAS. All Rights Reserved.