Class ProjectAreaService

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

@Path("/process/project-area/{projectAreaId}") public abstract class ProjectAreaService extends Object
Manages the resolution of project areas.
Since:
3.7.0
  • Constructor Details

    • ProjectAreaService

      public ProjectAreaService()
  • Method Details

    • getProjectArea

      protected abstract ProjectArea getProjectArea(ApplicationContainer container)
      Creates a ProjectArea instance our of an ApplicationContainer container.

      Implementations must provide the access context URI and all the suitable Service Providers.

      Parameters:
      container - the application artifact container.
      Returns:
      the corresponding project area resource.
      Since:
      3.8.0
    • getProjectAreaHome

      protected abstract URI getProjectAreaHome(ApplicationContainer container)
      Gets the URI of a project area home page.
      Parameters:
      container - the ApplicationContainer of the project area.
      Returns:
      the URI of the project area home page.
      Since:
      3.8.0
    • getProjectAreaHome

      @GET @Produces("text/html") public Response getProjectAreaHome(@PathParam("projectAreaId") String projectAreaId)
      Redirects a project area request to the corresponding home page.
      Parameters:
      projectAreaId - the project area identifier.
      Returns:
      a 307 (temporary redirect) response to the project area home page.
    • getProjectArea

      @GET @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getProjectArea(@PathParam("projectAreaId") String projectAreaId)
      Gets a ProjectArea resource given its identifier.
      Parameters:
      projectAreaId - the given project area identifier.
      Returns:
      the corresponding ProjectArea resource of projectAreaId.
    • getConfiguration

      @GET @Path("gc") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getConfiguration(@PathParam("projectAreaId") String projectAreaId)
      Determines whether Configuration Management is enabled on a given project area.
      Parameters:
      projectAreaId - the project area id.
      Returns:
      the ProjectArea shape.
    • setConfiguration

      @PUT @Path("gc") @Consumes({"application/rdf+xml","application/xml","text/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 setConfiguration(@PathParam("projectAreaId") String projectAreaId)
      Updates the Configuration Management status on a given project area.
      Parameters:
      projectAreaId - the project area id.
      Returns:
      the ProjectArea shape.