Package ch.tocco.nice2.marking.impl.rest
Class MarkingsResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.marking.impl.rest.MarkingsResource
- All Implemented Interfaces:
RestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionMarkingsResource
(Context context, EntityMarkService entityMarkService, PrincipalService principalService, SelectionService selectionService) -
Method Summary
Modifier and TypeMethodDescriptiongetOrSetMarkings
(MarkingsRequestBean requestBean) void
setMarked
(String entityName, String entityKey, MarkedBean markedBean) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
MarkingsResource
public MarkingsResource(Context context, EntityMarkService entityMarkService, PrincipalService principalService, SelectionService selectionService)
-
-
Method Details
-
getOrSetMarkings
@POST @Produces("application/json") @Consumes("application/json") public MarkingsBean getOrSetMarkings(MarkingsRequestBean requestBean) -
getMarked
@GET @Produces("application/json") @Path("/{entityName}/{entityKey}") public MarkedBean getMarked(@PathParam("entityName") String entityName, @PathParam("entityKey") String entityKey) -
setMarked
@PATCH @Produces("application/json") @Path("/{entityName}/{entityKey}") public void setMarked(@PathParam("entityName") String entityName, @PathParam("entityKey") String entityKey, MarkedBean markedBean)
-