Package step.plugins.scripteditor
Class ScriptEditorServices
- java.lang.Object
-
- step.framework.server.AbstractServices<User>
-
- step.core.deployment.AbstractStepServices
-
- step.plugins.scripteditor.ScriptEditorServices
-
@Singleton @Path("/scripteditor") public class ScriptEditorServices extends AbstractStepServices
-
-
Field Summary
-
Fields inherited from class step.core.deployment.AbstractStepServices
configuration, SESSION
-
-
Constructor Summary
Constructors Constructor Description ScriptEditorServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFunctionScript(String functionid)
String
getScript(String filename)
void
saveFunctionScript(String functionid, String content)
void
saveScript(String filename, String content)
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler, init
-
-
-
-
Method Detail
-
getScript
@GET @Produces("text/plain") @Path("/file/{filename}") public String getScript(@PathParam("filename") String filename) throws IOException
- Throws:
IOException
-
saveScript
@POST @Path("/file/{filename}") public void saveScript(@PathParam("filename") String filename, String content) throws IOException
- Throws:
IOException
-
saveFunctionScript
@POST @Path("/function/{functionid}/file") public void saveFunctionScript(@PathParam("functionid") String functionid, String content) throws IOException
- Throws:
IOException
-
getFunctionScript
@GET @Produces("text/plain") @Path("/function/{functionid}/file") public String getFunctionScript(@PathParam("functionid") String functionid) throws IOException
- Throws:
IOException
-
-