Class RequirementAdministrationResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.educationrequirement.impl.resources.RequirementAdministrationResource
- All Implemented Interfaces:
RestResource
@Path("/flows/RegistrationAdministration/{pk}")
public class RequirementAdministrationResource
extends AbstractRestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionRequirementAdministrationResource
(Context context, RestSearchService restSearchService) -
Method Summary
Modifier and TypeMethodDescriptioncountRequirements
(String registrationPk) getRequirements
(String registrationPk) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
RequirementAdministrationResource
-
-
Method Details
-
getRequirements
@GET @Path("/requirements") @Produces("application/json") public CollectionBean getRequirements(@PathParam("pk") String registrationPk) - Parameters:
registrationPk
- the key of the registration to load from- Returns:
- the collection bean filled with all Requirements found
-
countRequirements
@GET @Path("/requirements/count") @Produces("application/json") public CountBean countRequirements(@PathParam("pk") String registrationPk) - Parameters:
registrationPk
- the key of the registration to load from- Returns:
- the count bean filled with all Requirements found
-