|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zeroexchange.collaboration.contract.read.DAOContractReader
@FeatureMarker(value="collaboration") public class DAOContractReader
The default implementation of the contracts management service.
| Constructor Summary | |
|---|---|
DAOContractReader()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DAOContractReader()
| Method Detail |
|---|
public SlicingDataSet<Contract> getAvailableContracts(SortDescriptor sortDescriptor,
ContractFilter filter,
User viewer)
getAvailableContracts in interface ContractReaderviewer - TODO
public Contract getContract(Integer contractId)
throws BusinessLogicException
ContractReader
getContract in interface ContractReaderBusinessLogicExceptionpublic Collection<User> getAllAcceptedUsers(Contract contract)
getAllAcceptedUsers in interface ContractReaderpublic long getUserContractsNumber(User user)
getUserContractsNumber in interface ContractReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||