Class DocumentsResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.documents.impl.resources.DocumentsResource
- All Implemented Interfaces:
RestResource
This class is used for dms related endpoints that should be shown in our public swagger documentation.
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionDocumentsResource
(Context context, BeanFactory beanFactory, NodeDataService nodeDataService, DataModel dataModel, DeleteService deleteService) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
addDocs
(String nodeType, String pk, org.glassfish.jersey.media.multipart.FormDataMultiPart multiPart) delete
(DeleteRequestBean bean) getAll()
getChildren
(String nodeType, String pk) getChildrenCount
(String nodeType, String pk) jakarta.ws.rs.core.Response
move
(MoveRequestBean bean) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
DocumentsResource
public DocumentsResource(Context context, BeanFactory beanFactory, NodeDataService nodeDataService, DataModel dataModel, DeleteService deleteService)
-
-
Method Details
-
getDomains
-
getAll
-
getChildren
@Path("/{node-type}/{pk}") @GET @Produces("application/json") public CollectionBean getChildren(@PathParam("node-type") String nodeType, @PathParam("pk") String pk) -
addDocs
-
getDomainsCount
-
getAllCount
-
getChildrenCount
-
move
@Path("/move") @POST @Consumes("application/json") public jakarta.ws.rs.core.Response move(MoveRequestBean bean) -
delete
@POST @Consumes("application/json") @Produces("application/json") @Path("/delete") public DeleteEntitiesResponseBean delete(DeleteRequestBean bean)
-