Class Baseline
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.app.polarion.model.Baseline
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("https://polarionsoftware.com/ns#")
@OslcResourceShape(title="Baseline Resource Shape",
describes="https://polarionsoftware.com/ns#Baseline")
public class Baseline
extends AbstractResource
OSLC resource representing a Polarion baseline.
A baseline is a named snapshot of project artifacts at a specific revision. Baselines allow retrieving the state of work items and documents as they existed at a given point in time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the revision number on which this baseline is based.Returns the internal Polarion Subterra URI that uniquely identifies this baseline.getTitle()booleanReturns whether this baseline cannot be resolved, for example because its revision is no longer available.voidsetBaseRevision(String baseRevision) Sets the base revision of this baseline.voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetServiceProvider(URI serviceProvider) voidsetSubterraUri(String subterraUri) Sets the Subterra URI of this baseline.voidvoidsetUnresolvable(boolean unresolvable) Sets whether this baseline is unresolvable.Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Baseline
public Baseline()
-
-
Method Details
-
getIdentifier
@OslcDescription("A unique identifier for a resource. Assigned by the service provider when a resource is created. Not intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcReadOnly @OslcTitle("Identifier") public String getIdentifier() -
setIdentifier
-
getBaseRevision
@OslcPropertyDefinition("https://polarionsoftware.com/ns#baseRevision") public String getBaseRevision()Returns the revision number on which this baseline is based.- Returns:
- the base revision number as a string.
-
setBaseRevision
Sets the base revision of this baseline.- Parameters:
baseRevision- the revision number to set.
-
getDescription
@OslcDescription("Descriptive text (reference: Dublin Core) about resource represented as rich text in XHTML content.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcTitle("Description") @OslcValueType(XMLLiteral) public String getDescription() -
setDescription
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle() -
setTitle
-
getServiceProvider
@OslcDescription("The scope of a resource is a URI for the resource\'s OSLC Service Provider.") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcRange("http://open-services.net/ns/core#ServiceProvider") @OslcTitle("Service Provider") public URI getServiceProvider() -
setServiceProvider
-
isUnresolvable
@OslcPropertyDefinition("https://polarionsoftware.com/ns#unresolvable") public boolean isUnresolvable()Returns whether this baseline cannot be resolved, for example because its revision is no longer available.- Returns:
trueif the baseline is unresolvable,falseotherwise.
-
setUnresolvable
public void setUnresolvable(boolean unresolvable) Sets whether this baseline is unresolvable.- Parameters:
unresolvable-trueif the baseline cannot be resolved.
-
getSubterraUri
@OslcPropertyDefinition("https://polarionsoftware.com/ns#subterraUri") public String getSubterraUri()Returns the internal Polarion Subterra URI that uniquely identifies this baseline.- Returns:
- the Subterra URI of this baseline.
-
setSubterraUri
Sets the Subterra URI of this baseline.- Parameters:
subterraUri- the Subterra URI to set.
-