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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssociations(String projectAreaId) protected voidcheckPermission(String projectAreaId) Checks whether the connected user has the permission to access project area associations services for the given project area.deleteAssociations(String projectAreaId, List<String> identifiers) getAssociations(String projectAreaId) getFriends(String projectAreaId)
-
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
-
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
-
checkPermission
Checks whether the connected user has the permission to access project area associations services for the given project area.Default implementation is to use
ApplicationArtifactResolverto 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:
-