|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceInformant
The service provides the calculation of the different resource parameters.
Method Summary | |
---|---|
BigDecimal |
getConsumeAmount(Resource resource)
Returns the total confirmed consume amount of the resource. |
BigDecimal |
getProductionHours(Resource resource)
Returns total production hours of the 'accepted' supplies. |
String |
getResourceUOM(Resource resource)
Returns UOM's name for the resource. |
BigDecimal |
getSupplyAmount(Resource resource)
Returns the total confirmed supply amount of the resource. |
Date |
getSupplyDate(Resource resource)
Returns resource supply date. |
BigDecimal |
getUserContributionPrice(Resource resource,
User user,
ZECurrency currency)
Returns value of the contribution made by the specified user into the specified resource. |
ResourceTender |
getUserTender(Resource resource,
Integer userId)
Returns the user's tender. |
BigDecimal |
getValue(Resource resource)
Returns the 'accepted' resource supply price in the specified currency. |
String |
getValueUOM(Resource resource)
Returns UOM's name for the exchange worth of the resource. |
boolean |
hasConsumers(Resource resource,
User excludedUser)
Returns true if the resource has at least one consumer. |
boolean |
hasSuppliers(Resource resource,
User excludedUser)
Returns true if the resource has at least one supplier. |
boolean |
isAcceptedTendersCountExceeded(Resource resource,
Class<? extends ResourceTender> clazz)
Returns true if allowed tenders count is exceeded. |
boolean |
isUserConsumer(Resource resource,
Integer userId)
Returns true if the user is the consumer of the specified resource. |
boolean |
isUserSupplier(Resource resource,
Integer userId)
Returns true if the user is the supplier of the specified resource. |
Method Detail |
---|
BigDecimal getSupplyAmount(Resource resource)
BigDecimal getConsumeAmount(Resource resource)
ResourceTender getUserTender(Resource resource, Integer userId)
boolean isUserConsumer(Resource resource, Integer userId)
boolean isUserSupplier(Resource resource, Integer userId)
BigDecimal getValue(Resource resource)
BigDecimal getProductionHours(Resource resource)
BigDecimal getUserContributionPrice(Resource resource, User user, ZECurrency currency)
boolean isAcceptedTendersCountExceeded(Resource resource, Class<? extends ResourceTender> clazz)
boolean hasConsumers(Resource resource, User excludedUser)
boolean hasSuppliers(Resource resource, User excludedUser)
Date getSupplyDate(Resource resource)
String getResourceUOM(Resource resource)
String getValueUOM(Resource resource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |