|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.resource.stock.ServiceStockManager
public class ServiceStockManager
Constructor Summary | |
---|---|
ServiceStockManager()
|
Method Summary | |
---|---|
void |
freeAmount(ResourceTender tender,
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 tender,
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 |
Constructor Detail |
---|
public ServiceStockManager()
Method Detail |
---|
public String getProcessingCategoryAlias()
getProcessingCategoryAlias
in interface ResourceStockManager
public BigDecimal getAmount(Resource resource, User user)
getAmount
in interface ResourceStockManager
public void reserveAmount(ResourceTender tender, Resource resource)
reserveAmount
in interface ResourceStockManager
public void freeAmount(ResourceTender tender, Resource resource)
freeAmount
in interface ResourceStockManager
public void performAutoMovement(Resource resource)
performAutoMovement
in interface ResourceStockManager
public boolean isAutoMovementEnabled(Resource resource)
isAutoMovementEnabled
in interface ResourceStockManager
public boolean isPriceManagementEnabled(Resource resource)
isPriceManagementEnabled
in interface ResourceStockManager
public boolean isAmountManagementEnabled(Resource resource, TenderType tenderType)
isAmountManagementEnabled
in interface ResourceStockManager
public BigDecimal getSupplyAmount(Resource resource)
getSupplyAmount
in interface ResourceStockManager
public BigDecimal getConsumeAmount(Resource resource)
getConsumeAmount
in interface ResourceStockManager
public Class<?> getProcessingClass()
DataProcessor
getProcessingClass
in interface DataProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |