Interface SelectStoreElementOperation
public interface SelectStoreElementOperation
Highly configurable operation providing means to select one or more store elements.
- Since:
- 5.0.101
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA selection container providing access to the selected element and remote project name. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OperationType<SelectStoreElementOperation>The operation's type. -
Method Summary
Modifier and TypeMethodDescription@NotNull ProjectOptionsaddProject(@Nullable String remoteProjectName) Adds the named project as selection source.voidaddProjectFromRestriction(@NotNull ProjectRestriction projectRestriction) Add a project from a clause representation.voidaddTypeToHide(Class<?> type) Adds a type to be hidden on displaying selectable and navigatable elements.voidaddTypeToSelect(Class<?> type) Adds a type where elements thereof are eligible for selection.voidapplyFilterFolderBased(boolean folderBased) The element selection filter allows/shows only child elements of folders.voidapplyFilterUidBased(boolean uidBased) The element selection filter allows/shows only child elements having a UID.@NotNull List<SelectStoreElementOperation.Selection>perform()Performs the operation with the previously set configuration and returns the set of selections.voidselectUiType(@NotNull SelectUiType uiType) Set the type of user interface which is used to make a selection.voidsetAllowLeafsOnly(boolean leafsOnly) Restricts the final selection to leaf elements, i.e. elements not having any children, real or virtual.voidsetLanguage(Language language) Defines the contextual data language for this operation, which might be relevant to the elements offered.voidsetMultiSelect(boolean enable) Enables multiple selection.voidsetPreselection(@Nullable String projectName, @NotNull IDProvider element, @Nullable Resolution resolution) Sets a preselection.voidsetSelectFromRelease(boolean release) Defines, whether released elements will be provided for selection.voidsetSelectResolution(boolean enable) Enables resolution selection on picture elements.voidSets the selection view's title.
-
Field Details
-
TYPE
The operation's type.- Since:
- 5.0.101
-
-
Method Details
-
setTitle
Sets the selection view's title.- Parameters:
title- The view title.- Since:
- 5.0.101
-
setPreselection
void setPreselection(@Nullable @Nullable String projectName, @NotNull @NotNull IDProvider element, @Nullable @Nullable Resolution resolution) Sets a preselection.- Parameters:
projectName- The symbolic name of the project the element belongs to ornull, if it is not remote.element- The element to be pre-selected.resolution- The resolution of a picture, if the element refers to a picture.- Since:
- 5.0.101
-
setMultiSelect
void setMultiSelect(boolean enable) Enables multiple selection. If not set, defaults to false.- Parameters:
enable- Iftrue, enables multi selection.- Since:
- 5.0.101
-
setSelectResolution
void setSelectResolution(boolean enable) Enables resolution selection on picture elements. If not set, defaults to false.- Parameters:
enable- Iftrue, enables resolution selection.- Since:
- 5.0.101
-
addTypeToSelect
Adds a type where elements thereof are eligible for selection.- Parameters:
type- Type of selectable elements.- Since:
- 5.0.101
-
addTypeToHide
Adds a type to be hidden on displaying selectable and navigatable elements.Note: Elements allowed for selection will not be hidden.
- Parameters:
type- Type to be hidden.- Since:
- 5.0.101
-
addProject
Adds the named project as selection source. If the name isnull, the local project is added.- Parameters:
remoteProjectName- The symbolic name of the remote project ornull.- Returns:
- An option handler to further restrict the added project.
- Since:
- 5.0.101
-
addProjectFromRestriction
Add a project from a clause representation.- Parameters:
projectRestriction- The clause to derive from.- Since:
- 5.0.101
-
applyFilterFolderBased
void applyFilterFolderBased(boolean folderBased) The element selection filter allows/shows only child elements of folders.- Parameters:
folderBased-trueif folder based otherwisefalse- Since:
- 5.0.101
-
applyFilterUidBased
void applyFilterUidBased(boolean uidBased) The element selection filter allows/shows only child elements having a UID.- Parameters:
uidBased-trueif uid based otherwisefalse- Since:
- 5.1.404
-
setAllowLeafsOnly
void setAllowLeafsOnly(boolean leafsOnly) Restricts the final selection to leaf elements, i.e. elements not having any children, real or virtual.- Parameters:
leafsOnly-true, to allow leafs elements only.- Since:
- 5.0.101
-
selectUiType
Set the type of user interface which is used to make a selection. Defaults toSelectUiType.DIALOG.- Parameters:
uiType- the type used for selection- Since:
- 5.0.101
-
setSelectFromRelease
void setSelectFromRelease(boolean release) Defines, whether released elements will be provided for selection. Default isfalse, allowing selections of current (unreleased) elements.- Parameters:
release- iftrue, provides released elements for selection, iffalse, provides current elements.- Since:
- 5.0.101
-
setLanguage
Defines the contextual data language for this operation, which might be relevant to the elements offered.- Parameters:
language- The contextual language.- Since:
- 5.2.425
-
perform
Performs the operation with the previously set configuration and returns the set of selections.- Returns:
- The result of the selection operation.
- Since:
- 5.0.101
-