@Singleton
@Path(value="/organizer")
public class OrganizerServices
extends step.core.deployment.AbstractServices
| Modifier and Type | Class and Description |
|---|---|
static class |
OrganizerServices.DirEntry |
| Constructor and Description |
|---|
OrganizerServices() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll() |
void |
addFile(OrganizerServices.DirEntry entry) |
void |
addFolder(String path,
String name) |
void |
commit() |
void |
deleteFile(String path) |
void |
deleteFile(String path,
String to) |
void |
deleteFolder(String path) |
protected File |
getFileAndAssertItExists(String path) |
String |
getFileContent(String path) |
void |
init() |
List<OrganizerServices.DirEntry> |
list(String path,
String query,
String type) |
void |
reset() |
void |
saveFile(OrganizerServices.DirEntry entry) |
void |
saveFileContent(String path,
String content) |
@PostConstruct public void init() throws Exception
init in class step.core.deployment.AbstractServicesException@GET @Path(value="/browse") public List<OrganizerServices.DirEntry> list(@QueryParam(value="path") String path, @QueryParam(value="query") String query, @QueryParam(value="type") String type) throws Exception
Exception@GET @Path(value="/file") public String getFileContent(@QueryParam(value="path") String path) throws Exception
Exception@POST
@Path(value="/file/content")
public void saveFileContent(@QueryParam(value="path")
String path,
String content)
throws Exception
Exceptionprotected File getFileAndAssertItExists(String path) throws Exception
Exception@DELETE
@Path(value="/file")
public void deleteFile(@QueryParam(value="path")
String path)
throws Exception
Exception@POST
@Path(value="/file/copy")
public void deleteFile(@QueryParam(value="path")
String path,
@QueryParam(value="to")
String to)
throws Exception
Exception@POST
@Path(value="/folder")
public void addFolder(@QueryParam(value="path")
String path,
@QueryParam(value="name")
String name)
throws Exception
Exception@DELETE
@Path(value="/folder")
public void deleteFolder(@QueryParam(value="path")
String path)
throws Exception
Exception@PUT @Path(value="/file") public void addFile(OrganizerServices.DirEntry entry) throws Exception
Exception@POST @Path(value="/file") public void saveFile(OrganizerServices.DirEntry entry) throws Exception
ExceptionCopyright © 2020. All rights reserved.