Class VoucherTypeDTO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityDTO
-
- org.cyclos.model.NamedEntityDTO
-
- org.cyclos.model.ConfigurationEntityDTO
-
- org.cyclos.model.banking.vouchertypes.VoucherTypeDTO
-
- All Implemented Interfaces:
Serializable,Comparable<NamedEntityDTO>,IEntity,IInternalNamedEntity,INamedEntity
public class VoucherTypeDTO extends ConfigurationEntityDTO
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.cyclos.model.ConfigurationEntityDTO
DESCRIPTION, INTERNAL_NAME
-
Fields inherited from class org.cyclos.model.NamedEntityDTO
NAME
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description VoucherTypeDTO()VoucherTypeDTO(Long id)VoucherTypeDTO(Property<T,? super VoucherTypeDTO> property, T value)
-
Method Summary
-
Methods inherited from class org.cyclos.model.ConfigurationEntityDTO
getDescription, getInternalName, setDescription, setInternalName
-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
ACCOUNT_NAME
public static final BasicProperty<String,VoucherTypeDTO> ACCOUNT_NAME
-
ALLOW_BUYING
public static final BasicProperty<Boolean,VoucherTypeDTO> ALLOW_BUYING
-
ALLOW_PARTIAL_REDEEMS
public static final BasicProperty<Boolean,VoucherTypeDTO> ALLOW_PARTIAL_REDEEMS
-
BUY_ALLOWED_GROUPS
public static final SetProperty<BasicGroupVO,VoucherTypeDTO> BUY_ALLOWED_GROUPS
-
BUY_UNTIL_DATE
public static final BasicProperty<DateTime,VoucherTypeDTO> BUY_UNTIL_DATE
-
CATEGORY
public static final BasicProperty<VoucherCategoryVO,VoucherTypeDTO> CATEGORY
-
CONFIGURATION
public static final BasicProperty<VoucherConfigurationVO,VoucherTypeDTO> CONFIGURATION
-
ENABLED
public static final BasicProperty<Boolean,VoucherTypeDTO> ENABLED
-
EXPIRATION_DATE
public static final BasicProperty<DateTime,VoucherTypeDTO> EXPIRATION_DATE
-
EXPIRATION_INTERVAL
public static final BasicProperty<TimeIntervalDTO,VoucherTypeDTO> EXPIRATION_INTERVAL
-
EXPIRATION_TYPE
public static final BasicProperty<VoucherExpirationType,VoucherTypeDTO> EXPIRATION_TYPE
-
GIFT
public static final BasicProperty<VoucherGiftOption,VoucherTypeDTO> GIFT
-
HIDE_BALANCE_IN_REDEEM
public static final BasicProperty<Boolean,VoucherTypeDTO> HIDE_BALANCE_IN_REDEEM
-
IMAGE
public static final BasicProperty<ImageVO,VoucherTypeDTO> IMAGE
-
LIMIT_BUY_AMOUNT_PER_PERIOD
public static final BasicProperty<Boolean,VoucherTypeDTO> LIMIT_BUY_AMOUNT_PER_PERIOD
-
MAX_BALANCE
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MAX_BALANCE
-
MAX_BUY_AMOUNT
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MAX_BUY_AMOUNT
-
MAX_BUY_AMOUNT_PER_PERIOD
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MAX_BUY_AMOUNT_PER_PERIOD
-
MAX_BUY_AMOUNT_PERIOD
public static final BasicProperty<TimeIntervalDTO,VoucherTypeDTO> MAX_BUY_AMOUNT_PERIOD
-
MAX_OPEN_AMOUNT_PER_USER
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MAX_OPEN_AMOUNT_PER_USER
-
MAX_TOP_UP_AMOUNT
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MAX_TOP_UP_AMOUNT
-
MAX_TOTAL_BUY
public static final BasicProperty<Integer,VoucherTypeDTO> MAX_TOTAL_BUY
-
MAX_TOTAL_OPEN_AMOUNT
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MAX_TOTAL_OPEN_AMOUNT
-
MAX_VOUCHERS_PER_BUY
public static final BasicProperty<Integer,VoucherTypeDTO> MAX_VOUCHERS_PER_BUY
-
MIN_BUY_AMOUNT
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MIN_BUY_AMOUNT
-
MIN_TOP_UP_AMOUNT
public static final BasicProperty<BigDecimal,VoucherTypeDTO> MIN_TOP_UP_AMOUNT
-
MINIMUM_TIME_TO_REDEEM
public static final BasicProperty<TimeIntervalDTO,VoucherTypeDTO> MINIMUM_TIME_TO_REDEEM
-
PAYMENT_DESTINATION
public static final BasicProperty<VoucherPaymentDestination,VoucherTypeDTO> PAYMENT_DESTINATION
-
PAYMENT_DESTINATION_USER
public static final BasicProperty<UserVO,VoucherTypeDTO> PAYMENT_DESTINATION_USER
-
REDEEM_ALLOWED_GROUPS
public static final SetProperty<BasicGroupVO,VoucherTypeDTO> REDEEM_ALLOWED_GROUPS
-
REDEEM_ALLOWED_USERS
public static final SetProperty<UserVO,VoucherTypeDTO> REDEEM_ALLOWED_USERS
-
REDEEM_ON_WEEK_DAYS
public static final SetProperty<WeekDay,VoucherTypeDTO> REDEEM_ON_WEEK_DAYS
-
REDEEM_RESTRICT
public static final BasicProperty<VoucherRedeemRestrictTo,VoucherTypeDTO> REDEEM_RESTRICT
-
TEMPLATE
public static final BasicProperty<VoucherTemplateVO,VoucherTypeDTO> TEMPLATE
-
VOUCHER_DESCRIPTION
public static final BasicProperty<String,VoucherTypeDTO> VOUCHER_DESCRIPTION
-
VOUCHER_TITLE
public static final BasicProperty<String,VoucherTypeDTO> VOUCHER_TITLE
-
-
Constructor Detail
-
VoucherTypeDTO
public VoucherTypeDTO()
-
VoucherTypeDTO
public VoucherTypeDTO(Long id)
-
VoucherTypeDTO
public VoucherTypeDTO(Property<T,? super VoucherTypeDTO> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classConfigurationEntityDTO
-
getAccountName
public String getAccountName()
-
setAccountName
public void setAccountName(String accountName)
-
isAllowBuying
public boolean isAllowBuying()
-
setAllowBuying
public void setAllowBuying(boolean allowBuying)
-
isAllowPartialRedeems
public boolean isAllowPartialRedeems()
-
setAllowPartialRedeems
public void setAllowPartialRedeems(boolean allowPartialRedeems)
-
getBuyAllowedGroups
public Set<BasicGroupVO> getBuyAllowedGroups()
-
setBuyAllowedGroups
public void setBuyAllowedGroups(Set<BasicGroupVO> buyAllowedGroups)
-
getBuyUntilDate
public DateTime getBuyUntilDate()
-
setBuyUntilDate
public void setBuyUntilDate(DateTime buyUntilDate)
-
getCategory
public VoucherCategoryVO getCategory()
-
setCategory
public void setCategory(VoucherCategoryVO category)
-
getConfiguration
public VoucherConfigurationVO getConfiguration()
-
setConfiguration
public void setConfiguration(VoucherConfigurationVO configuration)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getExpirationDate
public DateTime getExpirationDate()
-
setExpirationDate
public void setExpirationDate(DateTime expirationDate)
-
getExpirationInterval
public TimeIntervalDTO getExpirationInterval()
-
setExpirationInterval
public void setExpirationInterval(TimeIntervalDTO expirationInterval)
-
getExpirationType
public VoucherExpirationType getExpirationType()
-
setExpirationType
public void setExpirationType(VoucherExpirationType expirationType)
-
getGift
public VoucherGiftOption getGift()
-
setGift
public void setGift(VoucherGiftOption gift)
-
getHideBalanceInRedeem
public Boolean getHideBalanceInRedeem()
-
setHideBalanceInRedeem
public void setHideBalanceInRedeem(Boolean hideBalanceInRedeem)
-
getImage
public ImageVO getImage()
-
setImage
public void setImage(ImageVO image)
-
isLimitBuyAmountPerPeriod
public boolean isLimitBuyAmountPerPeriod()
-
setLimitBuyAmountPerPeriod
public void setLimitBuyAmountPerPeriod(boolean limitBuyAmountPerPeriod)
-
getMaxBalance
public BigDecimal getMaxBalance()
-
setMaxBalance
public void setMaxBalance(BigDecimal maxBalance)
-
getMaxBuyAmount
public BigDecimal getMaxBuyAmount()
-
setMaxBuyAmount
public void setMaxBuyAmount(BigDecimal maxBuyAmount)
-
getMaxBuyAmountPerPeriod
public BigDecimal getMaxBuyAmountPerPeriod()
-
setMaxBuyAmountPerPeriod
public void setMaxBuyAmountPerPeriod(BigDecimal maxBuyAmountPerPeriod)
-
getMaxBuyAmountPeriod
public TimeIntervalDTO getMaxBuyAmountPeriod()
-
setMaxBuyAmountPeriod
public void setMaxBuyAmountPeriod(TimeIntervalDTO maxBuyAmountPeriod)
-
getMaxOpenAmountPerUser
public BigDecimal getMaxOpenAmountPerUser()
-
setMaxOpenAmountPerUser
public void setMaxOpenAmountPerUser(BigDecimal maxOpenAmountPerUser)
-
getMaxTopUpAmount
public BigDecimal getMaxTopUpAmount()
-
setMaxTopUpAmount
public void setMaxTopUpAmount(BigDecimal maxTopUpAmount)
-
getMaxTotalBuy
public Integer getMaxTotalBuy()
-
setMaxTotalBuy
public void setMaxTotalBuy(Integer maxTotalBuy)
-
getMaxTotalOpenAmount
public BigDecimal getMaxTotalOpenAmount()
-
setMaxTotalOpenAmount
public void setMaxTotalOpenAmount(BigDecimal maxTotalOpenAmount)
-
getMaxVouchersPerBuy
public Integer getMaxVouchersPerBuy()
-
setMaxVouchersPerBuy
public void setMaxVouchersPerBuy(Integer maxVouchersPerBuy)
-
getMinBuyAmount
public BigDecimal getMinBuyAmount()
-
setMinBuyAmount
public void setMinBuyAmount(BigDecimal minBuyAmount)
-
getMinTopUpAmount
public BigDecimal getMinTopUpAmount()
-
setMinTopUpAmount
public void setMinTopUpAmount(BigDecimal minTopUpAmount)
-
getMinimumTimeToRedeem
public TimeIntervalDTO getMinimumTimeToRedeem()
-
setMinimumTimeToRedeem
public void setMinimumTimeToRedeem(TimeIntervalDTO minimumTimeToRedeem)
-
getPaymentDestination
public VoucherPaymentDestination getPaymentDestination()
-
setPaymentDestination
public void setPaymentDestination(VoucherPaymentDestination paymentDestination)
-
getPaymentDestinationUser
public UserVO getPaymentDestinationUser()
-
setPaymentDestinationUser
public void setPaymentDestinationUser(UserVO paymentDestinationUser)
-
getRedeemAllowedGroups
public Set<BasicGroupVO> getRedeemAllowedGroups()
-
setRedeemAllowedGroups
public void setRedeemAllowedGroups(Set<BasicGroupVO> redeemAllowedGroups)
-
getRedeemRestrict
public VoucherRedeemRestrictTo getRedeemRestrict()
-
setRedeemRestrict
public void setRedeemRestrict(VoucherRedeemRestrictTo redeemRestrict)
-
getTemplate
public VoucherTemplateVO getTemplate()
-
setTemplate
public void setTemplate(VoucherTemplateVO template)
-
getVoucherDescription
public String getVoucherDescription()
-
setVoucherDescription
public void setVoucherDescription(String voucherDescription)
-
getVoucherTitle
public String getVoucherTitle()
-
setVoucherTitle
public void setVoucherTitle(String voucherTitle)
-
-