org.zeroexchange.dao.collaboration
Interface ContractDAO

All Superinterfaces:
DAO<Integer,Contract>, IntegerPKDAO<Contract>
All Known Implementing Classes:
ContractDAOImpl

public interface ContractDAO
extends IntegerPKDAO<Contract>

The DAO manipulated with the contract objects.

Author:
black

Method Summary
 Collection<User> getAllAcceptedContractUsers(Integer contractId)
          Returns all accepted contract users.
 ProcessorAwareDataSet<Contract> getAvailableContracts(User viewer)
          Returns data set for iteration through the available contract.
 long getUserContractsNumber(Integer userId)
          Returns the number of contracts where the specified user is a participant.
 Collection<User> getUsers(Integer contractId)
          Returns all users which resources are registered in the contract.
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Method Detail

getAvailableContracts

ProcessorAwareDataSet<Contract> getAvailableContracts(User viewer)
Returns data set for iteration through the available contract.

Parameters:
viewer - TODO

getUsers

Collection<User> getUsers(Integer contractId)
Returns all users which resources are registered in the contract.


getAllAcceptedContractUsers

Collection<User> getAllAcceptedContractUsers(Integer contractId)
Returns all accepted contract users.


getUserContractsNumber

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



Copyright © 2013. All Rights Reserved.