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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(String projectAreaId) Determines whether Configuration Management is enabled on a given project area.protected abstract ProjectAreagetProjectArea(ApplicationContainer container) Creates aProjectAreainstance our of anApplicationContainercontainer.getProjectArea(String projectAreaId) Gets aProjectArearesource given its identifier.protected abstract URIgetProjectAreaHome(ApplicationContainer container) Gets the URI of a project area home page.getProjectAreaHome(String projectAreaId) Redirects a project area request to the corresponding home page.setConfiguration(String projectAreaId) Updates the Configuration Management status on a given project area.
-
Constructor Details
-
ProjectAreaService
public ProjectAreaService()
-
-
Method Details
-
getProjectArea
Creates aProjectAreainstance our of anApplicationContainercontainer.Implementations must provide the
access context URIand all the suitable Service Providers.- Parameters:
container- the application artifact container.- Returns:
- the corresponding project area resource.
- Since:
- 3.8.0
-
getProjectAreaHome
Gets the URI of a project area home page.- Parameters:
container- theApplicationContainerof 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 aProjectArearesource given its identifier.- Parameters:
projectAreaId- the given project area identifier.- Returns:
- the corresponding
ProjectArearesource ofprojectAreaId.
-
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
ProjectAreashape.
-
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
ProjectAreashape.
-