Class Configuration
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- com.sodius.oslc.domain.config.model.Configuration
-
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/config#") @OslcResourceShape(title="Configuration Resource Shape", describes="http://open-services.net/ns/config#Configuration") public class Configuration extends AbstractResource
A configuration identifies a set of versions of resources in a component.See the OSLC Configuration Management specification for details:
https://tools.oasis-open.org/version-control/browse/wsvn/oslc-core/trunk/specs/config/oslc-config-mgt.html- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description Configuration()
-
Method Summary
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
getContributors
@OslcDescription("The person(s) who are responsible for this resource.") @OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcOccurs(ZeroOrMany) @OslcTitle("Contributor") @OslcReadOnly(true) public URI[] getContributors()
-
setContributors
public void setContributors(URI[] contributors)
-
addContributor
public void addContributor(URI contributor)
-
getCreated
@OslcDescription("Timestamp of resource creation.") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcOccurs(ZeroOrOne) @OslcReadOnly(true) @OslcValueType(DateTime) @OslcTitle("Created") public Date getCreated()
-
setCreated
public void setCreated(Date created)
-
getCreators
@OslcDescription("Creator or creators of resource.") @OslcName("creator") @OslcReadOnly(true) @OslcOccurs(ZeroOrMany) @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Creators") public URI[] getCreators()
-
setCreators
public void setCreators(URI[] creators)
-
addCreator
public void addCreator(URI creator)
-
getDescription
@OslcDescription("Descriptive text (reference: Dublin Core) about resource represented as rich text in XHTML content.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcReadOnly(false) @OslcTitle("Description") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) public String getDescription()
-
setDescription
public void setDescription(String description)
-
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(ZeroOrOne) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcReadOnly(true) @OslcValueType(String) @OslcTitle("Identifier") public String getIdentifier()
-
setIdentifier
public void setIdentifier(String identifier)
-
getModified
@OslcDescription("Timestamp of latest resource modification.") @OslcOccurs(ZeroOrOne) @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcReadOnly(true) @OslcValueType(DateTime) @OslcTitle("Modified") public Date getModified()
-
setModified
public void setModified(Date modified)
-
getSubjects
@OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcName("subject") @OslcOccurs(ZeroOrMany) @OslcReadOnly(false) @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcTitle("Subject") @OslcValueType(String) public String[] getSubjects()
-
setSubjects
public void setSubjects(String[] subjects)
-
addSubject
public void addSubject(String subject)
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ZeroOrOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcReadOnly(false) @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle()
-
setTitle
public void setTitle(String title)
-
getAcceptedBy
@OslcDescription("A type of configuration that accepts this configuration as a contribution.") @OslcName("acceptedBy") @OslcReadOnly(true) @OslcOccurs(ZeroOrMany) @OslcPropertyDefinition("http://open-services.net/ns/config#acceptedBy") @OslcRange("http://www.w3.org/2000/01/rdf-schema#Class") @OslcTitle("AcceptedBy") public URI[] getAcceptedBy()
-
setAcceptedBy
public void setAcceptedBy(URI[] acceptedBy)
-
addAcceptedBy
public void addAcceptedBy(URI acceptedBy)
-
getBranch
@OslcDescription("An indicator of the intended purpose of the baseline.") @OslcPropertyDefinition("http://open-services.net/ns/config#branch") @OslcTitle("Branch") @OslcName("branch") @OslcOccurs(ZeroOrOne) @OslcReadOnly(true) @OslcValueType(Resource) public URI getBranch()
-
setBranch
public void setBranch(URI branch)
-
getComponent
@OslcDescription("The component of which this is a configuration, and from which the configuration selects versions of resources in the component.") @OslcPropertyDefinition("http://open-services.net/ns/config#component") @OslcTitle("Component") @OslcName("component") @OslcOccurs(ExactlyOne) @OslcReadOnly(true) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/config#Component") public URI getComponent()
-
setComponent
public void setComponent(URI component)
-
getContributions
@OslcDescription("A contribution to this baseline.") @OslcPropertyDefinition("http://open-services.net/ns/config#contribution") @OslcTitle("Contribution") @OslcName("contribution") @OslcOccurs(ZeroOrMany) @OslcReadOnly(true) @OslcValueType(LocalResource) @OslcRepresentation(Inline) @OslcRange("http://open-services.net/ns/config#Contribution") public Contribution[] getContributions()
-
setContributions
public void setContributions(Contribution[] contributions)
-
addContribution
public void addContribution(Contribution contribution)
-
getSelectionsArray
@OslcDescription("A reference to the resource identifying the versions of the resources (configuration items) in the configuration.") @OslcPropertyDefinition("http://open-services.net/ns/config#selections") @OslcTitle("Selections") @OslcName("selections") @OslcOccurs(ZeroOrMany) @OslcReadOnly(true) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange({"http://open-services.net/ns/config#Selections","http://open-services.net/ns/config#ChangeSetSelections"}) public URI[] getSelectionsArray()
- Returns:
- the selections.
- Since:
- 1.2.0
-
setSelectionsArray
public void setSelectionsArray(URI[] selections)
- Parameters:
selections
- the new selections.- Since:
- 1.2.0
-
getSelections
public URI getSelections()
-
setSelections
public void setSelections(URI selections)
-
getInstanceShape
@OslcDescription("Resource Shape that provides hints as to resource property value-types and allowed values.") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcOccurs(ZeroOrOne) @OslcRange("http://open-services.net/ns/core#ResourceShape") @OslcReadOnly(true) @OslcValueType(Resource) @OslcTitle("Instance Shape") public URI getInstanceShape()
-
setInstanceShape
public void setInstanceShape(URI instanceShape)
-
getModifiedBy
@OslcDescription("The entity that most recently modified the subject resource.") @OslcName("modifiedBy") @OslcPropertyDefinition("http://open-services.net/ns/core#modifiedBy") @OslcReadOnly(true) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("ModifiedBy") public URI[] getModifiedBy()
-
setModifiedBy
public void setModifiedBy(URI[] modifiedBy)
-
addModifiedBy
public void addModifiedBy(URI modifiedBy)
-
getServiceProviders
@OslcDescription("The scope of a resource is a URI for the resource\'s OSLC Service Provider.") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcName("serviceProvider") @OslcRange("http://open-services.net/ns/core#ServiceProvider") @OslcReadOnly(true) @OslcOccurs(ZeroOrMany) @OslcTitle("Service Provider") @OslcValueType(Resource) public URI[] getServiceProviders()
Gets this Configuration's Service Providers.- Returns:
- this Configuration's Service Providers
- Since:
- 1.9.0
-
setServiceProviders
public void setServiceProviders(URI[] serviceProviders)
Sets this Configuration's Service Providers.- Parameters:
serviceProviders
- this Configuration's Service Providers- Since:
- 1.9.0
-
addServiceProvider
public void addServiceProvider(URI serviceProvider)
Adds a Service Provider to this Configuration.- Parameters:
serviceProvider
- the Service Provider to add- Since:
- 1.9.0
-
getServiceProvider
@Deprecated(since="1.9.0", forRemoval=false) public URI getServiceProvider()
Deprecated.Deprecated: usegetServiceProviders()
instead.- Returns:
- this Configuration's Service Provider
-
setServiceProvider
@Deprecated(since="1.9.0", forRemoval=false) public void setServiceProvider(URI serviceProvider)
Deprecated.Deprecated: usesetServiceProviders(URI[])
instead.- Parameters:
serviceProvider
- this Configuration's Service Provider
-
getShortId
@OslcDescription("Short id identifying a resource.") @OslcPropertyDefinition("http://open-services.net/ns/core#shortId") @OslcTitle("Short ID") @OslcOccurs(ZeroOrOne) @OslcValueType(String) public String getShortId()
-
setShortId
public void setShortId(String shortId)
-
getShortTitle
@OslcDescription("Short name identifying a resource, often used as an abbreviated identifier for presentation to end-users.") @OslcPropertyDefinition("http://open-services.net/ns/core#shortTitle") @OslcTitle("Short Title") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) public String getShortTitle()
-
setShortTitle
public void setShortTitle(String shortTitle)
-
isArchived
@OslcDescription("Determine if the configuration is Archived") @OslcPropertyDefinition("http://open-services.net/ns/core#archived") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcTitle("Archived") public boolean isArchived()
- Returns:
- The archived status of the Configuration
- Since:
- 1.2.0
-
setArchived
public void setArchived(boolean archived)
- Parameters:
archived
- The new archived value for that configuration- Since:
- 1.2.0
-
-