Class ResourceService

java.lang.Object
org.europa.together.service.acl.ResourceService

@Service @Path("/acl/1/resource") public class ResourceService extends Object
RESTful Service for Resources.
Since:
1.0
Version:
1.0
Author:
elmar.dott@gmail.com
  • Constructor Details

    • ResourceService

      public ResourceService()
  • Method Details

    • fetchResource

      @GET @Path("/{resource}") @Produces("application/json") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response fetchResource(@PathParam("resource") String resourceName, @QueryParam("resourceView") String resourceView)
    • 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

      @DELETE @Path("/{resource}") @API(status=STABLE, since="1") public jakarta.ws.rs.core.Response deleteResource(@PathParam("resource") String resource, @QueryParam("resourceView") String resourceView)