org.zeroexchange.user
Class TenderChangedListener

java.lang.Object
  extended by org.zeroexchange.user.TenderChangedListener
All Implemented Interfaces:
DataProcessor, EventProcessor<TenderChanged>

public class TenderChangedListener
extends Object
implements EventProcessor<TenderChanged>

Listens ResourceSupplyConfirmarion event and updates Contract's 'effectiveUsers' collection.

Author:
black

Constructor Summary
TenderChangedListener()
           
 
Method Summary
 Class<TenderChanged> getProcessingClass()
          Returns root hierarchy current processor can operate
protected  boolean internalIsUserEffective(Contract contract, Integer userId, Set<Integer> passedUserIds)
          Determines whether the user is effective recursively.
 void onEvent(TenderChanged event)
          Is called when event occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TenderChangedListener

public TenderChangedListener()
Method Detail

getProcessingClass

public Class<TenderChanged> getProcessingClass()
Returns root hierarchy current processor can operate

Specified by:
getProcessingClass in interface DataProcessor

onEvent

public void onEvent(TenderChanged event)
Is called when event occurred.

Specified by:
onEvent in interface EventProcessor<TenderChanged>

internalIsUserEffective

protected boolean internalIsUserEffective(Contract contract,
                                          Integer userId,
                                          Set<Integer> passedUserIds)
Determines whether the user is effective recursively.



Copyright © 2013. All Rights Reserved.