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 boolean
checkIfGroovyScriptExist(String fileName)
Response
compile(String content)
ByteArrayResponse
downloadExported()
boolean
exportSelectedGroovyScripts(List<String> selectedFiles)
StringToStringMapResponse
getAllGroovyScripts()
List<String>
getGroovyScriptsList()
TreeObjectId
getGroovyScriptsTree()
Response
importGroovyScripts(String zipFileName, byte[] zipFileContent)
String
load(String fileName)
FileResponse
save(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:
save
in interfaceGroovyManagerWebService
-
load
public String load(String fileName)
- Specified by:
load
in interfaceGroovyManagerWebService
-
downloadExported
public ByteArrayResponse downloadExported()
- Specified by:
downloadExported
in interfaceGroovyManagerWebService
-
importGroovyScripts
public Response importGroovyScripts(String zipFileName, byte[] zipFileContent)
- Specified by:
importGroovyScripts
in interfaceGroovyManagerWebService
-
checkIfGroovyScriptExist
public boolean checkIfGroovyScriptExist(String fileName)
- Specified by:
checkIfGroovyScriptExist
in interfaceGroovyManagerWebService
-
getGroovyScriptsList
public List<String> getGroovyScriptsList()
- Specified by:
getGroovyScriptsList
in interfaceGroovyManagerWebService
-
getGroovyScriptsTree
public TreeObjectId getGroovyScriptsTree()
- Specified by:
getGroovyScriptsTree
in interfaceGroovyManagerWebService
-
exportSelectedGroovyScripts
public boolean exportSelectedGroovyScripts(List<String> selectedFiles)
- Specified by:
exportSelectedGroovyScripts
in interfaceGroovyManagerWebService
-
compile
public Response compile(String content)
- Specified by:
compile
in interfaceGroovyManagerWebService
-
getAllGroovyScripts
public StringToStringMapResponse getAllGroovyScripts()
- Specified by:
getAllGroovyScripts
in interfaceGroovyManagerWebService
-
-