Class AdWebShopDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.NamedEntityDTO
-
- org.cyclos.model.marketplace.advertisements.BasicAdDTO
-
- org.cyclos.model.marketplace.advertisements.AdWebShopDTO
-
- All Implemented Interfaces:
Serializable,Comparable<NamedEntityDTO>,IEntity,INamedEntity,ModelWithCustomValues<CustomFieldValueDTO>
public class AdWebShopDTO extends BasicAdDTO
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<Boolean,AdWebShopDTO>ALLOW_DECIMALstatic StringCLASS_NAMEstatic SetProperty<AdDeliveryMethodVO,AdWebShopDTO>DELIVERY_METHODSstatic BasicProperty<BigDecimal,AdWebShopDTO>MAX_ALLOWED_IN_CARTstatic BasicProperty<BigDecimal,AdWebShopDTO>MIN_ALLOWED_IN_CARTstatic BasicProperty<BigDecimal,AdWebShopDTO>MINIMUM_STOCK_LIMITstatic BasicProperty<String,AdWebShopDTO>PRODUCT_NUMBERstatic BasicProperty<BigDecimal,AdWebShopDTO>STOCK_QUANTITYstatic BasicProperty<AdWebShopStockType,AdWebShopDTO>STOCK_TYPE-
Fields inherited from class org.cyclos.model.marketplace.advertisements.BasicAdDTO
ADDRESSES, AUTHORIZATION_NOTES, CATEGORIES, CREATION_DATE, CUSTOM_VALUES, DESCRIPTION, OWNER, PRICE, PROMOTIONAL_PERIOD, PROMOTIONAL_PERIOD_ACTIVE, PROMOTIONAL_PRICE, PUBLICATION_PERIOD, STATUS, UPLOADED_IMAGES
-
Fields inherited from class org.cyclos.model.NamedEntityDTO
NAME
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description AdWebShopDTO()AdWebShopDTO(Long id)AdWebShopDTO(Property<T,? super AdWebShopDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassName()protected List<Property<?,?>>doGetProperties()Set<AdDeliveryMethodVO>getDeliveryMethods()BigDecimalgetMaxAllowedInCart()BigDecimalgetMinAllowedInCart()BigDecimalgetMinimumStockLimit()StringgetProductNumber()BigDecimalgetStockQuantity()AdWebShopStockTypegetStockType()booleanisAllowDecimal()voidsetAllowDecimal(boolean allowDecimal)voidsetDeliveryMethods(Set<AdDeliveryMethodVO> deliveryMethods)voidsetMaxAllowedInCart(BigDecimal maxAllowedInCart)voidsetMinAllowedInCart(BigDecimal minAllowedInCart)voidsetMinimumStockLimit(BigDecimal minimumStockLimit)voidsetProductNumber(String productNumber)voidsetStockQuantity(BigDecimal stockQuantity)voidsetStockType(AdWebShopStockType stockType)-
Methods inherited from class org.cyclos.model.marketplace.advertisements.BasicAdDTO
getAddresses, getAuthorizationNotes, getCategories, getCreationDate, getCustomValues, getDescription, getOwner, getPrice, getPromotionalPeriod, getPromotionalPrice, getPublicationPeriod, getStatus, getUploadedImages, isPromotionalPeriodActive, setAddresses, setAuthorizationNotes, setCategories, setCreationDate, setCustomValues, setDescription, setOwner, setPrice, setPromotionalPeriod, setPromotionalPeriodActive, setPromotionalPrice, setPublicationPeriod, setStatus, setUploadedImages
-
Methods inherited from class org.cyclos.model.NamedEntityDTO
compareTo, getName, setName, toString
-
Methods inherited from class org.cyclos.model.EntityDTO
getVersion, isPersistent, isTransient, setVersion
-
Methods inherited from class org.cyclos.model.EntityModel
equals, getId, hashCode, setId
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
ALLOW_DECIMAL
public static final BasicProperty<Boolean,AdWebShopDTO> ALLOW_DECIMAL
-
DELIVERY_METHODS
public static final SetProperty<AdDeliveryMethodVO,AdWebShopDTO> DELIVERY_METHODS
-
MAX_ALLOWED_IN_CART
public static final BasicProperty<BigDecimal,AdWebShopDTO> MAX_ALLOWED_IN_CART
-
MIN_ALLOWED_IN_CART
public static final BasicProperty<BigDecimal,AdWebShopDTO> MIN_ALLOWED_IN_CART
-
MINIMUM_STOCK_LIMIT
public static final BasicProperty<BigDecimal,AdWebShopDTO> MINIMUM_STOCK_LIMIT
-
PRODUCT_NUMBER
public static final BasicProperty<String,AdWebShopDTO> PRODUCT_NUMBER
-
STOCK_QUANTITY
public static final BasicProperty<BigDecimal,AdWebShopDTO> STOCK_QUANTITY
-
STOCK_TYPE
public static final BasicProperty<AdWebShopStockType,AdWebShopDTO> STOCK_TYPE
-
-
Constructor Detail
-
AdWebShopDTO
public AdWebShopDTO()
-
AdWebShopDTO
public AdWebShopDTO(Long id)
-
AdWebShopDTO
public AdWebShopDTO(Property<T,? super AdWebShopDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBasicAdDTO
-
isAllowDecimal
public boolean isAllowDecimal()
-
setAllowDecimal
public void setAllowDecimal(boolean allowDecimal)
-
getDeliveryMethods
public Set<AdDeliveryMethodVO> getDeliveryMethods()
-
setDeliveryMethods
public void setDeliveryMethods(Set<AdDeliveryMethodVO> deliveryMethods)
-
getMaxAllowedInCart
public BigDecimal getMaxAllowedInCart()
-
setMaxAllowedInCart
public void setMaxAllowedInCart(BigDecimal maxAllowedInCart)
-
getMinAllowedInCart
public BigDecimal getMinAllowedInCart()
-
setMinAllowedInCart
public void setMinAllowedInCart(BigDecimal minAllowedInCart)
-
getMinimumStockLimit
public BigDecimal getMinimumStockLimit()
-
setMinimumStockLimit
public void setMinimumStockLimit(BigDecimal minimumStockLimit)
-
getProductNumber
public String getProductNumber()
-
setProductNumber
public void setProductNumber(String productNumber)
-
getStockQuantity
public BigDecimal getStockQuantity()
-
setStockQuantity
public void setStockQuantity(BigDecimal stockQuantity)
-
getStockType
public AdWebShopStockType getStockType()
-
setStockType
public void setStockType(AdWebShopStockType stockType)
-
-