public class DbScriptingModule extends Object implements ScriptingModule
| Constructor and Description |
|---|
DbScriptingModule() |
| Modifier and Type | Method and Description |
|---|---|
String |
getScript(String token,
String nodePath)
Get node script (document or folder).
|
void |
removeScript(String token,
String nodePath)
Remove script from node.
|
void |
setScript(String token,
String nodePath,
String code)
Add script to node.
|
public void setScript(String token, String nodePath, String code) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
ScriptingModulesetScript in interface ScriptingModulenodePath - The complete path to the node.code - Script BeanShell code.PathNotFoundException - If the node defined by nodePath do not exists.AccessDeniedException - If the token authorization information is not valid.RepositoryException - If there is any error accessing to the repository.DatabaseExceptionpublic void removeScript(String token, String nodePath) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
ScriptingModuleremoveScript in interface ScriptingModulenodePath - The complete path to the node.PathNotFoundException - If the node defined by nodePath do not exists.AccessDeniedException - If the token authorization information is not valid.RepositoryException - If there is any error accessing to the repository.DatabaseExceptionpublic String getScript(String token, String nodePath) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
ScriptingModulegetScript in interface ScriptingModulenodePath - The complete path to the node.PathNotFoundException - If the node defined by nodePath do not exists.AccessDeniedException - If the token authorization information is not valid.RepositoryException - If there is any error accessing to the repository.DatabaseExceptionCopyright © 2015. All Rights Reserved.