Package step.plugins.organizer
Class OrganizerServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.plugins.organizer.OrganizerServices
-
@Singleton @Path("/organizer") public class OrganizerServices extends step.core.deployment.AbstractStepServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOrganizerServices.DirEntry
-
Constructor Summary
Constructors Constructor Description OrganizerServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAll()voidaddFile(OrganizerServices.DirEntry entry)voidaddFolder(java.lang.String path, java.lang.String name)voidcommit()voidcopyFile(java.lang.String path, java.lang.String to)voiddeleteFile(java.lang.String path)voiddeleteFolder(java.lang.String path)protected java.io.FilegetFileAndAssertItExists(java.lang.String path)java.lang.StringgetFileContent(java.lang.String path)voidinit()java.util.List<OrganizerServices.DirEntry>list(java.lang.String path, java.lang.String query, java.lang.String type)voidreset()voidsaveFile(OrganizerServices.DirEntry entry)voidsaveFileContent(java.lang.String path, java.lang.String content)-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception- Overrides:
initin classstep.core.deployment.AbstractStepServices- Throws:
java.lang.Exception
-
list
@GET @Path("/browse") public java.util.List<OrganizerServices.DirEntry> list(@QueryParam("path") java.lang.String path, @QueryParam("query") java.lang.String query, @QueryParam("type") java.lang.String type) throws java.lang.Exception- Throws:
java.lang.Exception
-
getFileContent
@GET @Produces("text/plain") @Path("/file") public java.lang.String getFileContent(@QueryParam("path") java.lang.String path) throws java.lang.Exception- Throws:
java.lang.Exception
-
saveFileContent
@POST @Path("/file/content") public void saveFileContent(@QueryParam("path") java.lang.String path, java.lang.String content) throws java.lang.Exception- Throws:
java.lang.Exception
-
getFileAndAssertItExists
protected java.io.File getFileAndAssertItExists(java.lang.String path) throws java.lang.Exception- Throws:
java.lang.Exception
-
deleteFile
@DELETE @Path("/file") public void deleteFile(@QueryParam("path") java.lang.String path) throws java.lang.Exception- Throws:
java.lang.Exception
-
copyFile
@POST @Path("/file/copy") public void copyFile(@QueryParam("path") java.lang.String path, @QueryParam("to") java.lang.String to) throws java.lang.Exception- Throws:
java.lang.Exception
-
addFolder
@POST @Path("/folder") public void addFolder(@QueryParam("path") java.lang.String path, @QueryParam("name") java.lang.String name) throws java.lang.Exception- Throws:
java.lang.Exception
-
deleteFolder
@DELETE @Path("/folder") public void deleteFolder(@QueryParam("path") java.lang.String path) throws java.lang.Exception- Throws:
java.lang.Exception
-
addFile
@PUT @Path("/file") public void addFile(OrganizerServices.DirEntry entry) throws java.lang.Exception- Throws:
java.lang.Exception
-
saveFile
@POST @Path("/file") public void saveFile(OrganizerServices.DirEntry entry) throws java.lang.Exception- Throws:
java.lang.Exception
-
commit
@POST @Path("/git/commit") public void commit() throws java.lang.Exception- Throws:
java.lang.Exception
-
reset
@POST @Path("/git/reset") public void reset() throws java.lang.Exception- Throws:
java.lang.Exception
-
addAll
@POST @Path("/git/addall") public void addAll() throws java.lang.Exception- Throws:
java.lang.Exception
-
-