Package step.plugins.scripteditor
Class ScriptEditorServices
java.lang.Object
step.framework.server.AbstractServices<User>
step.core.deployment.AbstractStepServices
step.plugins.scripteditor.ScriptEditorServices
-
Field Summary
Fields inherited from class step.core.deployment.AbstractStepServices
configuration, SESSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFunctionScript
(String functionid) 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
Methods inherited from class step.framework.server.AbstractServices
getAbstractContext, getHttpSession, getSession, getSession, invalidateSession, setHttpServletRequest, setSession
-
Constructor Details
-
ScriptEditorServices
public ScriptEditorServices()
-
-
Method Details
-
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
-