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 boolean
checkIfGroovyScriptExists(String scriptName)
void
compile(String content)
void
createACopy(String source, String target)
void
createDirectory(String relativePath)
byte[]
downloadExported()
boolean
exportSelectedScripts(List<String> scriptsForExport)
Map<String,String>
getAllGroovyScripts()
List<String>
getGroovyScriptsList()
TreeObjectId
getGroovyScriptsTree()
boolean
importScripts(byte[] fileContent)
String
load(String relativePath)
File
save(String name, String script)
-
-
-
Method Detail
-
save
public File save(String name, String script) throws CheckGroovyException, org.codehaus.groovy.control.MultipleCompilationErrorsException
- Specified by:
save
in interfaceIGroovyManagerService
- Throws:
CheckGroovyException
org.codehaus.groovy.control.MultipleCompilationErrorsException
-
load
public String load(String relativePath)
- Specified by:
load
in interfaceIGroovyManagerService
-
importScripts
public boolean importScripts(byte[] fileContent)
- Specified by:
importScripts
in interfaceIGroovyManagerService
-
downloadExported
public byte[] downloadExported()
- Specified by:
downloadExported
in interfaceIGroovyManagerService
-
exportSelectedScripts
public boolean exportSelectedScripts(List<String> scriptsForExport)
- Specified by:
exportSelectedScripts
in interfaceIGroovyManagerService
-
checkIfGroovyScriptExists
public boolean checkIfGroovyScriptExists(String scriptName)
- Specified by:
checkIfGroovyScriptExists
in interfaceIGroovyManagerService
-
getGroovyScriptsList
public List<String> getGroovyScriptsList()
- Specified by:
getGroovyScriptsList
in interfaceIGroovyManagerService
-
getGroovyScriptsTree
public TreeObjectId getGroovyScriptsTree()
- Specified by:
getGroovyScriptsTree
in interfaceIGroovyManagerService
-
createDirectory
public void createDirectory(String relativePath) throws Exception
- Specified by:
createDirectory
in interfaceIGroovyManagerService
- Throws:
Exception
-
createACopy
public void createACopy(String source, String target) throws Exception
- Specified by:
createACopy
in interfaceIGroovyManagerService
- Throws:
Exception
-
getAllGroovyScripts
public Map<String,String> getAllGroovyScripts()
- Specified by:
getAllGroovyScripts
in interfaceIGroovyManagerService
-
compile
public void compile(String content) throws CheckGroovyException, org.codehaus.groovy.control.MultipleCompilationErrorsException
- Specified by:
compile
in interfaceIGroovyManagerService
- Throws:
CheckGroovyException
org.codehaus.groovy.control.MultipleCompilationErrorsException
-
-