public class ApplicationTemplateManagerServiceImpl extends Object implements ApplicationTemplateManagerService, org.picocontainer.Startable
| Modifier and Type | Field and Description |
|---|---|
static String |
EDITED_CONFIGURED_TEMPLATES |
CLV_LIST_TEMPLATE_CATEGORY, CLV_NAVIGATION_TEMPLATE_CATEGORY, CLV_PAGINATOR_TEMPLATE_CATEGORY, CLV_TEMPLATE_STORAGE_FOLDER| Constructor and Description |
|---|
ApplicationTemplateManagerServiceImpl(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
DMSConfiguration dmsConfiguration)
Instantiates a new application template manager service impl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlugin(PortletTemplatePlugin portletTemplatePlugin)
Adds a plugin.
|
void |
addTemplate(javax.jcr.Node portletTemplateHome,
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,
org.exoplatform.services.jcr.ext.common.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,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Gets a template by its name under a given category.
|
javax.jcr.Node |
getTemplateByPath(String templatePath,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Gets a template by its path under a given category.
|
List<javax.jcr.Node> |
getTemplatesByCategory(String portletName,
String category,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Gets templates under a given category.
|
void |
removeTemplate(String portletName,
String category,
String templateName,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Removes a template from a given portlet.
|
void |
start() |
void |
stop() |
public static final String EDITED_CONFIGURED_TEMPLATES
public ApplicationTemplateManagerServiceImpl(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator hierarchyCreator,
DMSConfiguration dmsConfiguration)
throws Exception
repositoryService - RepositoryServicehierarchyCreator - NodeHierarchyCreatordmsConfiguration - DMSConfigurationException - the exceptionRepositoryService,
NodeHierarchyCreator,
DMSConfigurationpublic void addPlugin(PortletTemplatePlugin portletTemplatePlugin) throws Exception
addPlugin in interface ApplicationTemplateManagerServiceportletTemplatePlugin - The portlet template plugin to be added.Exception - The exceptionpublic void addTemplate(javax.jcr.Node portletTemplateHome,
PortletTemplatePlugin.PortletTemplateConfig config)
throws Exception
addTemplate in interface ApplicationTemplateManagerServiceportletTemplateHome - The portlet template home.config - Configuration of the portlet template.Exception - The exceptionpublic javax.jcr.Node getApplicationTemplateHome(String portletName, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
getApplicationTemplateHome in interface ApplicationTemplateManagerServiceportletName - Name of the portlet.provider - The session provider.Exception - The exceptionpublic List<String> getAllManagedPortletName(String repository) throws Exception
getAllManagedPortletName in interface ApplicationTemplateManagerServicerepository - Name of the repository.Exception - The exceptionpublic javax.jcr.Node getTemplateByName(String portletName, String category, String templateName, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
getTemplateByName in interface ApplicationTemplateManagerServiceportletName - Name of the portet that contains the given category.category - The given category.templateName - Name of the template.sessionProvider - The session provider.Exception - The exceptionpublic List<javax.jcr.Node> getTemplatesByCategory(String portletName, String category, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
getTemplatesByCategory in interface ApplicationTemplateManagerServiceportletName - Name of the portet that contains the given category.category - The given category.sessionProvider - The session provider.Exception - The exceptionpublic javax.jcr.Node getTemplateByPath(String templatePath, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
getTemplateByPath in interface ApplicationTemplateManagerServicetemplatePath - Path of the template.sessionProvider - The session provider.Exception - The exceptionpublic void removeTemplate(String portletName, String category, String templateName, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
removeTemplate in interface ApplicationTemplateManagerServiceportletName - Name of the given portlet.category - Category of the template which needs to be removed.templateName - Name of the removed template.sessionProvider - The session provider.Exception - The exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic Set<String> getConfiguredAppTemplateMap(String portletName)
ApplicationTemplateManagerServicegetConfiguredAppTemplateMap in interface ApplicationTemplateManagerServiceportletName - Name of the given portlet.Copyright © 2003–2019 eXo Platform SAS. All rights reserved.