Class SelectionChangedListener.IdSelection<T extends java.io.Serializable>
- java.lang.Object
-
- org.opennms.features.topology.api.browsers.SelectionChangedListener.IdSelection<T>
-
- Type Parameters:
T
- The Type of the "id" attribute.
- All Implemented Interfaces:
SelectionChangedListener.Selection
- Enclosing interface:
- SelectionChangedListener
public static class SelectionChangedListener.IdSelection<T extends java.io.Serializable> extends java.lang.Object implements SelectionChangedListener.Selection
A convenientSelectionChangedListener.Selection
to create an in-Restriction for the providedselectedIds
. IfselectedIds
is null or empty, an empty list is returned (results in "NO SELECTION"). Please be aware that this requires a "id" attribute on the entity managed byOnmsVaadinContainer
.
-
-
Field Summary
-
Fields inherited from interface org.opennms.features.topology.api.browsers.SelectionChangedListener.Selection
NONE
-
-
Constructor Summary
Constructors Constructor Description IdSelection(java.util.Collection<T> selectedIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Restriction>
toRestrictions()
The list of restrictions to return.
-
-
-
Constructor Detail
-
IdSelection
public IdSelection(java.util.Collection<T> selectedIds)
-
-
Method Detail
-
toRestrictions
public java.util.List<Restriction> toRestrictions()
Description copied from interface:SelectionChangedListener.Selection
The list of restrictions to return. Please note, that each element in the list is AND concatenated.- Specified by:
toRestrictions
in interfaceSelectionChangedListener.Selection
- Returns:
- The list of
Restriction
to return to use to filter theOnmsVaadinContainer
.
-
-