Package com.sodius.oslc.domain.cm.model
Class ChangeRequest
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.domain.cm.model.ChangeRequest
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://open-services.net/ns/cm#")
@OslcResourceShape(title="Change Request Resource Shape",
describes="http://open-services.net/ns/cm#ChangeRequest")
public class ChangeRequest
extends AbstractResource
The Change Request resource is a single definition used to define many kinds of change requests such as:
defect, enhancement, task, bug, activity, etc.
See the OSLC Change Management specification for details:
https://open-services.net/specifications/change-management-2.0/
- Since:
- 1.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAffectedByDefect(Link affectedByDefect) voidaddAffectsPlanItem(Link affectsPlanItem) voidaddAffectsRequirement(Link affectsRequirement) voidaddAffectsTestResult(Link affectsTestResult) voidaddBlocksTestExecutionRecord(Link blocksTestExecutionRecord) voidaddContributor(URI contributor) voidaddCreator(URI creator) voidaddDctermsType(String dctermsType) voidaddImplementsRequirement(Link implementsRequirement) voidaddRelatedArchitectureElement(Link relatedArchitectureElement) voidaddRelatedChangeRequest(Link relatedChangeRequest) voidaddRelatedTestCase(Link relatedTestCase) voidaddRelatedTestExecutionRecord(Link relatedTestExecutionRecord) voidaddRelatedTestPlan(Link relatedTestPlan) voidaddRelatedTestScript(Link relatedTestScript) voidaddSubject(String subject) voidaddTestedByTestCase(Link testedByTestCase) voidaddTrackedWorkItem(Link trackedWorkItem) Adds a tracked work item.voidaddTracksChangeSet(Link tracksChangeSet) voidaddTracksRequirement(Link tracksRequirement) voidaddTracksWorkItem(Link tracksWorkItem) Adds a tracking work item.Link[]Link[]Link[]Link[]Link[]URI[]URI[]String[]Link[]Link[]Link[]Link[]Link[]Link[]Link[]Returns a short identifier for the resource, such as a number.String[]Link[]getTitle()Link[]Returns the list of tracked work items.Link[]Link[]Link[]Returns the list of tracking work items.isClosed()isFixed()voidsetAffectedByDefects(Link[] affectedByDefects) voidsetAffectsPlanItems(Link[] affectsPlanItems) voidsetAffectsRequirements(Link[] affectsRequirements) voidsetAffectsTestResults(Link[] affectsTestResults) voidsetApproved(Boolean approved) voidsetBlocksTestExecutionRecords(Link[] blocksTestExecutionRecords) voidvoidsetCloseDate(Date closeDate) voidsetContributors(URI[] contributors) voidsetCreated(Date created) voidsetCreators(URI[] creators) voidsetDctermsTypes(String[] dctermsTypes) voidsetDescription(String description) voidsetDiscussedBy(URI discussedBy) voidvoidsetIdentifier(String identifier) voidsetImplementsRequirements(Link[] implementsRequirements) voidsetInProgress(Boolean inProgress) voidsetInstanceShape(URI instanceShape) voidsetModified(Date modified) voidsetRelatedArchitectureElements(Link[] relatedArchitectureElements) voidsetRelatedChangeRequests(Link[] relatedChangeRequests) voidsetRelatedTestCases(Link[] relatedTestCases) voidsetRelatedTestExecutionRecords(Link[] relatedTestExecutionRecords) voidsetRelatedTestPlans(Link[] relatedTestPlans) voidsetRelatedTestScripts(Link[] relatedTestScripts) voidsetReviewed(Boolean reviewed) voidsetServiceProvider(URI serviceProvider) voidsetShortId(String shortId) Sets a short identifier for the resource, such as a number.voidsetShortTitle(String shortTitle) voidvoidsetSubjects(String[] subjects) voidsetTestedByTestCases(Link[] testedByTestCases) voidvoidsetTrackedWorkItems(Link[] trackedWorkItems) Changes the list of tracked work items.voidsetTracksChangeSets(Link[] tracksChangeSets) voidsetTracksRequirements(Link[] tracksRequirements) voidsetTracksWorkItems(Link[] tracksWorkItems) Changes the list of tracking work items.voidsetVerified(Boolean verified) 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
-
addAffectedByDefect
-
addAffectsPlanItem
-
addAffectsRequirement
-
addAffectsTestResult
-
addBlocksTestExecutionRecord
-
addContributor
-
addCreator
-
addDctermsType
-
addImplementsRequirement
-
addRelatedChangeRequest
-
addRelatedTestCase
-
addRelatedTestExecutionRecord
-
addRelatedTestPlan
-
addRelatedTestScript
-
addSubject
-
addTestedByTestCase
-
addTrackedWorkItem
Adds a tracked work item.- Parameters:
trackedWorkItem- the work item to add.- Since:
- 1.9.0
-
addTracksChangeSet
-
addTracksRequirement
-
addTracksWorkItem
Adds a tracking work item.- Parameters:
tracksWorkItem- the tracking work item.- Since:
- 1.9.0
-
addRelatedArchitectureElement
-
getAffectedByDefects
@OslcDescription("Change request is affected by a reported defect.") @OslcName("affectedByDefect") @OslcPropertyDefinition("http://open-services.net/ns/cm#affectedByDefect") @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) @OslcTitle("Affected By Defects") public Link[] getAffectedByDefects() -
getAffectsPlanItems
@OslcDescription("Change request affects a plan item. ") @OslcName("affectsPlanItem") @OslcPropertyDefinition("http://open-services.net/ns/cm#affectsPlanItem") @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) @OslcTitle("Affects Plan Items") public Link[] getAffectsPlanItems() -
getAffectsRequirements
@OslcDescription("Change request affecting a Requirement.") @OslcName("affectsRequirement") @OslcPropertyDefinition("http://open-services.net/ns/cm#affectsRequirement") @OslcRange("http://open-services.net/ns/rm#Requirement") @OslcReadOnly(false) @OslcTitle("Affects Requirements") public Link[] getAffectsRequirements() -
getAffectsTestResults
@OslcDescription("Associated QM resource that is affected by this Change Request.") @OslcName("affectsTestResult") @OslcPropertyDefinition("http://open-services.net/ns/cm#affectsTestResult") @OslcRange("http://open-services.net/ns/qm#TestResult") @OslcReadOnly(false) @OslcTitle("Affects Test Results") public Link[] getAffectsTestResults() -
getBlocksTestExecutionRecords
@OslcDescription("Associated QM resource that is blocked by this Change Request.") @OslcName("blocksTestExecutionRecord") @OslcPropertyDefinition("http://open-services.net/ns/cm#blocksTestExecutionRecord") @OslcRange("http://open-services.net/ns/qm#TestExecutionRecord") @OslcReadOnly(false) @OslcTitle("Blocks Test Execution Records") public Link[] getBlocksTestExecutionRecords() -
getCloseDate
@OslcDescription("The date at which no further activity or work is intended to be conducted. ") @OslcPropertyDefinition("http://open-services.net/ns/cm#closeDate") @OslcReadOnly @OslcTitle("Close Date") public Date getCloseDate() -
getContributors
@OslcDescription("The person(s) who are responsible for the work needed to complete the change request.") @OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Contributors") public URI[] getContributors() -
getCreated
@OslcDescription("Timestamp of resource creation.") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcReadOnly @OslcTitle("Created") public Date getCreated() -
getCreators
@OslcDescription("Creator or creators of resource.") @OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Creators") public URI[] getCreators() -
getDctermsTypes
@OslcDescription("A short string representation for the type, example \'Defect\'.") @OslcName("type") @OslcPropertyDefinition("http://purl.org/dc/terms/type") @OslcTitle("Types") public String[] getDctermsTypes() -
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() -
getDiscussedBy
@OslcDescription("A series of notes and comments about this change request.") @OslcPropertyDefinition("http://open-services.net/ns/core#discussedBy") @OslcRange("http://open-services.net/ns/core#Discussion") @OslcTitle("Discussed By") public URI getDiscussedBy() -
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/identifier") @OslcReadOnly @OslcTitle("Identifier") public String getIdentifier() -
getShortId
@OslcDescription("A shorter and human-readable form of dcterms:identifier for the resource, such as a number.") @OslcOccurs(ZeroOrOne) @OslcPropertyDefinition("http://open-services.net/ns/core#shortId") @OslcReadOnly @OslcTitle("Id") @OslcValueType(String) public String getShortId()Returns a short identifier for the resource, such as a number.- Returns:
- a short identifier.
- Since:
- 1.10.0
-
getImplementsRequirements
@OslcDescription("Implements associated Requirement.") @OslcName("implementsRequirement") @OslcPropertyDefinition("http://open-services.net/ns/cm#implementsRequirement") @OslcRange("http://open-services.net/ns/rm#Requirement") @OslcReadOnly(false) @OslcTitle("Implements Requirements") public Link[] getImplementsRequirements() -
getInstanceShape
@OslcDescription("Resource Shape that provides hints as to resource property value-types and allowed values. ") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcRange("http://open-services.net/ns/core#ResourceShape") @OslcTitle("Instance Shape") public URI getInstanceShape() -
getModified
@OslcDescription("Timestamp of latest resource modification.") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcReadOnly @OslcTitle("Modified") public Date getModified() -
getRelatedChangeRequests
@OslcDescription("This relationship is loosely coupled and has no specific meaning.") @OslcName("relatedChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/cm#relatedChangeRequest") @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) @OslcTitle("Related Change Requests") public Link[] getRelatedChangeRequests() -
getRelatedTestCases
@OslcDescription("Related QM test case resource.") @OslcName("relatedTestCase") @OslcPropertyDefinition("http://open-services.net/ns/cm#relatedTestCase") @OslcRange("http://open-services.net/ns/qm#TestCase") @OslcReadOnly(false) @OslcTitle("Related Test Cases") public Link[] getRelatedTestCases() -
getRelatedTestExecutionRecords
@OslcDescription("Related to a QM test execution resource.") @OslcName("relatedTestExecutionRecord") @OslcPropertyDefinition("http://open-services.net/ns/cm#relatedTestExecutionRecord") @OslcRange("http://open-services.net/ns/qm#TestExecutionRecord") @OslcReadOnly(false) @OslcTitle("Related Test Execution Records") public Link[] getRelatedTestExecutionRecords() -
getRelatedTestPlans
@OslcDescription("Related QM test plan resource.") @OslcName("relatedTestPlan") @OslcPropertyDefinition("http://open-services.net/ns/cm#relatedTestPlan") @OslcRange("http://open-services.net/ns/qm#TestPlan") @OslcReadOnly(false) @OslcTitle("Related Test Plans") public Link[] getRelatedTestPlans() -
getRelatedTestScripts
@OslcDescription("Related QM test script resource.") @OslcName("relatedTestScript") @OslcPropertyDefinition("http://open-services.net/ns/cm#relatedTestScript") @OslcRange("http://open-services.net/ns/qm#TestScript") @OslcReadOnly(false) @OslcTitle("Related Test Scripts") public Link[] getRelatedTestScripts() -
getRelatedArchitectureElements
@OslcDescription("Related CM architecture element.") @OslcName("relatedArchitectureElement") @OslcPropertyDefinition("http://open-services.net/ns/cm#relatedArchitectureElement") @OslcRange("http://open-services.net/ns/am#Resource") @OslcReadOnly(false) @OslcTitle("Related Architecture Elements") public Link[] getRelatedArchitectureElements() -
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() -
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") @OslcValueType(XMLLiteral) public String getShortTitle() -
getStatus
@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.") @OslcPropertyDefinition("http://open-services.net/ns/cm#status") @OslcTitle("Status") public String getStatus() -
getSubjects
@OslcDescription("Tag or keyword for a resource. Each occurrence of a dcterms:subject property denotes an additional tag for the resource.") @OslcName("subject") @OslcPropertyDefinition("http://purl.org/dc/terms/subject") @OslcReadOnly(false) @OslcTitle("Subjects") public String[] getSubjects() -
getTestedByTestCases
@OslcDescription("Test case by which this change request is tested.") @OslcName("testedByTestCase") @OslcPropertyDefinition("http://open-services.net/ns/cm#testedByTestCase") @OslcRange("http://open-services.net/ns/qm#TestCase") @OslcReadOnly(false) @OslcTitle("Tested by Test Cases") public Link[] getTestedByTestCases() -
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() -
getTrackedWorkItems
@OslcDescription("Contributes to the associated plan.") @OslcName("trackedWorkItem") @OslcPropertyDefinition("http://open-services.net/ns/cm#trackedWorkItem") @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) @OslcTitle("Contributes To") public Link[] getTrackedWorkItems()Returns the list of tracked work items.- Returns:
- the list of tracked work items.
- Since:
- 1.9.0
-
getTracksChangeSets
@OslcDescription("Tracks SCM change set resource.") @OslcName("tracksChangeSet") @OslcPropertyDefinition("http://open-services.net/ns/cm#tracksChangeSet") @OslcRange({"http://open-services.net/ns/config#ChangeSet","http://open-services.net/ns/scm#ChangeSet"}) @OslcReadOnly(false) @OslcTitle("Tracks Change Sets") public Link[] getTracksChangeSets() -
getTracksRequirements
@OslcDescription("Tracks the associated Requirement or Requirement ChangeSet resources.") @OslcName("tracksRequirement") @OslcPropertyDefinition("http://open-services.net/ns/cm#tracksRequirement") @OslcRange("http://open-services.net/ns/rm#Requirement") @OslcReadOnly(false) @OslcTitle("Tracks Requirements") public Link[] getTracksRequirements() -
getTracksWorkItems
@OslcDescription("Tracks the associated plan items.") @OslcName("tracksWorkItem") @OslcPropertyDefinition("http://open-services.net/ns/cm#tracksWorkItem") @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) @OslcTitle("Tracks Work Items") public Link[] getTracksWorkItems()Returns the list of tracking work items.- Returns:
- the list of tracking work items.
- Since:
- 1.9.0
-
isApproved
@OslcDescription("Whether or not the Change Request has been approved.") @OslcPropertyDefinition("http://open-services.net/ns/cm#approved") @OslcReadOnly @OslcTitle("Approved") public Boolean isApproved() -
isClosed
@OslcDescription("Whether or not the Change Request is completely done, no further fixes or fix verification is needed.") @OslcPropertyDefinition("http://open-services.net/ns/cm#closed") @OslcReadOnly @OslcTitle("Closed") public Boolean isClosed() -
isFixed
@OslcDescription("Whether or not the Change Request has been fixed.") @OslcPropertyDefinition("http://open-services.net/ns/cm#fixed") @OslcReadOnly @OslcTitle("Fixed") public Boolean isFixed() -
isInProgress
@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.") @OslcName("inprogress") @OslcPropertyDefinition("http://open-services.net/ns/cm#inprogress") @OslcReadOnly @OslcTitle("In Progress") public Boolean isInProgress() -
isReviewed
@OslcDescription("Whether or not the Change Request has been reviewed.") @OslcPropertyDefinition("http://open-services.net/ns/cm#reviewed") @OslcReadOnly @OslcTitle("Reviewed") public Boolean isReviewed() -
isVerified
@OslcDescription("Whether or not the resolution or fix of the Change Request has been verified.") @OslcPropertyDefinition("http://open-services.net/ns/cm#verified") @OslcReadOnly @OslcTitle("Verified") public Boolean isVerified() -
setAffectedByDefects
-
setAffectsPlanItems
-
setAffectsRequirements
-
setAffectsTestResults
-
setApproved
-
setBlocksTestExecutionRecords
-
setClosed
-
setCloseDate
-
setContributors
-
setCreated
-
setCreators
-
setDctermsTypes
-
setDescription
-
setDiscussedBy
-
setFixed
-
setIdentifier
-
setShortId
Sets a short identifier for the resource, such as a number.- Parameters:
shortId- a short string identifier of the resource.- Since:
- 1.10.0
-
setImplementsRequirements
-
setInProgress
-
setInstanceShape
-
setModified
-
setRelatedChangeRequests
-
setRelatedTestCases
-
setRelatedTestExecutionRecords
-
setRelatedTestPlans
-
setRelatedTestScripts
-
setRelatedArchitectureElements
-
setReviewed
-
setServiceProvider
-
setShortTitle
-
setStatus
-
setSubjects
-
setTestedByTestCases
-
setTitle
-
setTrackedWorkItems
Changes the list of tracked work items.- Parameters:
trackedWorkItems- the new list of tracked work items.- Since:
- 1.9.0
-
setTracksChangeSets
-
setTracksRequirements
-
setTracksWorkItems
Changes the list of tracking work items.- Parameters:
tracksWorkItems- the list of tracking work items.- Since:
- 1.9.0
-
setVerified
-