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
adaptMethods inherited from interface com.polarion.platform.persistence.model.IChangeListener
markChangedMethods inherited from interface com.polarion.platform.persistence.model.IHasCustomValues
getCustomField, getCustomFieldPrototype, getCustomFieldsList, setCustomFieldMethods 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, updateMethods 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
Listcontaining allIWorkItems linked to this revision
-
getLinkedWIsDerived
IPObjectList getLinkedWIsDerived()Searches the index to get the IDs of workitems, which link this revision.- Returns:
- a
Listcontaining allIWorkItems, 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
Listcontaining allIWorkItems
-
getLinkedWIsDirectQuery
String getLinkedWIsDirectQuery()Returns the query to find all workitems mentioned in the revision message.- Returns:
nullif 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
-