org.zeroexchange.collaboration.contract.read
Interface ContractInformant

All Known Implementing Classes:
DefaultContractInformant

public interface ContractInformant

Author:
black

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 currentUserId)
          Returns true if the user has accepted tenders in the contract.
 

Method Detail

getUserContributionPrice

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


getCreditors

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


isUserEffective

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


getEffectiveSuppliers

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



Copyright © 2013. All Rights Reserved.