public interface ManageViewService
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION_TYPE
The type of extension related to this service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTab(javax.jcr.Node view,
String name,
String buttons)
Adds a new tab to the given view.
|
String |
addTemplate(String name,
String content,
String homePath)
Adds a new template to a place with the given path.
|
String |
addTemplate(String name,
String content,
String homePath,
SessionProvider provider)
Adds a new template to a place with the given path.
|
void |
addView(String name,
String permissions,
boolean hideExplorerPanel,
String template,
List<?> tabs)
Adds a new view to the system by giving the following params.
|
void |
addView(String name,
String permissions,
String template,
List<?> tabs)
Adds a new view to the system by giving the following params.
|
List<javax.jcr.Node> |
getAllTemplates(String homeAlias,
SessionProvider provider)
Gets all templates.
|
List<org.exoplatform.services.cms.views.ViewConfig> |
getAllViews()
Gets all views.
|
List<?> |
getButtons()
Gets all strings of buttons.
|
Set<String> |
getConfiguredTemplates()
Gets all configured templates.
|
Set<String> |
getConfiguredViews()
Gets all configured views.
|
javax.jcr.Node |
getTemplate(String path,
SessionProvider provider)
Gets a template by a given path.
|
javax.jcr.Node |
getTemplateHome(String homeAlias,
SessionProvider provider)
Gets the template home that contains all templates.
|
javax.jcr.Node |
getViewByName(String viewName,
SessionProvider provider)
Gets a view by its name.
|
boolean |
hasView(String name)
Checks if a given view exists.
|
void |
init()
Initializes all templates that are set in the configuration file.
|
void |
removeTemplate(String templatePath)
Removes a template by a given path.
|
void |
removeTemplate(String templatePath,
SessionProvider provider)
Removes a template by a given path.
|
void |
removeView(String viewName)
Removes a view from the views list in the system.
|
String |
updateTemplate(String name,
String content,
String homePath)
Updates a template at the given path.
|
String |
updateTemplate(String name,
String content,
String homePath,
SessionProvider provider)
Updates a template at the given path.
|
static final String EXTENSION_TYPE
void addView(String name, String permissions, String template, List<?> tabs) throws Exception
name - Name of the view.permissions - Who can access the view.template - Name of the templated used by the added view.tabs - Tabs of the added view.Exception - The exceptionvoid addView(String name, String permissions, boolean hideExplorerPanel, String template, List<?> tabs) throws Exception
name - Name of the view.permissions - Who can access the view.hideExplorerPanel - If "true", the explorer panel is hidden. If "false", the explorer panel is shown.template - Name of the templated used by the added view.tabs - Tabs of the added view.Exception - The exceptionjavax.jcr.Node getViewByName(String viewName, SessionProvider provider) throws Exception
viewName - Name of the view.provider - The session provider.Exception - The exceptionList<?> getButtons() throws Exception
Exception - The exceptionvoid removeView(String viewName) throws Exception
viewName - Name of the removed view.Exception - The exceptionList<org.exoplatform.services.cms.views.ViewConfig> getAllViews() throws Exception
Exception - The exceptionboolean hasView(String name) throws Exception
name - Name of the given view.Exception - The exceptionjavax.jcr.Node getTemplateHome(String homeAlias, SessionProvider provider) throws Exception
homeAlias - Alias of the template home.provider - The session provider.Exception - The exceptionList<javax.jcr.Node> getAllTemplates(String homeAlias, SessionProvider provider) throws Exception
homeAlias - Alias of the template home.provider - The session provider.Exception - The exceptionjavax.jcr.Node getTemplate(String path, SessionProvider provider) throws Exception
path - The given path.provider - The session provider.Exception - The exceptionString addTemplate(String name, String content, String homePath) throws Exception
name - Name of the new template.content - Content of the template.homePath - The given path.Exception - The exceptionString addTemplate(String name, String content, String homePath, SessionProvider provider) throws Exception
name - Name of the new template.content - Content of the template.homePath - The given path.provider - The session provider.Exception - The exceptionString updateTemplate(String name, String content, String homePath) throws Exception
name - Name of the updated template.content - Content of the template.homePath - The given path.Exception - The exceptionString updateTemplate(String name, String content, String homePath, SessionProvider provider) throws Exception
name - Name of the updated template.content - Content of the template.homePath - The given path.provider - The session provider.Exception - The exceptionvoid removeTemplate(String templatePath) throws Exception
templatePath - The template path.Exception - The exceptionvoid removeTemplate(String templatePath, SessionProvider provider) throws Exception
templatePath - The template path.provider - The session provider.Exception - The exceptionvoid addTab(javax.jcr.Node view,
String name,
String buttons)
throws Exception
view - The given view.name - Name of the added tab.buttons - Buttons of the added tab.Exception - The exceptionvoid init()
throws Exception
Exception - The exceptionSet<String> getConfiguredTemplates()
Copyright © 2003-2018 eXo Platform SAS. All Rights Reserved.