Class ArtifactTypeService
- java.lang.Object
-
- com.sodius.oslc.server.process.services.ArtifactTypeService
-
public class ArtifactTypeService extends Object
-
-
Constructor Summary
Constructors Constructor Description ArtifactTypeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
getArtifactTypes(String containerId)
Gets the Artifact Types available for a containerId.Response
getArtifactTypeUsageMapping(String containerId, String templateId)
Gets the Artifact Type Usage Mapping for a containerId.Response
saveArtifactTypeUsageMapping(String containerId)
Updates the Artifact Type Usage Mapping for a containerId.protected void
validateArtifactTypeUsageMappings(ArtifactTypeUsageMappings artifactTypeUsageMappings)
-
-
-
Method Detail
-
getArtifactTypeUsageMapping
public Response getArtifactTypeUsageMapping(String containerId, String templateId)
Gets the Artifact Type Usage Mapping for a containerId.- Parameters:
containerId
- the container to get the Artifact Type Usage Mapping from.templateId
- the template ID.- Returns:
- the corresponding Artifact Type Usage Mapping.
-
getArtifactTypes
public Response getArtifactTypes(String containerId)
Gets the Artifact Types available for a containerId.- Parameters:
containerId
- the container to get the Artifact Types from.- Returns:
- the corresponding Artifact Type list.
-
saveArtifactTypeUsageMapping
public Response saveArtifactTypeUsageMapping(String containerId)
Updates the Artifact Type Usage Mapping for a containerId.- Parameters:
containerId
- the containerId to update- Returns:
- the Artifact Type Usage Mapping with the Feedback detected by the Artifact Type Usage Mapping Validator
-
validateArtifactTypeUsageMappings
protected void validateArtifactTypeUsageMappings(ArtifactTypeUsageMappings artifactTypeUsageMappings)
-
-