org.zeroexchange.collaboration.contract.read
Interface ContractReader

All Known Implementing Classes:
DAOContractReader

public interface ContractReader

Service provides information about contracts.

Author:
black

Method Summary
 Collection<User> getAllAcceptedUsers(Contract contract)
          Returns all the users of the contract.
 SlicingDataSet<Contract> getAvailableContracts(SortDescriptor sortDescriptor, ContractFilter filter, User viewer)
          Returns data set with available contracts.
 Contract getContract(Integer contractId)
          Returns the contract by its Id.
 long getUserContractsNumber(User user)
          Returns the number of contracts where the specified user is a participant.
 

Method Detail

getAvailableContracts

SlicingDataSet<Contract> getAvailableContracts(SortDescriptor sortDescriptor,
                                               ContractFilter filter,
                                               User viewer)
Returns data set with available contracts.

Parameters:
viewer - TODO
userContractRole -

getContract

Contract getContract(Integer contractId)
Returns the contract by its Id.


getAllAcceptedUsers

Collection<User> getAllAcceptedUsers(Contract contract)
Returns all the users of the contract.


getUserContractsNumber

long getUserContractsNumber(User user)
Returns the number of contracts where the specified user is a participant.



Copyright © 2013. All Rights Reserved.