Package org.eclipse.lyo.oslc.domains.cm
Class ChangeRequest
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.cm.ChangeRequest
- All Implemented Interfaces:
IChangeRequest
,IExtendedResource
,IResource
- Direct Known Subclasses:
ChangeNotice
,Defect
,Enhancement
,Task
@OslcNamespace("http://open-services.net/ns/cm#")
@OslcName("ChangeRequest")
@OslcResourceShape(title="ChangeRequest Shape",
describes="http://open-services.net/ns/cm#ChangeRequest")
public class ChangeRequest
extends AbstractResource
implements IChangeRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAffectedByDefect
(Link affectedByDefect) void
addAffectsPlanItem
(Link affectsPlanItem) void
addAffectsRequirement
(Link affectsRequirement) void
addAuthorizer
(Link authorizer) void
addContributor
(Link contributor) void
addCreator
(Link creator) void
addImplementsRequirement
(Link implementsRequirement) void
addInstanceShape
(Link instanceShape) void
void
addPriority
(Link priority) void
addRelatedChangeRequest
(Link relatedChangeRequest) void
addServiceProvider
(Link serviceProvider) void
addSubject
(String subject) void
addTracksChangeSet
(Link tracksChangeSet) void
addTracksRequirement
(Link tracksRequirement) static ResourceShape
getState()
getTitle()
isClosed()
isFixed()
void
setAffectedByDefect
(Set<Link> affectedByDefect) void
setAffectsPlanItem
(Set<Link> affectsPlanItem) void
setAffectsRequirement
(Set<Link> affectsRequirement) void
setApproved
(Boolean approved) void
setAuthorizer
(Set<Link> authorizer) void
void
setCloseDate
(Date closeDate) void
setContributor
(Set<Link> contributor) void
setCreated
(Date created) void
setCreator
(Set<Link> creator) void
setDescription
(String description) void
setDiscussedBy
(Link discussedBy) void
void
setIdentifier
(String identifier) void
setImplementsRequirement
(Set<Link> implementsRequirement) void
setInProgress
(Boolean inProgress) void
setInstanceShape
(Set<Link> instanceShape) void
setModified
(Date modified) void
void
setPriority
(Set<Link> priority) void
setRelatedChangeRequest
(Set<Link> relatedChangeRequest) void
setReviewed
(Boolean reviewed) void
setServiceProvider
(Set<Link> serviceProvider) void
setShortTitle
(String shortTitle) void
void
void
setSubject
(Set<String> subject) void
void
setTracksChangeSet
(Set<Link> tracksChangeSet) void
setTracksRequirement
(Set<Link> tracksRequirement) void
setVerified
(Boolean verified) toString()
toString
(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
ChangeRequest
public ChangeRequest() -
ChangeRequest
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
addSubject
- Specified by:
addSubject
in interfaceIChangeRequest
-
addCreator
- Specified by:
addCreator
in interfaceIChangeRequest
-
addContributor
- Specified by:
addContributor
in interfaceIChangeRequest
-
addServiceProvider
- Specified by:
addServiceProvider
in interfaceIChangeRequest
-
addInstanceShape
- Specified by:
addInstanceShape
in interfaceIChangeRequest
-
addRelatedChangeRequest
- Specified by:
addRelatedChangeRequest
in interfaceIChangeRequest
-
addAffectsPlanItem
- Specified by:
addAffectsPlanItem
in interfaceIChangeRequest
-
addAffectedByDefect
- Specified by:
addAffectedByDefect
in interfaceIChangeRequest
-
addTracksRequirement
- Specified by:
addTracksRequirement
in interfaceIChangeRequest
-
addImplementsRequirement
- Specified by:
addImplementsRequirement
in interfaceIChangeRequest
-
addAffectsRequirement
- Specified by:
addAffectsRequirement
in interfaceIChangeRequest
-
addTracksChangeSet
- Specified by:
addTracksChangeSet
in interfaceIChangeRequest
-
addParent
- Specified by:
addParent
in interfaceIChangeRequest
-
addPriority
- Specified by:
addPriority
in interfaceIChangeRequest
-
addAuthorizer
- Specified by:
addAuthorizer
in interfaceIChangeRequest
-
getShortTitle
@OslcName("shortTitle") @OslcPropertyDefinition("http://open-services.net/ns/core#shortTitle") @OslcDescription("Shorter form of dcterms:title for the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getShortTitle()- Specified by:
getShortTitle
in interfaceIChangeRequest
-
getDescription
@OslcName("description") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcDescription("Descriptive text about resource represented as rich text in XHTML content. SHOULD include only content that is valid and suitable inside an XHTML <div> element.") @OslcOccurs(ZeroOrOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getDescription()- Specified by:
getDescription
in interfaceIChangeRequest
-
getTitle
@OslcName("title") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcDescription("Title of the resource represented as rich text in XHTML content. SHOULD include only content that is valid inside an XHTML <span> element.") @OslcOccurs(ExactlyOne) @OslcValueType(XMLLiteral) @OslcReadOnly(false) public String getTitle()- Specified by:
getTitle
in interfaceIChangeRequest
-
getIdentifier
@OslcName("identifier") @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcDescription("A unique identifier for a resource. Typically read-only and assigned by the service provider when a resource is created. Not typically intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getIdentifier()- Specified by:
getIdentifier
in interfaceIChangeRequest
-
getSubject
@OslcName("subject") @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcOccurs(ZeroOrMany) @OslcValueType(String) @OslcReadOnly(false) @OslcTitle("") public Set<String> getSubject()- Specified by:
getSubject
in interfaceIChangeRequest
-
getCreator
@OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcDescription("Creator or creators of the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getCreator()- Specified by:
getCreator
in interfaceIChangeRequest
-
getContributor
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcDescription("Contributor or contributors to the resource. It is likely that the target resource will be a foaf:Person but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcReadOnly(false) public Set<Link> getContributor()- Specified by:
getContributor
in interfaceIChangeRequest
-
getCreated
@OslcName("created") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcDescription("Timestamp of resource creation") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getCreated()- Specified by:
getCreated
in interfaceIChangeRequest
-
getModified
@OslcName("modified") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcDescription("Timestamp of latest resource modification") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getModified()- Specified by:
getModified
in interfaceIChangeRequest
-
getServiceProvider
@OslcName("serviceProvider") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcDescription("A link to the resource\'s OSLC Service Provider. There may be cases when the subject resource is available from a service provider that implements multiple domain specifications, which could result in multiple values for this property.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getServiceProvider()- Specified by:
getServiceProvider
in interfaceIChangeRequest
-
getInstanceShape
@OslcName("instanceShape") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcDescription("The URI of a Resource Shape that describes the possible properties, occurrence, value types, allowed values and labels. This shape information is useful in displaying the subject resource as well as guiding clients in performing modifications. Instance shapes may be specific to the authenticated user associated with the request that retrieved the resource, the current state of the resource and other factors and thus should not be cached.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getInstanceShape()- Specified by:
getInstanceShape
in interfaceIChangeRequest
-
getDiscussedBy
@OslcName("discussedBy") @OslcPropertyDefinition("http://open-services.net/ns/core#discussedBy") @OslcDescription("A series of notes and comments about this resource.") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/core#Discussion") @OslcReadOnly(false) public Link getDiscussedBy()- Specified by:
getDiscussedBy
in interfaceIChangeRequest
-
getCloseDate
@OslcName("closeDate") @OslcPropertyDefinition("http://open-services.net/ns/cm#closeDate") @OslcDescription("The date at which no further activity or work is intended to be conducted.") @OslcOccurs(ZeroOrOne) @OslcValueType(DateTime) @OslcReadOnly(false) public Date getCloseDate()- Specified by:
getCloseDate
in interfaceIChangeRequest
-
getStatus
@OslcName("status") @OslcPropertyDefinition("http://open-services.net/ns/cm#status") @OslcDescription("Used to indicate the status of the change request based on values defined by the service provider. Most often a read-only property. Some possible values may include: \'Submitted\', \'Done\', \'InProgress\', etc.") @OslcOccurs(ZeroOrOne) @OslcValueType(String) @OslcReadOnly(false) public String getStatus()- Specified by:
getStatus
in interfaceIChangeRequest
-
isClosed
@OslcName("closed") @OslcPropertyDefinition("http://open-services.net/ns/cm#closed") @OslcDescription("Whether or not the Change Request is completely done, no further fixes or fix verification is needed.") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isClosed()- Specified by:
isClosed
in interfaceIChangeRequest
-
isInProgress
@OslcName("inProgress") @OslcPropertyDefinition("http://open-services.net/ns/cm#inProgress") @OslcDescription("Whether or not the Change Request in a state indicating that active work is occurring. If oslc_cm:inprogress is true, then oslc_cm:fixed and oslc_cm:closed must also be false") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isInProgress()- Specified by:
isInProgress
in interfaceIChangeRequest
-
isFixed
@OslcName("fixed") @OslcPropertyDefinition("http://open-services.net/ns/cm#fixed") @OslcDescription("Whether or not the Change Request has been fixed.") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isFixed()- Specified by:
isFixed
in interfaceIChangeRequest
-
isApproved
@OslcName("approved") @OslcPropertyDefinition("http://open-services.net/ns/cm#approved") @OslcDescription("Whether or not the Change Request has been approved.") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isApproved()- Specified by:
isApproved
in interfaceIChangeRequest
-
isReviewed
@OslcName("reviewed") @OslcPropertyDefinition("http://open-services.net/ns/cm#reviewed") @OslcDescription("Whether or not the Change Request has been reviewed.") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isReviewed()- Specified by:
isReviewed
in interfaceIChangeRequest
-
isVerified
@OslcName("verified") @OslcPropertyDefinition("http://open-services.net/ns/cm#verified") @OslcDescription("Whether or not the resolution or fix of the Change Request has been verified.") @OslcOccurs(ZeroOrOne) @OslcValueType(Boolean) @OslcReadOnly(false) public Boolean isVerified()- Specified by:
isVerified
in interfaceIChangeRequest
-
getRelatedChangeRequest
@OslcName("relatedChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/cm#relatedChangeRequest") @OslcDescription("This relationship is loosely coupled and has no specific meaning. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getRelatedChangeRequest()- Specified by:
getRelatedChangeRequest
in interfaceIChangeRequest
-
getAffectsPlanItem
@OslcName("affectsPlanItem") @OslcPropertyDefinition("http://open-services.net/ns/cm#affectsPlanItem") @OslcDescription("Change request affects a plan item. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcReadOnly(false) public Set<Link> getAffectsPlanItem()- Specified by:
getAffectsPlanItem
in interfaceIChangeRequest
-
getAffectedByDefect
@OslcName("affectedByDefect") @OslcPropertyDefinition("http://open-services.net/ns/cm#affectedByDefect") @OslcDescription("Change request is affected by a reported defect. It is likely that the target resource will be an oslc_cm:ChangeRequest but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/cm#Defect") @OslcReadOnly(false) public Set<Link> getAffectedByDefect()- Specified by:
getAffectedByDefect
in interfaceIChangeRequest
-
getTracksRequirement
@OslcName("tracksRequirement") @OslcPropertyDefinition("http://open-services.net/ns/cm#tracksRequirement") @OslcDescription("Tracks the associated Requirement or Requirement ChangeSet resources. It is likely that the target resource will be an oslc_rm:Requirement but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/rm#Requirement") @OslcReadOnly(false) public Set<Link> getTracksRequirement()- Specified by:
getTracksRequirement
in interfaceIChangeRequest
-
getImplementsRequirement
@OslcName("implementsRequirement") @OslcPropertyDefinition("http://open-services.net/ns/cm#implementsRequirement") @OslcDescription("Implements associated Requirement. It is likely that the target resource will be an oslc_rm:Requirement but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/rm#Requirement") @OslcReadOnly(false) public Set<Link> getImplementsRequirement()- Specified by:
getImplementsRequirement
in interfaceIChangeRequest
-
getAffectsRequirement
@OslcName("affectsRequirement") @OslcPropertyDefinition("http://open-services.net/ns/cm#affectsRequirement") @OslcDescription("Change request affecting a Requirement. It is likely that the target resource will be an oslc_rm:Requirement but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/rm#Requirement") @OslcReadOnly(false) public Set<Link> getAffectsRequirement()- Specified by:
getAffectsRequirement
in interfaceIChangeRequest
-
getTracksChangeSet
@OslcName("tracksChangeSet") @OslcPropertyDefinition("http://open-services.net/ns/cm#tracksChangeSet") @OslcDescription("Tracks SCM change set resource. It is likely that the target resource will be an oslc_scm:ChangeSet but that is not necessarily the case.") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRepresentation(Reference) @OslcRange("http://open-services.net/ns/config#ChangeSet") @OslcReadOnly(false) public Set<Link> getTracksChangeSet()- Specified by:
getTracksChangeSet
in interfaceIChangeRequest
-
getParent
@OslcName("parent") @OslcPropertyDefinition("http://open-services.net/ns/cm#parent") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) public Set<Link> getParent()- Specified by:
getParent
in interfaceIChangeRequest
-
getPriority
@OslcName("priority") @OslcPropertyDefinition("http://open-services.net/ns/cm#priority") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/cm#Priority") @OslcReadOnly(false) public Set<Link> getPriority()- Specified by:
getPriority
in interfaceIChangeRequest
-
getState
@OslcName("state") @OslcPropertyDefinition("http://open-services.net/ns/cm#state") @OslcOccurs(ZeroOrOne) @OslcValueType(Resource) @OslcRange("http://open-services.net/ns/cm#State") @OslcReadOnly(false) public Link getState()- Specified by:
getState
in interfaceIChangeRequest
-
getAuthorizer
@OslcName("authorizer") @OslcPropertyDefinition("http://open-services.net/ns/cm#authorizer") @OslcOccurs(ZeroOrMany) @OslcValueType(Resource) @OslcRange("http://xmlns.com/foaf/0.1/Agent") @OslcReadOnly(false) public Set<Link> getAuthorizer()- Specified by:
getAuthorizer
in interfaceIChangeRequest
-
setShortTitle
- Specified by:
setShortTitle
in interfaceIChangeRequest
-
setDescription
- Specified by:
setDescription
in interfaceIChangeRequest
-
setTitle
- Specified by:
setTitle
in interfaceIChangeRequest
-
setIdentifier
- Specified by:
setIdentifier
in interfaceIChangeRequest
-
setSubject
- Specified by:
setSubject
in interfaceIChangeRequest
-
setCreator
- Specified by:
setCreator
in interfaceIChangeRequest
-
setContributor
- Specified by:
setContributor
in interfaceIChangeRequest
-
setCreated
- Specified by:
setCreated
in interfaceIChangeRequest
-
setModified
- Specified by:
setModified
in interfaceIChangeRequest
-
setServiceProvider
- Specified by:
setServiceProvider
in interfaceIChangeRequest
-
setInstanceShape
- Specified by:
setInstanceShape
in interfaceIChangeRequest
-
setDiscussedBy
- Specified by:
setDiscussedBy
in interfaceIChangeRequest
-
setCloseDate
- Specified by:
setCloseDate
in interfaceIChangeRequest
-
setStatus
- Specified by:
setStatus
in interfaceIChangeRequest
-
setClosed
- Specified by:
setClosed
in interfaceIChangeRequest
-
setInProgress
- Specified by:
setInProgress
in interfaceIChangeRequest
-
setFixed
- Specified by:
setFixed
in interfaceIChangeRequest
-
setApproved
- Specified by:
setApproved
in interfaceIChangeRequest
-
setReviewed
- Specified by:
setReviewed
in interfaceIChangeRequest
-
setVerified
- Specified by:
setVerified
in interfaceIChangeRequest
-
setRelatedChangeRequest
- Specified by:
setRelatedChangeRequest
in interfaceIChangeRequest
-
setAffectsPlanItem
- Specified by:
setAffectsPlanItem
in interfaceIChangeRequest
-
setAffectedByDefect
- Specified by:
setAffectedByDefect
in interfaceIChangeRequest
-
setTracksRequirement
- Specified by:
setTracksRequirement
in interfaceIChangeRequest
-
setImplementsRequirement
- Specified by:
setImplementsRequirement
in interfaceIChangeRequest
-
setAffectsRequirement
- Specified by:
setAffectsRequirement
in interfaceIChangeRequest
-
setTracksChangeSet
- Specified by:
setTracksChangeSet
in interfaceIChangeRequest
-
setParent
- Specified by:
setParent
in interfaceIChangeRequest
-
setPriority
- Specified by:
setPriority
in interfaceIChangeRequest
-
setState
- Specified by:
setState
in interfaceIChangeRequest
-
setAuthorizer
- Specified by:
setAuthorizer
in interfaceIChangeRequest
-