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 Response
getConfiguration(String projectAreaId)
Determines whether Configuration Management is enabled on a given project area.protected abstract ProjectArea
getProjectArea(ApplicationContainer container)
Creates aProjectArea
instance our of anApplicationContainer
container.Response
getProjectArea(String projectAreaId)
Gets aProjectArea
resource given its identifier.protected abstract URI
getProjectAreaHome(ApplicationContainer container)
Gets the URI of a project area home page.Response
getProjectAreaHome(String projectAreaId)
Redirects a project area request to the corresponding home page.Response
setConfiguration(String projectAreaId)
Updates the Configuration Management status on a given project area.
-
-
-
Method Detail
-
getProjectArea
protected abstract ProjectArea getProjectArea(ApplicationContainer container)
Creates aProjectArea
instance our of anApplicationContainer
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
- theApplicationContainer
of 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 aProjectArea
resource given its identifier.- Parameters:
projectAreaId
- the given project area identifier.- Returns:
- the corresponding
ProjectArea
resource 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
ProjectArea
shape.
-
setConfiguration
public Response setConfiguration(String projectAreaId)
Updates the Configuration Management status on a given project area.- Parameters:
projectAreaId
- the project area id.- Returns:
- the
ProjectArea
shape.
-
-