Package step.plugins.scripteditor
Class ScriptEditorServices
- java.lang.Object
-
- step.core.deployment.AbstractServices
-
- step.plugins.scripteditor.ScriptEditorServices
-
@Singleton @Path("/scripteditor") public class ScriptEditorServices extends AbstractServices
-
-
Field Summary
-
Fields inherited from class step.core.deployment.AbstractServices
configuration, controller
-
-
Constructor Summary
Constructors Constructor Description ScriptEditorServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFunctionScript(String functionid)StringgetScript(String filename)voidsaveFunctionScript(String functionid, String content)voidsaveScript(String filename, String content)-
Methods inherited from class step.core.deployment.AbstractServices
getContext, getExecutionRunnable, getScheduler, getSession, init, setSession
-
-
-
-
Method Detail
-
getScript
@GET @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 @Path("/function/{functionid}/file") public String getFunctionScript(@PathParam("functionid") String functionid) throws IOException- Throws:
IOException
-
-