Package com._1c.g5.v8.dt.aef2.bm.events
Class DerivedDataObjectStatusEventQualifier
- java.lang.Object
-
- com._1c.g5.aef2.events.ServiceEventQualifier
-
- com._1c.g5.v8.dt.aef2.bm.events.DerivedDataObjectStatusEventQualifier
-
- All Implemented Interfaces:
IServiceEventQualifier
public class DerivedDataObjectStatusEventQualifier extends ServiceEventQualifier
- See Also:
DerivedDataObjectStatusConsumer
-
-
Constructor Summary
Constructors Constructor Description DerivedDataObjectStatusEventQualifier(long bmObjectId, String... segments)
Creates a new event qualifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getBmObjectId()
Returns the BM object identifier.Collection<String>
getSegments()
Returns the collection of segments of DS.int
hashCode()
boolean
test(IServiceEvent event)
Tests the given event belongs to qualifier.-
Methods inherited from class com._1c.g5.aef2.events.ServiceEventQualifier
getServiceEventClass
-
-
-
-
Constructor Detail
-
DerivedDataObjectStatusEventQualifier
public DerivedDataObjectStatusEventQualifier(long bmObjectId, String... segments)
Creates a new event qualifier.- Parameters:
bmObjectId
- the BM object identifier.segments
- the segments of DS that are insterested in.
-
-
Method Detail
-
test
public boolean test(IServiceEvent event)
Description copied from interface:IServiceEventQualifier
Tests the given event belongs to qualifier. By default returnstrue
if theIServiceEventQualifier.getServiceEventClass()
is assignable from event class.- Parameters:
event
- the event.- Returns:
true
the given event belongs to qualifier,false
- overwise.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classServiceEventQualifier
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classServiceEventQualifier
-
getBmObjectId
public long getBmObjectId()
Returns the BM object identifier.- Returns:
- the BM object identifier.
-
getSegments
public Collection<String> getSegments()
Returns the collection of segments of DS.- Returns:
- the collection of segments of DS.
-
-