Class SelectionChangedListener.AlarmNodeIdSelection
- java.lang.Object
-
- org.opennms.features.topology.api.browsers.SelectionChangedListener.AlarmNodeIdSelection
-
- All Implemented Interfaces:
SelectionChangedListener.Selection
- Enclosing interface:
- SelectionChangedListener
public static class SelectionChangedListener.AlarmNodeIdSelection extends java.lang.Object implements SelectionChangedListener.Selection
A convenientSelectionChangedListener.Selection
to create an in-Restriction for the providedselectedNodeIds
. IfselectedNodeIds
is null or empty, an empty list is returned (results in "NO SELECTION"). Please note that this requires a "node.id" attribute on the entity managed byOnmsVaadinContainer
. It's original intention is to be used only for aOnmsVaadinContainer
managing OnmsAlarm entities.
-
-
Field Summary
-
Fields inherited from interface org.opennms.features.topology.api.browsers.SelectionChangedListener.Selection
NONE
-
-
Constructor Summary
Constructors Constructor Description AlarmNodeIdSelection(java.util.Collection<java.lang.Integer> selectedNodeIds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Restriction>
toRestrictions()
The list of restrictions to return.
-
-
-
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
.
-
-