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 class
OrganizerServices.DirEntry
-
Constructor Summary
Constructors Constructor Description OrganizerServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll()
void
addFile(OrganizerServices.DirEntry entry)
void
addFolder(java.lang.String path, java.lang.String name)
void
commit()
void
copyFile(java.lang.String path, java.lang.String to)
void
deleteFile(java.lang.String path)
void
deleteFolder(java.lang.String path)
protected java.io.File
getFileAndAssertItExists(java.lang.String path)
java.lang.String
getFileContent(java.lang.String path)
void
init()
java.util.List<OrganizerServices.DirEntry>
list(java.lang.String path, java.lang.String query, java.lang.String type)
void
reset()
void
saveFile(OrganizerServices.DirEntry entry)
void
saveFileContent(java.lang.String path, java.lang.String content)
-
Methods inherited from class step.core.deployment.AbstractStepServices
checkRightsOnBehalfOf, getAuthorizationManager, getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in 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
-
-