Class GroovyManagerServiceImpl
- java.lang.Object
-
- org.openiam.groovy.manager.service.impl.GroovyManagerServiceImpl
-
- All Implemented Interfaces:
IGroovyManagerService
@Service("GroovyManagerService") public class GroovyManagerServiceImpl extends Object implements IGroovyManagerService- Author:
- Zdenko Imrek
-
-
Constructor Summary
Constructors Constructor Description GroovyManagerServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIfGroovyScriptExists(String scriptName)voidcompile(String content)voidcreateACopy(String source, String target)voidcreateDirectory(String relativePath)byte[]downloadExported()booleanexportSelectedScripts(List<String> scriptsForExport)Map<String,String>getAllGroovyScripts()List<String>getGroovyScriptsList()TreeObjectIdgetGroovyScriptsTree()booleanimportScripts(byte[] fileContent)Stringload(String relativePath)Filesave(String name, String script)
-
-
-
Method Detail
-
save
public File save(String name, String script) throws CheckGroovyException, org.codehaus.groovy.control.MultipleCompilationErrorsException
- Specified by:
savein interfaceIGroovyManagerService- Throws:
CheckGroovyExceptionorg.codehaus.groovy.control.MultipleCompilationErrorsException
-
load
public String load(String relativePath)
- Specified by:
loadin interfaceIGroovyManagerService
-
importScripts
public boolean importScripts(byte[] fileContent)
- Specified by:
importScriptsin interfaceIGroovyManagerService
-
downloadExported
public byte[] downloadExported()
- Specified by:
downloadExportedin interfaceIGroovyManagerService
-
exportSelectedScripts
public boolean exportSelectedScripts(List<String> scriptsForExport)
- Specified by:
exportSelectedScriptsin interfaceIGroovyManagerService
-
checkIfGroovyScriptExists
public boolean checkIfGroovyScriptExists(String scriptName)
- Specified by:
checkIfGroovyScriptExistsin interfaceIGroovyManagerService
-
getGroovyScriptsList
public List<String> getGroovyScriptsList()
- Specified by:
getGroovyScriptsListin interfaceIGroovyManagerService
-
getGroovyScriptsTree
public TreeObjectId getGroovyScriptsTree()
- Specified by:
getGroovyScriptsTreein interfaceIGroovyManagerService
-
createDirectory
public void createDirectory(String relativePath) throws Exception
- Specified by:
createDirectoryin interfaceIGroovyManagerService- Throws:
Exception
-
createACopy
public void createACopy(String source, String target) throws Exception
- Specified by:
createACopyin interfaceIGroovyManagerService- Throws:
Exception
-
getAllGroovyScripts
public Map<String,String> getAllGroovyScripts()
- Specified by:
getAllGroovyScriptsin interfaceIGroovyManagerService
-
compile
public void compile(String content) throws CheckGroovyException, org.codehaus.groovy.control.MultipleCompilationErrorsException
- Specified by:
compilein interfaceIGroovyManagerService- Throws:
CheckGroovyExceptionorg.codehaus.groovy.control.MultipleCompilationErrorsException
-
-