|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zeroexchange.resource.stock.LocalCurrencyStockManager
public class LocalCurrencyStockManager
| Field Summary | |
|---|---|
static String |
ALIAS_MONEY
|
| Constructor Summary | |
|---|---|
LocalCurrencyStockManager()
|
|
| Method Summary | |
|---|---|
void |
freeAmount(ResourceTender resourceTender,
Resource resource)
Reserves amount for the specified resource. |
BigDecimal |
getAmount(Resource resource,
User user)
Returns resource category. |
BigDecimal |
getConsumeAmount(Resource resource)
Returns consume amount for the resource. |
String |
getProcessingCategoryAlias()
Returns alias of the processing category |
Class<?> |
getProcessingClass()
Returns root hierarchy current processor can operate |
BigDecimal |
getSupplyAmount(Resource resource)
Returns supply amount for the resource. |
boolean |
isAmountManagementEnabled(Resource resource,
TenderType tenderType)
Returns true of the amount management is enabled for consumers. |
boolean |
isAutoMovementEnabled(Resource resource)
Returns is auto-supply is enabled for the current resuorce. |
boolean |
isPriceManagementEnabled(Resource resource)
Returns true if the price management is enabled for the specified resource. |
void |
performAutoMovement(Resource resource)
Performs resource auto-move if possible. |
void |
reserveAmount(ResourceTender resourceTender,
Resource resource)
Reserves amount for the specified resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ALIAS_MONEY
| Constructor Detail |
|---|
public LocalCurrencyStockManager()
| Method Detail |
|---|
public BigDecimal getAmount(Resource resource,
User user)
getAmount in interface ResourceStockManager
public void reserveAmount(ResourceTender resourceTender,
Resource resource)
reserveAmount in interface ResourceStockManager
public void freeAmount(ResourceTender resourceTender,
Resource resource)
freeAmount in interface ResourceStockManagerpublic void performAutoMovement(Resource resource)
performAutoMovement in interface ResourceStockManagerpublic boolean isAutoMovementEnabled(Resource resource)
isAutoMovementEnabled in interface ResourceStockManagerpublic boolean isPriceManagementEnabled(Resource resource)
isPriceManagementEnabled in interface ResourceStockManagerpublic String getProcessingCategoryAlias()
getProcessingCategoryAlias in interface ResourceStockManager
public boolean isAmountManagementEnabled(Resource resource,
TenderType tenderType)
isAmountManagementEnabled in interface ResourceStockManagerpublic BigDecimal getSupplyAmount(Resource resource)
getSupplyAmount in interface ResourceStockManagerpublic BigDecimal getConsumeAmount(Resource resource)
getConsumeAmount in interface ResourceStockManagerpublic Class<?> getProcessingClass()
DataProcessor
getProcessingClass in interface DataProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||