Package org.cyclos.entities.marketplace
Class AdWebShop
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.marketplace.BasicAd
-
- org.cyclos.entities.marketplace.AdWebShop
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasCurrency,HasNetwork,ProcessableForProxying,EntityWithCustomValues<AdCustomField,AdCustomFieldPossibleValueCategory,AdCustomFieldPossibleValue,AdCustomFieldValue>,ImageOwner<BasicAd,AdImage>,IEntity,INamedEntity
@Entity public class AdWebShop extends BasicAd
Represents an Ad that can be sold through webshop
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
-
Fields inherited from class org.cyclos.entities.marketplace.BasicAd
stockQuantity, stockType
-
-
Constructor Summary
Constructors Constructor Description AdWebShop()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.marketplace.BasicAd
getActualStatus, getAdAddresses, getAddresses, getAdHistory, getAuthorizationNotes, getCategories, getCreationDate, getCurrency, getCurrentPrice, getCustomFieldClass, getCustomFieldValueClass, getCustomValues, getDeletedDate, getDescription, getDiscriminator, getImage, getImageCount, getImages, getLastModified, getNetwork, getNotifiedAdInterests, getNumberOfImages, getOwner, getPersistedStatus, getPrice, getPromotionalPeriod, getPromotionalPrice, getPublicationPeriod, getQuestions, getSingleCategory, getStatus, getType, getUploadedImages, isAdInterestNotified, isDoProcess, isExpirationNotified, isHidden, isPromotionalPeriodActive, isRemovedFromOwner, setAdAddresses, setAddresses, setAdHistory, setAuthorizationNotes, setCategories, setCreationDate, setCustomValues, setDeletedDate, setDescription, setDoProcess, setExpirationNotified, setImage, setImages, setLastModified, setOwner, setPrice, setPromotionalPeriod, setPromotionalPrice, setPublicationPeriod, setQuestions, setRemovedFromOwner, setStatus, setUploadedImages
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
isInStock
public static boolean isInStock(AdWebShopStockType stockType, BigDecimal stockQuantity)
Returns whether the given stock type / quantity means the product is in stock
-
getDeliveryMethods
public Set<AdDeliveryMethod> getDeliveryMethods()
-
getLowStockNotified
public Boolean getLowStockNotified()
-
getMaxAllowedInCart
public BigDecimal getMaxAllowedInCart()
-
getMinAllowedInCart
public BigDecimal getMinAllowedInCart()
-
getMinimumStockLimit
public BigDecimal getMinimumStockLimit()
-
getProductNumber
public String getProductNumber()
-
getStockQuantity
public BigDecimal getStockQuantity()
-
getStockType
public AdWebShopStockType getStockType()
-
isAllowDecimal
public boolean isAllowDecimal()
-
setAllowDecimal
public void setAllowDecimal(boolean allowDecimal)
-
setDeliveryMethods
public void setDeliveryMethods(Set<AdDeliveryMethod> deliveryMethods)
-
setLowStockNotified
public void setLowStockNotified(Boolean lowStockNotified)
-
setMaxAllowedInCart
public void setMaxAllowedInCart(BigDecimal maxAllowedInCart)
-
setMinAllowedInCart
public void setMinAllowedInCart(BigDecimal minAllowedInCart)
-
setMinimumStockLimit
public void setMinimumStockLimit(BigDecimal minimumStockLimit)
-
setProductNumber
public void setProductNumber(String productNumber)
-
setStockQuantity
public void setStockQuantity(BigDecimal stockQuantity)
-
setStockType
public void setStockType(AdWebShopStockType stockType)
-
-