public abstract class SimpleAddressSpaceFilter extends Object implements AddressSpaceFilter
AddressSpaceFilter that delegates each of the filter operations to a simple filter on NodeId
using the most reasonable NodeId from that operation's request as the filter criteria.| Constructor and Description |
|---|
SimpleAddressSpaceFilter() |
| Modifier and Type | Method and Description |
|---|---|
static SimpleAddressSpaceFilter |
create(Predicate<NodeId> nodeIdFilter)
|
static SimpleAddressSpaceFilter |
create(Predicate<NodeId> nodeIdFilter,
Predicate<NodeId> monitoredItemFilter)
Create a new
SimpleAddressSpaceFilter that uses a separate Predicate for NodeIds and
MonitoredItems. |
boolean |
filterAddNodes(OpcUaServer server,
AddNodesItem addNodesItem)
Return
true if the add nodes operation for addNodesItem should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterAddReferences(OpcUaServer server,
AddReferencesItem addReferencesItem)
Return
true if the add references operation for addReferencesItem should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterBrowse(OpcUaServer server,
NodeId nodeId)
Return
true if the browse operation for nodeId should be handled by the AddressSpace
this filter belongs to. |
boolean |
filterCall(OpcUaServer server,
CallMethodRequest callMethodRequest)
Return
true if the call method operation for callMethodRequest should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterDeleteNodes(OpcUaServer server,
DeleteNodesItem deleteNodesItem)
Return
true if the delete nodes operation for deleteNodesItem should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterDeleteReferences(OpcUaServer server,
DeleteReferencesItem deleteReferencesItem)
Return
true if the delete references operation for deleteReferencesITem should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterHistoryRead(OpcUaServer server,
HistoryReadValueId historyReadValueId)
Return
true if the history read operation for historyReadValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterHistoryUpdate(OpcUaServer server,
HistoryUpdateDetails historyUpdateDetails)
Return
true if the history update operation for historyUpdateDetails should be handled by the
AddressSpace this filter belongs to. |
protected abstract boolean |
filterMonitoredItem(NodeId nodeId)
Return
true if the operation on the MonitoredItem for nodeId should be
handled by this filter's AddressSpace. |
protected abstract boolean |
filterNode(NodeId nodeId)
|
boolean |
filterOnCreateDataItem(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnCreateEventItem(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnDataItemsCreated(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnDataItemsDeleted(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnDataItemsModified(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnEventItemsCreated(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnEventItemsDeleted(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnEventItemsModified(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnModifyDataItem(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnModifyEventItem(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterOnMonitoringModeChanged(OpcUaServer server,
ReadValueId readValueId)
Return
true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterRead(OpcUaServer server,
ReadValueId readValueId)
Return
true if the read operation for readValueId should be handled by the AddressSpace
this filter belongs to. |
boolean |
filterRegisterNode(OpcUaServer server,
NodeId nodeId)
Return
true if the register node operation for nodeId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterUnregisterNode(OpcUaServer server,
NodeId nodeId)
Return
true if the unregister node operation for nodeId should be handled by the
AddressSpace this filter belongs to. |
boolean |
filterWrite(OpcUaServer server,
WriteValue writeValue)
Return
true if the write operation for writeValue should be handled by the AddressSpace
this filter belongs to. |
public static SimpleAddressSpaceFilter create(Predicate<NodeId> nodeIdFilter)
nodeIdFilter - a Predicate that tests a NodeId.SimpleAddressSpaceFilter that uses a Predicate on NodeId.public static SimpleAddressSpaceFilter create(Predicate<NodeId> nodeIdFilter, Predicate<NodeId> monitoredItemFilter)
SimpleAddressSpaceFilter that uses a separate Predicate for NodeIds and
MonitoredItems.nodeIdFilter - a Predicate that tests a NodeId.monitoredItemFilter - a Predicate that tests a NodeId targeted by a MonitoredItem.SimpleAddressSpaceFilter that uses a Predicate on NodeId.protected abstract boolean filterNode(NodeId nodeId)
true if the operation nodeId belongs to should be handled this filter's
AddressSpace.
This is not an indication that a Node for nodeId exists, rather, it's an indication that this
AddressSpace would be responsible for the Node *if it did* exist.
nodeId - a NodeId.true if the operation nodeId belongs to should be handled this filter's
AddressSpace.protected abstract boolean filterMonitoredItem(NodeId nodeId)
true if the operation on the MonitoredItem for nodeId should be
handled by this filter's AddressSpace.nodeId - the NodeId of MonitoredItem being operated on.true if the operation on the MonitoredItem for nodeId should be
handled by this filter's AddressSpace.public boolean filterBrowse(OpcUaServer server, NodeId nodeId)
AddressSpaceFiltertrue if the browse operation for nodeId should be handled by the AddressSpace
this filter belongs to.filterBrowse in interface AddressSpaceFilterserver - the OpcUaServer.nodeId - the NodeId from the browse operation.true if the browse operation for nodeId should be handled the the AddressSpace
this filter belongs to.ViewServices.browse(BrowseContext, ViewDescription, NodeId)public boolean filterRegisterNode(OpcUaServer server, NodeId nodeId)
AddressSpaceFiltertrue if the register node operation for nodeId should be handled by the
AddressSpace this filter belongs to.filterRegisterNode in interface AddressSpaceFilterserver - the OpcUaServer.nodeId - the NodeId to register.true if the register node operation for nodeId should be handled by the
AddressSpace this filter belongs to.ViewServices.registerNodes(RegisterNodesContext, List)public boolean filterUnregisterNode(OpcUaServer server, NodeId nodeId)
AddressSpaceFiltertrue if the unregister node operation for nodeId should be handled by the
AddressSpace this filter belongs to.filterUnregisterNode in interface AddressSpaceFilterserver - the OpcUaServer.nodeId - the NodeId to unregister.true if the unregister node operation for nodeId should be handled by the
AddressSpace this filter belongs to.ViewServices.unregisterNodes(UnregisterNodesContext, List)public boolean filterRead(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the read operation for readValueId should be handled by the AddressSpace
this filter belongs to.filterRead in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the read operation.true if the read operation for readValueId should be handled by the AddressSpace
this filter belongs to.AttributeServices.read(ReadContext, Double, TimestampsToReturn, List)public boolean filterWrite(OpcUaServer server, WriteValue writeValue)
AddressSpaceFiltertrue if the write operation for writeValue should be handled by the AddressSpace
this filter belongs to.filterWrite in interface AddressSpaceFilterserver - the OpcUaServer.writeValue - the WriteValue from the write operation.true if the write operation for writeValue should be handled by the AddressSpace
this filter belongs to.AttributeServices.write(WriteContext, List)public boolean filterHistoryRead(OpcUaServer server, HistoryReadValueId historyReadValueId)
AddressSpaceFiltertrue if the history read operation for historyReadValueId should be handled by the
AddressSpace this filter belongs to.filterHistoryRead in interface AddressSpaceFilterserver - the OpcUaServer.historyReadValueId - the HistoryReadValueId from the history read operation.true if the history read operation for historyReadValueId should be handled by the
AddressSpace this filter belongs to.AttributeHistoryServices.historyRead(HistoryReadContext, HistoryReadDetails, TimestampsToReturn, List)public boolean filterHistoryUpdate(OpcUaServer server, HistoryUpdateDetails historyUpdateDetails)
AddressSpaceFiltertrue if the history update operation for historyUpdateDetails should be handled by the
AddressSpace this filter belongs to.filterHistoryUpdate in interface AddressSpaceFilterserver - the OpcUaServer.historyUpdateDetails - the HistoryUpdateDetails from the history update operation.true if the history update operation for historyUpdateDetails should be handled by the
AddressSpace this filter belongs to.AttributeHistoryServices.historyUpdate(HistoryUpdateContext, List)public boolean filterCall(OpcUaServer server, CallMethodRequest callMethodRequest)
AddressSpaceFiltertrue if the call method operation for callMethodRequest should be handled by the
AddressSpace this filter belongs to.filterCall in interface AddressSpaceFilterserver - the OpcUaServer.callMethodRequest - the CallMethodRequest from the call method operation.true if the call method operation for callMethodRequest should be handled by the
AddressSpace this filter belongs to.MethodServices.call(CallContext, List)public boolean filterOnCreateDataItem(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnCreateDataItem in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onCreateDataItem(ReadValueId, Double, UInteger, BiConsumer)public boolean filterOnModifyDataItem(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnModifyDataItem in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onModifyDataItem(ReadValueId, Double, UInteger, BiConsumer)public boolean filterOnCreateEventItem(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnCreateEventItem in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onCreateEventItem(ReadValueId, UInteger, Consumer)public boolean filterOnModifyEventItem(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnModifyEventItem in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onModifyEventItem(ReadValueId, UInteger, Consumer)public boolean filterOnDataItemsCreated(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnDataItemsCreated in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onDataItemsCreated(List)public boolean filterOnDataItemsModified(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnDataItemsModified in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onDataItemsModified(List)public boolean filterOnDataItemsDeleted(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnDataItemsDeleted in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onDataItemsDeleted(List)public boolean filterOnEventItemsCreated(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnEventItemsCreated in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onEventItemsCreated(List)public boolean filterOnEventItemsModified(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnEventItemsModified in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onEventItemsModified(List)public boolean filterOnEventItemsDeleted(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnEventItemsDeleted in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onEventItemsDeleted(List)public boolean filterOnMonitoringModeChanged(OpcUaServer server, ReadValueId readValueId)
AddressSpaceFiltertrue if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.filterOnMonitoringModeChanged in interface AddressSpaceFilterserver - the OpcUaServer.readValueId - the ReadValueId from the monitored item operation.true if the monitored item operation for readValueId should be handled by the
AddressSpace this filter belongs to.MonitoredItemServices.onMonitoringModeChanged(List)public boolean filterAddNodes(OpcUaServer server, AddNodesItem addNodesItem)
AddressSpaceFiltertrue if the add nodes operation for addNodesItem should be handled by the
AddressSpace this filter belongs to.filterAddNodes in interface AddressSpaceFilterserver - the OpcUaServer.addNodesItem - the AddNodesItem from the add nodes operation.true if the add nodes operation for addNodesItem should be handled by the
AddressSpace this filter belongs to.NodeManagementServices.addNodes(AddNodesContext, List)public boolean filterDeleteNodes(OpcUaServer server, DeleteNodesItem deleteNodesItem)
AddressSpaceFiltertrue if the delete nodes operation for deleteNodesItem should be handled by the
AddressSpace this filter belongs to.filterDeleteNodes in interface AddressSpaceFilterserver - the OpcUaServer.deleteNodesItem - the DeleteNodesItem from the delete nodes operation.true if the delete nodes operation for deleteNodesItem should be handled by the
AddressSpace this filter belongs to.NodeManagementServices.deleteNodes(DeleteNodesContext, List)public boolean filterAddReferences(OpcUaServer server, AddReferencesItem addReferencesItem)
AddressSpaceFiltertrue if the add references operation for addReferencesItem should be handled by the
AddressSpace this filter belongs to.filterAddReferences in interface AddressSpaceFilterserver - the OpcUaServer.addReferencesItem - the AddReferencesItem from the add references operation.true if the add references operation for addReferencesItem should be handled by the
AddressSpace this filter belongs to.NodeManagementServices.addReferences(AddReferencesContext, List)public boolean filterDeleteReferences(OpcUaServer server, DeleteReferencesItem deleteReferencesItem)
AddressSpaceFiltertrue if the delete references operation for deleteReferencesITem should be handled by the
AddressSpace this filter belongs to.filterDeleteReferences in interface AddressSpaceFilterserver - the OpcUaServer.deleteReferencesItem - the DeleteReferencesItem from the delete references operation.true if the delete references operation for deleteReferencesITem should be handled by the
AddressSpace this filter belongs to.NodeManagementServices.deleteReferences(DeleteReferencesContext, List)Copyright © 2021. All rights reserved.