|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceStockManager
Interface for the resource amount processors.
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 |
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. |
Method Detail |
---|
String getProcessingCategoryAlias()
BigDecimal getAmount(Resource resource, User user)
void reserveAmount(ResourceTender tender, Resource resource)
void freeAmount(ResourceTender tender, Resource resource)
void performAutoMovement(Resource resource)
boolean isAutoMovementEnabled(Resource resource)
boolean isPriceManagementEnabled(Resource resource)
boolean isAmountManagementEnabled(Resource resource, TenderType tenderType)
BigDecimal getSupplyAmount(Resource resource)
BigDecimal getConsumeAmount(Resource resource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |