org.zeroexchange.collaboration.contract.write
Class DAOContractWriter

java.lang.Object
  extended by org.zeroexchange.collaboration.contract.write.DAOContractWriter
All Implemented Interfaces:
ContractWriter

@Transactional
public class DAOContractWriter
extends Object
implements ContractWriter

The contracts writer uses DAO for contract persistence.

Author:
black

Constructor Summary
DAOContractWriter()
           
 
Method Summary
 Contract accept(User user, Contract contract)
          
 Contract addViewer(Contract contract, User viewer)
          Marks that contract was viewed by the specified viewer.
 void markUserEffective(Integer contractId, User tenderOwner)
          Marks specified user as effective.
 void markUserIneffective(Integer contractId, User tenderOwner)
          Marks specified user as ineffective.
 Contract save(Contract contract)
          Persists the specified contract.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOContractWriter

public DAOContractWriter()
Method Detail

save

public Contract save(Contract contract)
Persists the specified contract.

Specified by:
save in interface ContractWriter

addViewer

public Contract addViewer(Contract contract,
                          User viewer)
Marks that contract was viewed by the specified viewer.

Specified by:
addViewer in interface ContractWriter

accept

public Contract accept(User user,
                       Contract contract)

Specified by:
accept in interface ContractWriter

markUserEffective

public void markUserEffective(Integer contractId,
                              User tenderOwner)
Marks specified user as effective.

Specified by:
markUserEffective in interface ContractWriter
Parameters:
contractId - TODO

markUserIneffective

public void markUserIneffective(Integer contractId,
                                User tenderOwner)
Marks specified user as ineffective.

Specified by:
markUserIneffective in interface ContractWriter
Parameters:
contractId - TODO


Copyright © 2013. All Rights Reserved.