org.zeroexchange.collaboration.contract.read
Class DefaultContractInformant

java.lang.Object
  extended by org.zeroexchange.collaboration.contract.read.DefaultContractInformant
All Implemented Interfaces:
ContractInformant

public class DefaultContractInformant
extends Object
implements ContractInformant

Author:
black

Constructor Summary
DefaultContractInformant()
           
 
Method Summary
 Collection<User> getCreditors(Contract contract)
          Returns list if contract's participants with positive balance.
 Set<User> getEffectiveSuppliers(Contract contract)
          Returns effective users of the specified contract.
 BigDecimal getUserContributionPrice(Contract contract, User user, ZECurrency currency)
          Returns value of the contribution made by the specified user into the specified contract.
 boolean isUserEffective(Contract contract, Integer userId)
          Returns true if the user has accepted tenders in the contract.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContractInformant

public DefaultContractInformant()
Method Detail

getUserContributionPrice

public BigDecimal getUserContributionPrice(Contract contract,
                                           User user,
                                           ZECurrency currency)
Returns value of the contribution made by the specified user into the specified contract.

Specified by:
getUserContributionPrice in interface ContractInformant

getCreditors

public Collection<User> getCreditors(Contract contract)
Returns list if contract's participants with positive balance.

Specified by:
getCreditors in interface ContractInformant

getEffectiveSuppliers

public Set<User> getEffectiveSuppliers(Contract contract)
Returns effective users of the specified contract.

Specified by:
getEffectiveSuppliers in interface ContractInformant

isUserEffective

public boolean isUserEffective(Contract contract,
                               Integer userId)
Returns true if the user has accepted tenders in the contract.

Specified by:
isUserEffective in interface ContractInformant


Copyright © 2013. All Rights Reserved.