|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.money.currency.AbstractCurrencyManager org.zeroexchange.money.currency.che.CHECreditManager
@Transactional public class CHECreditManager
Constructor Summary | |
---|---|
CHECreditManager()
|
Method Summary | |
---|---|
void |
freeAmount(BigDecimal amount,
ZECurrency currencyCode,
User user)
Frees amount of money in the specified currency. |
BigDecimal |
getAllowedDebt(ZECurrency currencyCode,
User user)
Returns maximal value of user's allowed debt. |
BigDecimal |
getAvailableAmount(ZECurrency currencyCode,
User user)
Returns available amount of the specified current user for the specified code. |
protected BigDecimal |
getPaymentsSum(ZECurrency currencyCode,
User user)
Returns payments sum value. |
Class<UserLogged> |
getProcessingClass()
Class of the message that is processed by current listener. |
String[] |
getSupportedCurrencyCodes()
Return currencies codes that are supported by current provider. |
boolean |
isMoneyMovementEnabled(ZECurrency currencyCode)
Returns true if the money movement is enabled. |
void |
onEvent(UserLogged event)
Cleans up user's zero payments on user's login. |
void |
reserveAmount(BigDecimal amount,
ZECurrency currencyCode,
User user)
Reserves amount of money in the specified currency. |
void |
setDebtRate(BigDecimal debtRate)
|
void |
setFlatness(double flatness)
|
void |
writeOn(BigDecimal amount,
ZECurrency currencyCode,
User consumer)
Writes on amount of money in the specified currency. |
Methods inherited from class org.zeroexchange.money.currency.AbstractCurrencyManager |
---|
getHourPrice, getHourRate, getMaxRate, isOutlayAllowed, setMaxRate, setMinimalAveragePrice, setMinRate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CHECreditManager()
Method Detail |
---|
public void setFlatness(double flatness)
public void setDebtRate(BigDecimal debtRate)
public String[] getSupportedCurrencyCodes()
getSupportedCurrencyCodes
in interface CurrencyManager
public BigDecimal getAvailableAmount(ZECurrency currencyCode, User user)
getAvailableAmount
in interface CurrencyManager
protected BigDecimal getPaymentsSum(ZECurrency currencyCode, User user)
public void reserveAmount(BigDecimal amount, ZECurrency currencyCode, User user)
reserveAmount
in interface CurrencyManager
public void freeAmount(BigDecimal amount, ZECurrency currencyCode, User user)
freeAmount
in interface CurrencyManager
public void writeOn(BigDecimal amount, ZECurrency currencyCode, User consumer)
writeOn
in interface CurrencyManager
public boolean isMoneyMovementEnabled(ZECurrency currencyCode)
isMoneyMovementEnabled
in interface CurrencyManager
public BigDecimal getAllowedDebt(ZECurrency currencyCode, User user)
getAllowedDebt
in interface CurrencyManager
public Class<UserLogged> getProcessingClass()
getProcessingClass
in interface DataProcessor
@Transactional public void onEvent(UserLogged event)
onEvent
in interface EventProcessor<UserLogged>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |