Package com.logicaldoc.webservice.rest
Interface FolderService
-
- All Known Implementing Classes:
RestFolderService,RestFolderSwagger
@Consumes("application/json") @Produces("application/json") public interface FolderService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WSFoldercreate(WSFolder folder)longcreateFolder(long parentId, String name)WSFoldercreatePath(long parentId, String path)WSFoldercreateSimple(String folderPath)WSFoldercreateSimpleForm(String folderPath)WSFoldercreateSimpleJSON(String jsonstr)voiddelete(long folderId)WSFolderfindByPath(String path)Finds the folder at the specified pathWSFoldergetFolder(long folderId)WSFolder[]getPath(long folderId)StringgetPathString(long folderId)WSFoldergetRootFolder()Gets the root folderWSFolder[]listChildren(long folderId)voidmove(long folderId, long parentId)voidrename(long folderId, String name)voidupdate(WSFolder folder)
-
-
-
Method Detail
-
createSimple
@POST @Path("/createSimple") @Consumes({"text/plain","application/json"}) WSFolder createSimple(String folderPath) throws Exception- Throws:
Exception
-
createSimpleForm
@POST @Path("/createSimpleForm") @Consumes("application/x-www-form-urlencoded") WSFolder createSimpleForm(@FormParam("folderPath") String folderPath) throws Exception- Throws:
Exception
-
createSimpleJSON
@POST @Path("/createSimpleJSON") @Consumes("application/json") WSFolder createSimpleJSON(String jsonstr) throws Exception- Throws:
Exception
-
createPath
@POST @Path("/createPath") @Consumes("application/x-www-form-urlencoded") WSFolder createPath(@FormParam("parentId") long parentId, @FormParam("path") String path) throws Exception- Throws:
Exception
-
findByPath
@GET @Path("/findByPath") @Produces("application/json") WSFolder findByPath(@QueryParam("path") String path) throws ExceptionFinds the folder at the specified path- Parameters:
path- the path- Returns:
- the folder
- Throws:
Exception- error in the server application
-
getRootFolder
@GET @Path("/getRootFolder") @Produces("application/json") WSFolder getRootFolder() throws ExceptionGets the root folder- Returns:
- the root folder
- Throws:
Exception- error in the server application
-
createFolder
@POST @Path("/createFolder") @Consumes("application/x-www-form-urlencoded") @Produces({"text/plain","application/json","application/xml"}) long createFolder(@FormParam("parentId") long parentId, @FormParam("name") String name) throws Exception- Throws:
Exception
-
getFolder
@GET @Path("/getFolder") @Produces({"application/json","application/xml"}) WSFolder getFolder(@QueryParam("folderId") long folderId) throws Exception- Throws:
Exception
-
delete
@DELETE @Path("/delete") void delete(@QueryParam("folderId") long folderId) throws Exception- Throws:
Exception
-
listChildren
@GET @Path("/listChildren") @Produces({"application/json","application/xml"}) WSFolder[] listChildren(@QueryParam("folderId") long folderId) throws Exception- Throws:
Exception
-
getPath
@GET @Path("/getPath") WSFolder[] getPath(@QueryParam("folderId") long folderId) throws Exception- Throws:
Exception
-
getPathString
@GET @Path("/getPathString") String getPathString(@QueryParam("folderId") long folderId) throws Exception- Throws:
Exception
-
rename
@PUT @Path("/rename") void rename(@QueryParam("folderId") long folderId, @QueryParam("name") String name) throws Exception- Throws:
Exception
-
-