Package com.polarion.alm.tracker.model
Interface ITrackerRevision
- All Superinterfaces:
IAdaptable
,IChangeListener
,IHasCustomValues
,IHasValues
,IPObject
,IRevision
This is the tracker-aware extension of the revision interface. The
IRevision
objects can be adapted to this.
There are no extra fields in this extension, but some convenience tracker-related methods.
- Author:
- dobisekm
-
Field Summary
Fields inherited from interface com.polarion.platform.persistence.model.IRevision
KEY_AUTHOR, KEY_BRANCH, KEY_CREATED, KEY_INTERNAL_COMMIT, KEY_MESSAGE, KEY_NAME, KEY_REPOSITORY_NAME, PROTO
-
Method Summary
Modifier and TypeMethodDescriptionReturns all workitems linked to this revisions directly and derived.Searches the index to get the IDs of workitems, which link this revision.Returns a query, which lists all work items, that reference this revision.Returns all work items mentioned in this revisions message.Returns the query to find all workitems mentioned in the revision message.Returns a query which finds all workitems linked to this revisions directly and derived.Returns the author of the revision.Methods inherited from interface com.polarion.platform.persistence.model.IAdaptable
adapt
Methods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChanged
Methods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomField
Methods inherited from interface com.polarion.platform.persistence.model.IPObject
can, copyTo, createStructureForKey, forget, getContextId, getDataRevision, getDataSvc, getEnumerationOptionForField, getEnumerationTypeForField, getFieldLabel, getFieldType, getIncompatibleCustomField, getIncompatibleCustomFieldPrototype, getIncompatibleCustomFieldsList, getLastRevision, getLocalId, getObjectId, getPrototype, getRevision, getUri, getValue, isModified, isPersisted, isReadOnly, isResolved, isUnresolvable, resolve, save, setEnumerationValue, setValue, update
Methods inherited from interface com.polarion.platform.persistence.model.IRevision
getBranch, getChangedLocations, getCreated, getLabel, getLocationDiffURL, getLocationURL, getMessage, getName, getRepositoryName, getStringAuthor, getViewURL, isExternal, isInternalCommit
-
Method Details
-
getTrackerUser
ITrackerUser getTrackerUser()Returns the author of the revision. The returned object is not resolved and the clients should consider it normal, that the user will not be resolvable (since the user name is taken from the actual repository revision).- Returns:
- the unresolved
ITrackerUser
, the author of this revision.
-
getLinkedWIs
IPObjectList getLinkedWIs()Returns all workitems linked to this revisions directly and derived. The result is the union of results ofgetLinkedWIsDirect()
andgetLinkedWIsDerived()
.- Returns:
- a
List
containing allIWorkItem
s linked to this revision
-
getLinkedWIsDerived
IPObjectList getLinkedWIsDerived()Searches the index to get the IDs of workitems, which link this revision.- Returns:
- a
List
containing allIWorkItem
s, which link this revision
-
getLinkedWIsDerivedQuery
String getLinkedWIsDerivedQuery()Returns a query, which lists all work items, that reference this revision.- Returns:
- a query to find all work items linking this revision
-
getLinkedWIsDirect
IPObjectList getLinkedWIsDirect()Returns all work items mentioned in this revisions message.- Returns:
- a
List
containing allIWorkItem
s
-
getLinkedWIsDirectQuery
String getLinkedWIsDirectQuery()Returns the query to find all workitems mentioned in the revision message.- Returns:
null
if revision message refers no work items, the query string otherwise.
-
getLinkedWIsQuery
String getLinkedWIsQuery()Returns a query which finds all workitems linked to this revisions directly and derived.- Returns:
- a query which finds all qork items linked to this revision
-