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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAcceptedBy(URI acceptedBy) voidaddContribution(Contribution contribution) voidaddContributor(URI contributor) voidaddCreator(URI creator) voidaddModifiedBy(URI modifiedBy) voidaddServiceProvider(URI serviceProvider) Adds a Service Provider to this Configuration.voidaddSubject(String subject) URI[]URI[]URI[]URI[]URI[]Deprecated.URI[]Gets this Configuration's Service Providers.String[]getTitle()booleanvoidsetAcceptedBy(URI[] acceptedBy) voidsetArchived(boolean archived) voidvoidsetComponent(URI component) voidsetContributions(Contribution[] contributions) voidsetContributors(URI[] contributors) voidsetCreated(Date created) voidsetCreators(URI[] creators) voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetInstanceShape(URI instanceShape) voidsetModified(Date modified) voidsetModifiedBy(URI[] modifiedBy) voidsetSelections(URI selections) voidsetSelectionsArray(URI[] selections) voidsetServiceProvider(URI serviceProvider) Deprecated.voidsetServiceProviders(URI[] serviceProviders) Sets this Configuration's Service Providers.voidsetShortId(String shortId) voidsetShortTitle(String shortTitle) voidsetSubjects(String[] subjects) voidMethods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
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
-
addContributor
-
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
-
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
-
addCreator
-
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
-
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
-
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
-
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
-
addSubject
-
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
-
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
-
addAcceptedBy
-
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
-
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
-
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
-
addContribution
-
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
- Parameters:
selections- the new selections.- Since:
- 1.2.0
-
getSelections
-
setSelections
-
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
-
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
-
addModifiedBy
-
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
Sets this Configuration's Service Providers.- Parameters:
serviceProviders- this Configuration's Service Providers- Since:
- 1.9.0
-
addServiceProvider
Adds a Service Provider to this Configuration.- Parameters:
serviceProvider- the Service Provider to add- Since:
- 1.9.0
-
getServiceProvider
Deprecated.Deprecated: usegetServiceProviders()instead.- Returns:
- this Configuration's Service Provider
-
setServiceProvider
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
-
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
-
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
-
getServiceProviders()