Class EntityDocsResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.entity.impl.resources.entities.AbstractEntityDocsResource
ch.tocco.nice2.rest.entity.impl.resources.entities.EntityDocsResource
- All Implemented Interfaces:
RestResource
@Path("/entities/2.0/{name}/{pk}/entitydocs")
public class EntityDocsResource
extends AbstractEntityDocsResource
Provides the entity documents for the given entity.
Entity documents need to be handled special because they are not secured by ACL rules like other resources.
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.entity.impl.resources.entities.AbstractEntityDocsResource
binaryFactory, context, dataModel, entityDocumentsService, nodeFactory
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionEntityDocsResource
(TypeManager typeManager, DataModel dataModel, Context context, PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, RestSearchService restSearchService, BinaryFactory binaryFactory, EntityDocumentsService entityDocumentsService, NodeFactory nodeFactory) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
addEntityDoc
(String modelName, String pk, InputStream file, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDisposition, String fieldname) getEntityDocuments
(String modelName, String pk, String offset, String limit, String sort, String paths) Methods inherited from class ch.tocco.nice2.rest.entity.impl.resources.entities.AbstractEntityDocsResource
checkEntityModel, checkFieldModel, doAddEntityDoc
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
EntityDocsResource
public EntityDocsResource(TypeManager typeManager, DataModel dataModel, Context context, PersistenceService persistenceService, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, RestSearchService restSearchService, BinaryFactory binaryFactory, EntityDocumentsService entityDocumentsService, NodeFactory nodeFactory)
-
-
Method Details
-
getEntityDocuments
-
getCount
-
getFolder
@GET @Path("folder") @Produces("application/json") public EntityBean getFolder(@PathParam("name") String modelName, @PathParam("pk") String pk) -
addEntityDoc
@POST @Consumes("multipart/form-data") @Produces("application/json") public jakarta.ws.rs.core.Response addEntityDoc(@PathParam("name") String modelName, @PathParam("pk") String pk, InputStream file, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDisposition, @QueryParam("fieldname") String fieldname)
-