public interface DocumentSelection extends IDTable, DominoClientDescendant
IDTable
to select data, design or admin documents from an NSF.Modifier and Type | Interface and Description |
---|---|
static class |
DocumentSelection.SelectionType
The available document types that can be selected via
select(Collection) and select(SelectionType...) . |
NOTEID_FLAG_DELETED
Modifier and Type | Method and Description |
---|---|
DocumentSelection |
build()
Runs a database search, adding note ids of search matches to this
object (subclass of
IDTable ). |
DocumentSelection |
deselect(Collection<DocumentSelection.SelectionType> selectionTypes)
Removes content types from the selection
|
DocumentSelection |
deselect(DocumentSelection.SelectionType... selectionTypes)
Removes content types from the selection
|
Optional<DominoDateTime> |
getLastBuildTime()
Returns the last time, the
build() has been invoked. |
Database |
getParentDatabase()
Returns the parent database
|
Optional<IDTable> |
getPreselection()
Returns an
IDTable with note ids to pre-filter the documents to
be scanned by the search |
Set<DocumentSelection.SelectionType> |
getSelection()
Returns the currently selected content types
|
String |
getSelectionFormula()
Returns the selection formula to selects notes for inclusion in the collection.
|
Optional<DominoDateTime> |
getSinceTime()
Returns the since time so that the search only contains documents
with a "Modified in this file" date after the given date.
|
Optional<DominoDateTime> |
getUntilTime()
Returns a date that can be passed as "since time" to the next search
for incremental searches.
|
boolean |
isSelected(DocumentSelection.SelectionType selectionType)
Checks if a content type is selected
|
DocumentSelection |
select(Collection<DocumentSelection.SelectionType> selectionTypes)
Adds content types to the selection
|
DocumentSelection |
select(DocumentSelection.SelectionType... selectionTypes)
Adds content types to the selection
|
DocumentSelection |
selectAllAdminDocuments()
Selects replication formulas and ACLs
|
DocumentSelection |
selectAllCodeElements()
Selects agents, outlines, database script, script libraries,
data connections and misc code elements.
|
DocumentSelection |
selectAllDataDocuments()
Selects normal data documents and profiles
|
DocumentSelection |
selectAllDesignElements()
Selects format, index and code elements, the icon, shared fields,
help about, help using and help imdex.
|
DocumentSelection |
selectAllDocuments()
Selects data, admin and design documents
|
DocumentSelection |
selectAllFormatElements()
Selects forms, subforms, actions, framesets, pages, image resources,
stylesheets, Java resources and misc format elements.
|
DocumentSelection |
selectAllIndexElements()
Selects views, folders, navigators and misc index elements
|
DocumentSelection |
withPreselection(Collection<Integer> noteIds)
Use this method to pre-filter the documents to be scanned by the search
|
DocumentSelection |
withSelectionFormula(String formula)
Sets a formula that selects notes for inclusion in the collection.
|
DocumentSelection |
withSinceTime(Temporal dt)
Adds a since time to the search so that it only contains documents
with a "Modified in this file" date after the given date.
|
clone, getDateTime, intersect, isInverted, isModified, reverseIterator, setDateTime, setInverted, setModified, toIntArray
getAdapter
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
getParentDominoClient
Database getParentDatabase()
DocumentSelection select(DocumentSelection.SelectionType... selectionTypes)
selectionTypes
- content typesDocumentSelection select(Collection<DocumentSelection.SelectionType> selectionTypes)
selectionTypes
- content typesDocumentSelection selectAllDocuments()
DocumentSelection selectAllDataDocuments()
DocumentSelection selectAllAdminDocuments()
DocumentSelection selectAllDesignElements()
DocumentSelection selectAllFormatElements()
DocumentSelection selectAllIndexElements()
DocumentSelection selectAllCodeElements()
DocumentSelection deselect(DocumentSelection.SelectionType... selectionTypes)
selectionTypes
- content typesDocumentSelection deselect(Collection<DocumentSelection.SelectionType> selectionTypes)
selectionTypes
- content typesboolean isSelected(DocumentSelection.SelectionType selectionType)
selectionType
- content typeSet<DocumentSelection.SelectionType> getSelection()
DocumentSelection withSelectionFormula(String formula)
formula
- formulaString getSelectionFormula()
DocumentSelection withPreselection(Collection<Integer> noteIds)
noteIds
- note idsOptional<IDTable> getPreselection()
IDTable
with note ids to pre-filter the documents to
be scanned by the searchOptional
describing the pre-selected documents, or an empty one
if this has not been setDocumentSelection withSinceTime(Temporal dt)
dt
- since timeOptional<DominoDateTime> getSinceTime()
Optional
describing the since time, or an empty one if
this has not been setOptional<DominoDateTime> getUntilTime()
Optional<DominoDateTime> getLastBuildTime()
build()
has been invoked.DocumentSelection build()
IDTable
).Copyright © 2019–2021 HCL. All rights reserved.