Package org.openiam.srvc.groovy.manager
Class GroovyManagerWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.groovy.manager.GroovyManagerWebServiceImpl
-
- All Implemented Interfaces:
GroovyManagerWebService
@Service("groovyManagerWS") public class GroovyManagerWebServiceImpl extends AbstractApiService implements GroovyManagerWebService- Author:
- Zdenko Imrek
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, log, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description GroovyManagerWebServiceImpl(GroovyManagerQueue rabbitMqQueue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckIfGroovyScriptExist(String fileName)Responsecompile(String content)ByteArrayResponsedownloadExported()booleanexportSelectedGroovyScripts(List<String> selectedFiles)StringToStringMapResponsegetAllGroovyScripts()List<String>getGroovyScriptsList()TreeObjectIdgetGroovyScriptsTree()ResponseimportGroovyScripts(String zipFileName, byte[] zipFileContent)Stringload(String fileName)FileResponsesave(String fileName, String fileContent)-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
GroovyManagerWebServiceImpl
public GroovyManagerWebServiceImpl(GroovyManagerQueue rabbitMqQueue)
-
-
Method Detail
-
save
public FileResponse save(String fileName, String fileContent)
- Specified by:
savein interfaceGroovyManagerWebService
-
load
public String load(String fileName)
- Specified by:
loadin interfaceGroovyManagerWebService
-
downloadExported
public ByteArrayResponse downloadExported()
- Specified by:
downloadExportedin interfaceGroovyManagerWebService
-
importGroovyScripts
public Response importGroovyScripts(String zipFileName, byte[] zipFileContent)
- Specified by:
importGroovyScriptsin interfaceGroovyManagerWebService
-
checkIfGroovyScriptExist
public boolean checkIfGroovyScriptExist(String fileName)
- Specified by:
checkIfGroovyScriptExistin interfaceGroovyManagerWebService
-
getGroovyScriptsList
public List<String> getGroovyScriptsList()
- Specified by:
getGroovyScriptsListin interfaceGroovyManagerWebService
-
getGroovyScriptsTree
public TreeObjectId getGroovyScriptsTree()
- Specified by:
getGroovyScriptsTreein interfaceGroovyManagerWebService
-
exportSelectedGroovyScripts
public boolean exportSelectedGroovyScripts(List<String> selectedFiles)
- Specified by:
exportSelectedGroovyScriptsin interfaceGroovyManagerWebService
-
compile
public Response compile(String content)
- Specified by:
compilein interfaceGroovyManagerWebService
-
getAllGroovyScripts
public StringToStringMapResponse getAllGroovyScripts()
- Specified by:
getAllGroovyScriptsin interfaceGroovyManagerWebService
-
-