Package org.cyclos.model.users.products
Class ProductVoucherDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.users.products.ProductVoucherDTO
-
- All Implemented Interfaces:
Serializable,IEntity
- Direct Known Subclasses:
ProductAdminVoucherDTO,ProductUserVoucherDTO
public abstract class ProductVoucherDTO extends EntityDTO
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<Boolean,ProductVoucherDTO>BUYstatic BasicProperty<Boolean,ProductVoucherDTO>CHANGE_PINstatic StringCLASS_NAMEstatic BasicProperty<VoucherConfigurationVO,ProductVoucherDTO>CONFIGURATIONstatic BasicProperty<Boolean,ProductVoucherDTO>NOTIFICATION_SETTINGSstatic BasicProperty<Boolean,ProductVoucherDTO>REDEEMstatic BasicProperty<Boolean,ProductVoucherDTO>REFUNDstatic BasicProperty<Boolean,ProductVoucherDTO>SENDstatic BasicProperty<Boolean,ProductVoucherDTO>TOP_UP-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description ProductVoucherDTO()ProductVoucherDTO(Long id)ProductVoucherDTO(Property<T,? super ProductVoucherDTO> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Property<?,?>>doGetProperties()VoucherConfigurationVOgetConfiguration()booleanisBuy()booleanisChangePin()booleanisNotificationSettings()booleanisRedeem()booleanisRefund()booleanisSend()booleanisTopUp()voidsetBuy(boolean buy)voidsetChangePin(boolean changePin)voidsetConfiguration(VoucherConfigurationVO configuration)voidsetNotificationSettings(boolean notificationSettings)voidsetRedeem(boolean redeem)voidsetRefund(boolean refund)voidsetSend(boolean send)voidsetTopUp(boolean topUp)-
Methods inherited from class org.cyclos.model.EntityDTO
getVersion, isPersistent, isTransient, setVersion
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, className, 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
-
BUY
public static final BasicProperty<Boolean,ProductVoucherDTO> BUY
-
CHANGE_PIN
public static final BasicProperty<Boolean,ProductVoucherDTO> CHANGE_PIN
-
CONFIGURATION
public static final BasicProperty<VoucherConfigurationVO,ProductVoucherDTO> CONFIGURATION
-
NOTIFICATION_SETTINGS
public static final BasicProperty<Boolean,ProductVoucherDTO> NOTIFICATION_SETTINGS
-
REDEEM
public static final BasicProperty<Boolean,ProductVoucherDTO> REDEEM
-
REFUND
public static final BasicProperty<Boolean,ProductVoucherDTO> REFUND
-
SEND
public static final BasicProperty<Boolean,ProductVoucherDTO> SEND
-
TOP_UP
public static final BasicProperty<Boolean,ProductVoucherDTO> TOP_UP
-
-
Constructor Detail
-
ProductVoucherDTO
public ProductVoucherDTO()
-
ProductVoucherDTO
public ProductVoucherDTO(Long id)
-
ProductVoucherDTO
public ProductVoucherDTO(Property<T,? super ProductVoucherDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classEntityDTO
-
isBuy
public boolean isBuy()
-
setBuy
public void setBuy(boolean buy)
-
isChangePin
public boolean isChangePin()
-
setChangePin
public void setChangePin(boolean changePin)
-
getConfiguration
public VoucherConfigurationVO getConfiguration()
-
setConfiguration
public void setConfiguration(VoucherConfigurationVO configuration)
-
isNotificationSettings
public boolean isNotificationSettings()
-
setNotificationSettings
public void setNotificationSettings(boolean notificationSettings)
-
isRedeem
public boolean isRedeem()
-
setRedeem
public void setRedeem(boolean redeem)
-
isRefund
public boolean isRefund()
-
setRefund
public void setRefund(boolean refund)
-
isSend
public boolean isSend()
-
setSend
public void setSend(boolean send)
-
isTopUp
public boolean isTopUp()
-
setTopUp
public void setTopUp(boolean topUp)
-
-