org.zeroexchange.collaboration.contract.write
Interface ContractWriter

All Known Implementing Classes:
DAOContractWriter

public interface ContractWriter

The service provides Contract entity persistence.

Author:
black

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.
 

Method Detail

save

Contract save(Contract contract)
Persists the specified contract.


addViewer

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


accept

Contract accept(User user,
                Contract contract)

markUserEffective

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

Parameters:
contractId - TODO

markUserIneffective

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

Parameters:
contractId - TODO


Copyright © 2013. All Rights Reserved.