Class MultiCountResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.client.impl.multicount.MultiCountResource
- All Implemented Interfaces:
RestResource
@Path("/client/entities/{name}/{pk}/relations")
public class MultiCountResource
extends AbstractRestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionMultiCountResource
(CommandExecutor executor, EntityModelService entityModelService, Context context) -
Method Summary
Modifier and TypeMethodDescriptiongetRelationCount
(String modelName, String pk) void
setCustomRelationCounters
(List<CustomRelationCounter> customRelationCounters) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
MultiCountResource
public MultiCountResource(CommandExecutor executor, EntityModelService entityModelService, Context context)
-
-
Method Details
-
getRelationCount
@GET @Produces("application/json") public MultiCountBean getRelationCount(@PathParam("name") String modelName, @PathParam("pk") String pk) -
setCustomRelationCounters
@Autowired public void setCustomRelationCounters(List<CustomRelationCounter> customRelationCounters)
-