|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StockManager
Factory provides info about availability of the resource for the user.
Method Summary | |
---|---|
void |
freeAmount(ResourceTender resourceTender,
Resource resource)
Reserves resource amount. |
BigDecimal |
getConsumeAmount(Resource resource)
Returns consume amount for the resource. |
BigDecimal |
getSupplyAmount(Resource resource)
Returns supply amount for the resource. |
BigDecimal |
getUserAvailableAmount(Resource resource,
User user)
Returns resource category. |
boolean |
isAmountManagementEnabled(Resource resource,
TenderType tenderType)
Returns true of the amount management is enabled. |
boolean |
isAutoMovementEnabled(Resource resource)
Returns true if the stock auto-movement is enabled for the specified resource. |
boolean |
isPriceManagementEnabled(Resource resource)
Returns true if the price management is enabled for the specified resource. |
void |
performAutoMovement(Integer contractId)
Performs automatic stuff movement. |
void |
reserveAmount(ResourceTender resourceTender,
Resource resource)
Reserves resource amount. |
Method Detail |
---|
BigDecimal getUserAvailableAmount(Resource resource, User user)
void reserveAmount(ResourceTender resourceTender, Resource resource)
void performAutoMovement(Integer contractId)
void freeAmount(ResourceTender resourceTender, 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 |