Interface DocumentWorkItems
- All Superinterfaces:
Iterable<WorkItem>
,IterableWithSize<WorkItem>
- All Known Subinterfaces:
UpdatableDocumentWorkItems
Iterating over this instance returns all of a document's Work Items. (Even those that are unreferenced.)
- Since:
- 3.9.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns an ordered collection of the active Work Items contained in the Document.Filters active Work Items from the Document based on a query and returns an un-ordered collection of maching items and their ancestors.boolean
isInternal
(WorkItem workItem) revisionOfWorkItem
(WorkItem workItem) Gets the revision of a Work Item within the document.Returns the unreferenced Work Items contained in the Document.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface com.polarion.alm.shared.api.utils.collections.IterableWithSize
addAllTo, isEmpty, size, toArray, toArrayList
-
Method Details
-
contained
Returns an ordered collection of the active Work Items contained in the Document. -
unreferenced
Returns the unreferenced Work Items contained in the Document. (Even when the document is from a specific revision.) Works correctly only after a commit.- Returns:
- unreferenced Work Items (not
null
)
-
filtered
Filters active Work Items from the Document based on a query and returns an un-ordered collection of maching items and their ancestors.- Parameters:
query
- Lucene query, a null or empty string will not filter results.
-