public class CustomizeViewPlugin
extends org.exoplatform.services.cms.views.impl.ManageViewPlugin
| Modifier and Type | Field and Description |
|---|---|
protected Set<String> |
configuredTemplate
The configured template.
|
protected Set<String> |
configuredViews
The configured views.
|
protected org.exoplatform.container.configuration.ConfigurationManager |
cservice
The cservice.
|
protected org.exoplatform.services.cms.impl.DMSConfiguration |
dmsConfiguration
The dms configuration.
|
protected org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator |
nodeHierarchyCreator
The node hierarchy creator.
|
protected org.exoplatform.container.xml.InitParams |
params
The params.
|
protected org.exoplatform.services.jcr.RepositoryService |
repositoryService
The repository service.
|
protected org.exoplatform.services.cms.templates.TemplateService |
templateService
The template service.
|
| Constructor and Description |
|---|
CustomizeViewPlugin(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.container.xml.InitParams params,
org.exoplatform.container.configuration.ConfigurationManager cservice,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration,
org.exoplatform.services.cms.templates.TemplateService templateService)
Instantiates a new customize view plugin.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
customizeTab(javax.jcr.Node view,
String tabName,
String buttons)
Customize tab.
|
protected javax.jcr.Node |
customizeView(javax.jcr.Node viewManager,
String viewName,
String permissions,
Boolean hideExplorerPanel,
String template)
Customize view.
|
Set<String> |
getConfiguredTemplates() |
Set<String> |
getConfiguredViews() |
void |
init() |
protected String |
mergeButtons(String buttons,
Set<String> addButtons)
Read all buttons from given node, in buttons property, to given string builder.
|
protected final org.exoplatform.container.xml.InitParams params
protected final org.exoplatform.services.jcr.RepositoryService repositoryService
protected final org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator
protected final org.exoplatform.container.configuration.ConfigurationManager cservice
protected final org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration
protected final org.exoplatform.services.cms.templates.TemplateService templateService
public CustomizeViewPlugin(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.container.xml.InitParams params,
org.exoplatform.container.configuration.ConfigurationManager cservice,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration,
org.exoplatform.services.cms.templates.TemplateService templateService)
throws Exception
repositoryService - the repository serviceparams - the paramscservice - the cservicenodeHierarchyCreator - the node hierarchy creatordmsConfiguration - the dms configurationtemplateService - the template serviceException - the exceptionpublic Set<String> getConfiguredTemplates()
getConfiguredTemplates in class org.exoplatform.services.cms.views.impl.ManageViewPluginpublic Set<String> getConfiguredViews()
getConfiguredViews in class org.exoplatform.services.cms.views.impl.ManageViewPluginpublic void init()
throws Exception
init in class org.exoplatform.services.cms.views.impl.ManageViewPluginExceptionprotected javax.jcr.Node customizeView(javax.jcr.Node viewManager,
String viewName,
String permissions,
Boolean hideExplorerPanel,
String template)
throws Exception
viewManager - the view managerviewName - the view namepermissions - the permissionshideExplorerPanel - the hide explorer paneltemplate - the templateException - the exceptionprotected void customizeTab(javax.jcr.Node view,
String tabName,
String buttons)
throws Exception
view - the viewtabName - the tab namebuttons - the buttonsException - the exceptionprotected String mergeButtons(String buttons, Set<String> addButtons) throws javax.jcr.RepositoryException
buttons - the buttonsaddButtons - the add buttonsjavax.jcr.RepositoryException - the repository exceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.