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 Constructor Description ChangeRequest()
ChangeRequest(URI about)
-
Method Summary
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
ChangeRequest
public ChangeRequest()
-
ChangeRequest
public ChangeRequest(URI about)
-
-
Method Detail
-
addAffectedByDefect
public void addAffectedByDefect(Link affectedByDefect)
-
addAffectsPlanItem
public void addAffectsPlanItem(Link affectsPlanItem)
-
addAffectsRequirement
public void addAffectsRequirement(Link affectsRequirement)
-
addAffectsTestResult
public void addAffectsTestResult(Link affectsTestResult)
-
addBlocksTestExecutionRecord
public void addBlocksTestExecutionRecord(Link blocksTestExecutionRecord)
-
addContributor
public void addContributor(URI contributor)
-
addCreator
public void addCreator(URI creator)
-
addDctermsType
public void addDctermsType(String dctermsType)
-
addImplementsRequirement
public void addImplementsRequirement(Link implementsRequirement)
-
addRelatedChangeRequest
public void addRelatedChangeRequest(Link relatedChangeRequest)
-
addRelatedTestCase
public void addRelatedTestCase(Link relatedTestCase)
-
addRelatedTestExecutionRecord
public void addRelatedTestExecutionRecord(Link relatedTestExecutionRecord)
-
addRelatedTestPlan
public void addRelatedTestPlan(Link relatedTestPlan)
-
addRelatedTestScript
public void addRelatedTestScript(Link relatedTestScript)
-
addSubject
public void addSubject(String subject)
-
addTestedByTestCase
public void addTestedByTestCase(Link testedByTestCase)
-
addTrackedWorkItem
public void addTrackedWorkItem(Link trackedWorkItem)
Adds a tracked work item.- Parameters:
trackedWorkItem
- the work item to add.- Since:
- 1.9.0
-
addTracksChangeSet
public void addTracksChangeSet(Link tracksChangeSet)
-
addTracksRequirement
public void addTracksRequirement(Link tracksRequirement)
-
addTracksWorkItem
public void addTracksWorkItem(Link tracksWorkItem)
Adds a tracking work item.- Parameters:
tracksWorkItem
- the tracking work item.- Since:
- 1.9.0
-
addRelatedArchitectureElement
public void addRelatedArchitectureElement(Link relatedArchitectureElement)
-
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
public void setAffectedByDefects(Link[] affectedByDefects)
-
setAffectsPlanItems
public void setAffectsPlanItems(Link[] affectsPlanItems)
-
setAffectsRequirements
public void setAffectsRequirements(Link[] affectsRequirements)
-
setAffectsTestResults
public void setAffectsTestResults(Link[] affectsTestResults)
-
setApproved
public void setApproved(Boolean approved)
-
setBlocksTestExecutionRecords
public void setBlocksTestExecutionRecords(Link[] blocksTestExecutionRecords)
-
setClosed
public void setClosed(Boolean closed)
-
setCloseDate
public void setCloseDate(Date closeDate)
-
setContributors
public void setContributors(URI[] contributors)
-
setCreated
public void setCreated(Date created)
-
setCreators
public void setCreators(URI[] creators)
-
setDctermsTypes
public void setDctermsTypes(String[] dctermsTypes)
-
setDescription
public void setDescription(String description)
-
setDiscussedBy
public void setDiscussedBy(URI discussedBy)
-
setFixed
public void setFixed(Boolean fixed)
-
setIdentifier
public void setIdentifier(String identifier)
-
setShortId
public void setShortId(String shortId)
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
public void setImplementsRequirements(Link[] implementsRequirements)
-
setInProgress
public void setInProgress(Boolean inProgress)
-
setInstanceShape
public void setInstanceShape(URI instanceShape)
-
setModified
public void setModified(Date modified)
-
setRelatedChangeRequests
public void setRelatedChangeRequests(Link[] relatedChangeRequests)
-
setRelatedTestCases
public void setRelatedTestCases(Link[] relatedTestCases)
-
setRelatedTestExecutionRecords
public void setRelatedTestExecutionRecords(Link[] relatedTestExecutionRecords)
-
setRelatedTestPlans
public void setRelatedTestPlans(Link[] relatedTestPlans)
-
setRelatedTestScripts
public void setRelatedTestScripts(Link[] relatedTestScripts)
-
setRelatedArchitectureElements
public void setRelatedArchitectureElements(Link[] relatedArchitectureElements)
-
setReviewed
public void setReviewed(Boolean reviewed)
-
setServiceProvider
public void setServiceProvider(URI serviceProvider)
-
setShortTitle
public void setShortTitle(String shortTitle)
-
setStatus
public void setStatus(String status)
-
setSubjects
public void setSubjects(String[] subjects)
-
setTestedByTestCases
public void setTestedByTestCases(Link[] testedByTestCases)
-
setTitle
public void setTitle(String title)
-
setTrackedWorkItems
public void setTrackedWorkItems(Link[] trackedWorkItems)
Changes the list of tracked work items.- Parameters:
trackedWorkItems
- the new list of tracked work items.- Since:
- 1.9.0
-
setTracksChangeSets
public void setTracksChangeSets(Link[] tracksChangeSets)
-
setTracksRequirements
public void setTracksRequirements(Link[] tracksRequirements)
-
setTracksWorkItems
public void setTracksWorkItems(Link[] tracksWorkItems)
Changes the list of tracking work items.- Parameters:
tracksWorkItems
- the list of tracking work items.- Since:
- 1.9.0
-
setVerified
public void setVerified(Boolean verified)
-
-