Class DefaultBlotterCriteria
java.lang.Object
com.caplin.motif.fx.ret.lbn.extension.query.DefaultBlotterCriteria
- All Implemented Interfaces:
BlotterCriteria
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultBlotterCriteria(com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria> criteria, DealRecordMatcher dealRecordMatcher) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfilter(com.m_systems.lbn.spi.record.CDealRecord dealRecord) This should returntrueif the deal record should be processed and shown in the blotter andfalseotherwise.com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria>You should use this method to return an ordered list ofCriteriawhich will be used to create the initial query to LBN for the records to display in the blotter.toString()
-
Constructor Details
-
DefaultBlotterCriteria
public DefaultBlotterCriteria(com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria> criteria, DealRecordMatcher dealRecordMatcher)
-
-
Method Details
-
getQueryCriteria
public com.google.common.collect.ImmutableList<com.caplin.ret.trapi.lbn.Criteria> getQueryCriteria()Description copied from interface:BlotterCriteriaYou should use this method to return an ordered list ofCriteriawhich will be used to create the initial query to LBN for the records to display in the blotter.All returned records will be passed through the
BlotterCriteria.filter(CDealRecord)method and displayed on the blotter only if they pass.The main intention of the returned criteria is to reduce the amount of records that need returning by LBN and processing by the Adapter.
- Specified by:
getQueryCriteriain interfaceBlotterCriteria
-
filter
public boolean filter(com.m_systems.lbn.spi.record.CDealRecord dealRecord) Description copied from interface:BlotterCriteriaThis should returntrueif the deal record should be processed and shown in the blotter andfalseotherwise. All deals, from the initial query submitted and updates from LBN, will be passed through this filter.- Specified by:
filterin interfaceBlotterCriteria
-
toString
-