public interface ScriptService
| Modifier and Type | Method and Description |
|---|---|
void |
addScript(String name,
String text,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will add script by giving the following params: name, text, provider
|
void |
addScript(String name,
String description,
String text,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will add script by giving the following params: name, text, description, provider
|
Set<String> |
getAllConfiguredScripts()
gets all configured scripts
|
String |
getBaseScriptPath()
This method will get base path of script
|
List<javax.jcr.Node> |
getECMActionScripts(org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will get all node for ECM Action Scripts by giving the following params: provider
|
List<javax.jcr.Node> |
getECMInterceptorScripts(org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will get all node for ECM Interceptor Scripts by giving the following params: provider
|
javax.jcr.Node |
getECMScriptHome(org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will get node for ECM Explorer Scripts by giving the following params: provider
|
List<javax.jcr.Node> |
getECMWidgetScripts(org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will get all node for ECM Widget Scripts by giving the following params: provider
|
CmsScript |
getScript(String scriptPath)
This method will get script by giving the following params: scriptPath
|
String |
getScriptAsText(javax.jcr.Node script)
This method will return the script as Text based on the script node.
|
javax.jcr.Node |
getScriptNode(String scriptName,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will get script node by giving the following params: scriptName, provider
|
void |
initRepo()
This method will init the current repository
|
void |
removeScript(String scriptPath,
org.exoplatform.services.jcr.ext.common.SessionProvider provider)
This method will remove script by giving the following params: name, text, provider
|
javax.jcr.Node getECMScriptHome(org.exoplatform.services.jcr.ext.common.SessionProvider provider)
throws Exception
provider - SessionProviderExceptionNode,
NodeHierarchyCreator,
SessionProviderList<javax.jcr.Node> getECMActionScripts(org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
provider - ExceptionNode,
NodeHierarchyCreator,
SessionProviderList<javax.jcr.Node> getECMInterceptorScripts(org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
provider - ExceptionNode,
NodeHierarchyCreator,
SessionProviderList<javax.jcr.Node> getECMWidgetScripts(org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
provider - ExceptionNode,
NodeHierarchyCreator,
SessionProviderCmsScript getScript(String scriptPath) throws Exception
String getBaseScriptPath() throws Exception
ExceptionNodeHierarchyCreatorString getScriptAsText(javax.jcr.Node script) throws Exception
script - Node
The script nodeExceptionNodevoid addScript(String name, String text, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
name - String
The name of scripttext - Stringprovider - SessionProviderExceptionSessionProvidervoid addScript(String name, String description, String text, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
name - String
The name of scripttext - Stringdescription - Stringprovider - SessionProviderExceptionSessionProvidervoid removeScript(String scriptPath, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
scriptPath - String
The path of scriptprovider - SessionProviderExceptionNode,
SessionProviderjavax.jcr.Node getScriptNode(String scriptName, org.exoplatform.services.jcr.ext.common.SessionProvider provider) throws Exception
scriptName - String
The name of scriptprovider - SessionProviderExceptionNode,
SessionProvidervoid initRepo()
throws Exception
ExceptionManageableRepository,
ObservationManager,
SessionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.