Class ProjectAreaService
- java.lang.Object
-
- com.sodius.oslc.server.process.services.ProjectAreaService
-
public abstract class ProjectAreaService extends Object
Manages the resolution of project areas.- Since:
- 3.7.0
-
-
Constructor Summary
Constructors Constructor Description ProjectAreaService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ResponsegetConfiguration(String projectAreaId)Determines whether Configuration Management is enabled on a given project area.protected abstract ProjectAreagetProjectArea(ApplicationContainer container)Creates aProjectAreainstance our of anApplicationContainercontainer.ResponsegetProjectArea(String projectAreaId)Gets aProjectArearesource given its identifier.protected abstract URIgetProjectAreaHome(ApplicationContainer container)Gets the URI of a project area home page.ResponsegetProjectAreaHome(String projectAreaId)Redirects a project area request to the corresponding home page.ResponsesetConfiguration(String projectAreaId)Updates the Configuration Management status on a given project area.
-
-
-
Method Detail
-
getProjectArea
protected abstract ProjectArea getProjectArea(ApplicationContainer container)
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
protected abstract URI getProjectAreaHome(ApplicationContainer container)
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
public Response getProjectAreaHome(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
public Response getProjectArea(String projectAreaId)
Gets aProjectArearesource given its identifier.- Parameters:
projectAreaId- the given project area identifier.- Returns:
- the corresponding
ProjectArearesource ofprojectAreaId.
-
getConfiguration
public Response getConfiguration(String projectAreaId)
Determines whether Configuration Management is enabled on a given project area.- Parameters:
projectAreaId- the project area id.- Returns:
- the
ProjectAreashape.
-
setConfiguration
public Response setConfiguration(String projectAreaId)
Updates the Configuration Management status on a given project area.- Parameters:
projectAreaId- the project area id.- Returns:
- the
ProjectAreashape.
-
-