public class OKMScripting extends Object implements ScriptingModule
Modifier and Type | Method and Description |
---|---|
static OKMScripting |
getInstance() |
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 static OKMScripting getInstance()
public void setScript(String token, String nodePath, String code) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
ScriptingModule
setScript
in interface ScriptingModule
nodePath
- 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.DatabaseException
public void removeScript(String token, String nodePath) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
ScriptingModule
removeScript
in interface ScriptingModule
nodePath
- 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.DatabaseException
public String getScript(String token, String nodePath) throws PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException
ScriptingModule
getScript
in interface ScriptingModule
nodePath
- 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.DatabaseException
Copyright © 2015. All Rights Reserved.