Class ProjectAreaAssociationService

java.lang.Object
com.sodius.oslc.server.process.services.ProjectAreaAssociationService

@Path("/process/project-area/{projectAreaId}/association") public class ProjectAreaAssociationService extends Object
Manages the edition of project associations.
Since:
2.0.0
See Also:
  • Constructor Details

    • ProjectAreaAssociationService

      public ProjectAreaAssociationService()
  • Method Details

    • getAssociations

      @GET @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getAssociations(@PathParam("projectAreaId") String projectAreaId)
    • addAssociations

      @POST @Consumes({"application/rdf+xml","application/json","application/ld+json","text/turtle"}) @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response addAssociations(@PathParam("projectAreaId") String projectAreaId)
    • deleteAssociations

      @DELETE @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response deleteAssociations(@PathParam("projectAreaId") String projectAreaId, @QueryParam("identifier") List<String> identifiers)
    • getFriends

      @GET @Path("friend") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getFriends(@PathParam("projectAreaId") String projectAreaId)
    • checkPermission

      protected void checkPermission(String projectAreaId)
      Checks whether the connected user has the permission to access project area associations services for the given project area.

      Default implementation is to use ApplicationArtifactResolver to resolve the given project and verify the user can edit. Subclasses may override to refine this behavior.

      Parameters:
      projectAreaId - the project area identifier
      See Also: