Package org.europa.together.service.acl
Class ResourceService
java.lang.Object
org.europa.together.service.acl.ResourceService
RESTful Service for Resources.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- elmar.dott@gmail.com
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
createResource
(org.europa.together.domain.acl.ResourcesDO resource) jakarta.ws.rs.core.Response
deleteResource
(String resource, String resourceView) jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.Response
fetchResource
(String resourceName, String resourceView) jakarta.ws.rs.core.Response
fetchResourceOfSameType
(String resourceType) jakarta.ws.rs.core.Response
updateResource
(org.europa.together.domain.acl.ResourcesDO resource)
-
Constructor Details
-
ResourceService
public ResourceService()
-
-
Method Details
-
fetchResource
-
fetchAllResources
@GET @Path("/list") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchAllResources() -
fetchProtectedResources
@GET @Path("/list/protected") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchProtectedResources() -
fetchResourceOfSameType
@GET @Path("/list/equalType/{resource}") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchResourceOfSameType(@PathParam("resource") String resourceType) -
updateResource
@PUT @Consumes("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response updateResource(org.europa.together.domain.acl.ResourcesDO resource) -
createResource
@POST @Consumes("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response createResource(org.europa.together.domain.acl.ResourcesDO resource) -
deleteResource
-