org.zeroexchange.mcredit.write
Interface CreditLineWriter

All Known Implementing Classes:
DefaultCreditLineWriter

public interface CreditLineWriter

Author:
black

Method Summary
 SlicingDataSet<CreditLine> getUserLines(User creditor)
          Returns credit lines for the specified creditor.
 void remove(CreditLine creditLine)
          Remove credit line by id.
 CreditPaths roteDebt(CreditPaths twoPartnerPaths, BigDecimal value)
          Performs movement of mutual credit.
 CreditLine setCreditLine(User creditor, User debtor, BigDecimal value)
          Adds user credit relation.
 

Method Detail

getUserLines

SlicingDataSet<CreditLine> getUserLines(User creditor)
Returns credit lines for the specified creditor.


setCreditLine

CreditLine setCreditLine(User creditor,
                         User debtor,
                         BigDecimal value)
Adds user credit relation.


roteDebt

CreditPaths roteDebt(CreditPaths twoPartnerPaths,
                     BigDecimal value)
                     throws DebtRotingException
Performs movement of mutual credit.

Returns:
TODO
Throws:
DebtRotingException

remove

void remove(CreditLine creditLine)
Remove credit line by id.



Copyright © 2013. All Rights Reserved.