|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShopItem
| Method Summary | |
|---|---|
void |
decreaseStockBy(int amount)
Decreases the stock by the given amount. |
java.lang.Integer |
getAbsoluteMaxOrderSize(User user)
returns the absolute maximum order size for the given User. |
java.lang.Integer |
getAbsoluteMinOrderSize(User user)
returns the absolute minimum order size for the given User. |
java.util.List<Price> |
getAvailablePrices(User user)
returns a list of Prices which are available to the given
User, ordered by Price.getAmount(), Price.getMinOrderSize(). |
Price |
getBestPrice(User pUser,
int pAmount)
Returns the best Price for the given User and the given
amount. |
java.util.Set<Price> |
getPrices()
Returns the Prices of the ShopItem. |
java.util.Set<Price> |
getPrices(Status status)
returns all Prices with the given status. |
java.util.Set<Price> |
getPrices(Status status,
int amount)
returns all Prices with the given status available for the given
amount. |
java.lang.String |
getShopItemId()
returns a string identifying the ShopItem, starting either with
c for Contents or v for Variant followed
by the primary key. |
Status |
getStatus()
Returns the Status of the ShopItem. |
java.lang.Integer |
getStock()
Returns the stock of the ShopItem. |
void |
increaseStockBy(int amount)
Increases the stock by the given amount. |
boolean |
isStockMaintainable()
Determines whether the stock is maintainable for the ShopItem. |
boolean |
isStockMaintained()
Determines whether the stock is maintained for the ShopItem. |
void |
setPrices(java.util.Set<Price> pPrices)
Sets the Prices of the ShopItem. |
void |
setStatus(Status pStatus)
Sets the Status of the ShopItem. |
void |
setStock(java.lang.Integer stock)
Sets the stock of the ShopItem. |
| Methods inherited from interface org.torweg.pulse.component.store.model.StoreItem |
|---|
equals, getAlternativeImages, getAssociatedVirtualFiles, getAttachments, getDescription, getDescriptionElement, getFullTextValue, getId, getMainImage, getOrderCode, getSummary, getSummaryElement, hashCode, onVirtualFileSystemChange, setAlternativeImages, setAssociatedVirtualFiles, setAttachments, setDescription, setMainImage, setOrderCode, setSummary |
| Methods inherited from interface org.torweg.pulse.util.INameable |
|---|
setName |
| Methods inherited from interface org.torweg.pulse.util.INamed |
|---|
getName |
| Methods inherited from interface org.torweg.pulse.site.content.IHasVariants |
|---|
getVariants |
| Methods inherited from interface org.torweg.pulse.bundle.JDOMable |
|---|
deserializeToJDOM |
| Method Detail |
|---|
java.lang.String getShopItemId()
ShopItem, starting either with
c for Contents or v for Variant followed
by the primary key.
Status getStatus()
Status of the ShopItem.
Status of the ShopItem.void setStatus(Status pStatus)
Status of the ShopItem.
pStatus - the Status to be set.java.util.Set<Price> getPrices()
Prices of the ShopItem.
Prices of the ShopItem.java.util.Set<Price> getPrices(Status status)
Prices with the given status.
status - the status
Prices
java.util.Set<Price> getPrices(Status status,
int amount)
Prices with the given status available for the given
amount.
status - the statusamount - the amount
Pricesvoid setPrices(java.util.Set<Price> pPrices)
Prices of the ShopItem.
pPrices - the Prices to be set.java.util.List<Price> getAvailablePrices(User user)
Prices which are available to the given
User, ordered by Price.getAmount(), Price.getMinOrderSize().
user - the user
Prices
Price getBestPrice(User pUser,
int pAmount)
Price for the given User and the given
amount.
pUser - the User to get the best Price for.pAmount - the amount of items the best Price has to be valid
for.
Price for the given User and the given
amount.java.lang.Integer getAbsoluteMinOrderSize(User user)
User.
user - the user
Userjava.lang.Integer getAbsoluteMaxOrderSize(User user)
User.
user - the user
Userjava.lang.Integer getStock()
ShopItem.
ShopItemvoid setStock(java.lang.Integer stock)
ShopItem.
stock - the stock to setboolean isStockMaintainable()
ShopItem.
true if the stock is maintainable for the
ShopItem. Returns false, otherwise.boolean isStockMaintained()
ShopItem.
true if the stock is maintained for the ShopItem.
Returns false, otherwise.void increaseStockBy(int amount)
amount - the amountvoid decreaseStockBy(int amount)
amount - the amount
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||