Class BasicCreateVoucherData
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.banking.vouchers.BasicVoucherData
-
- org.cyclos.model.banking.vouchers.BasicVoucherDataWithConfirmationPassword
-
- org.cyclos.model.banking.vouchers.BasicCreateVoucherData
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BuyVoucherData,GenerateVouchersData
public abstract class BasicCreateVoucherData extends BasicVoucherDataWithConfirmationPassword
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<AccountWithStatusVO,BasicCreateVoucherData>ACCOUNTstatic ListProperty<VoucherCategoryVO,BasicCreateVoucherData>CATEGORIESstatic StringCLASS_NAMEstatic ListProperty<CustomFieldDetailedVO,BasicCreateVoucherData>CUSTOM_FIELDSstatic BasicProperty<DateTime,BasicCreateVoucherData>EXPIRATION_DATEstatic BasicProperty<TimeIntervalDTO,BasicCreateVoucherData>MINIMUM_TIME_TO_REDEEMstatic BasicProperty<DateTime,BasicCreateVoucherData>REDEEM_AFTER_DATEstatic ListProperty<WeekDay,BasicCreateVoucherData>REDEEM_ON_WEEK_DAYSstatic ListProperty<VoucherTypeDetailedVO,BasicCreateVoucherData>TYPESstatic BasicProperty<UserVO,BasicCreateVoucherData>USER-
Fields inherited from class org.cyclos.model.banking.vouchers.BasicVoucherDataWithConfirmationPassword
CONFIRMATION_PASSWORD_INPUT
-
Fields inherited from class org.cyclos.model.banking.vouchers.BasicVoucherData
TYPE
-
-
Constructor Summary
Constructors Constructor Description BasicCreateVoucherData()BasicCreateVoucherData(Property<T,? super BasicCreateVoucherData> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Property<?,?>>doGetProperties()AccountWithStatusVOgetAccount()List<VoucherCategoryVO>getCategories()List<CustomFieldDetailedVO>getCustomFields()DateTimegetExpirationDate()TimeIntervalDTOgetMinimumTimeToRedeem()DateTimegetRedeemAfterDate()List<WeekDay>getRedeemOnWeekDays()List<VoucherTypeDetailedVO>getTypes()UserVOgetUser()voidsetAccount(AccountWithStatusVO account)voidsetCategories(List<VoucherCategoryVO> categories)voidsetCustomFields(List<CustomFieldDetailedVO> customFields)voidsetExpirationDate(DateTime expirationDate)voidsetMinimumTimeToRedeem(TimeIntervalDTO minimumTimeToRedeem)voidsetRedeemAfterDate(DateTime redeemAfterDate)voidsetRedeemOnWeekDays(List<WeekDay> redeemOnWeekDays)voidsetTypes(List<VoucherTypeDetailedVO> types)voidsetUser(UserVO user)-
Methods inherited from class org.cyclos.model.banking.vouchers.BasicVoucherDataWithConfirmationPassword
getConfirmationPasswordInput, setConfirmationPasswordInput
-
Methods inherited from class org.cyclos.model.banking.vouchers.BasicVoucherData
getType, setType
-
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
-
ACCOUNT
public static final BasicProperty<AccountWithStatusVO,BasicCreateVoucherData> ACCOUNT
-
CATEGORIES
public static final ListProperty<VoucherCategoryVO,BasicCreateVoucherData> CATEGORIES
-
CUSTOM_FIELDS
public static final ListProperty<CustomFieldDetailedVO,BasicCreateVoucherData> CUSTOM_FIELDS
-
EXPIRATION_DATE
public static final BasicProperty<DateTime,BasicCreateVoucherData> EXPIRATION_DATE
-
MINIMUM_TIME_TO_REDEEM
public static final BasicProperty<TimeIntervalDTO,BasicCreateVoucherData> MINIMUM_TIME_TO_REDEEM
-
REDEEM_AFTER_DATE
public static final BasicProperty<DateTime,BasicCreateVoucherData> REDEEM_AFTER_DATE
-
REDEEM_ON_WEEK_DAYS
public static final ListProperty<WeekDay,BasicCreateVoucherData> REDEEM_ON_WEEK_DAYS
-
TYPES
public static final ListProperty<VoucherTypeDetailedVO,BasicCreateVoucherData> TYPES
-
USER
public static final BasicProperty<UserVO,BasicCreateVoucherData> USER
-
-
Constructor Detail
-
BasicCreateVoucherData
public BasicCreateVoucherData()
-
BasicCreateVoucherData
public BasicCreateVoucherData(Property<T,? super BasicCreateVoucherData> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBasicVoucherDataWithConfirmationPassword
-
getAccount
public AccountWithStatusVO getAccount()
-
setAccount
public void setAccount(AccountWithStatusVO account)
-
getCategories
public List<VoucherCategoryVO> getCategories()
-
setCategories
public void setCategories(List<VoucherCategoryVO> categories)
-
getCustomFields
public List<CustomFieldDetailedVO> getCustomFields()
-
setCustomFields
public void setCustomFields(List<CustomFieldDetailedVO> customFields)
-
getExpirationDate
public DateTime getExpirationDate()
-
setExpirationDate
public void setExpirationDate(DateTime expirationDate)
-
getMinimumTimeToRedeem
public TimeIntervalDTO getMinimumTimeToRedeem()
-
setMinimumTimeToRedeem
public void setMinimumTimeToRedeem(TimeIntervalDTO minimumTimeToRedeem)
-
getRedeemAfterDate
public DateTime getRedeemAfterDate()
-
setRedeemAfterDate
public void setRedeemAfterDate(DateTime redeemAfterDate)
-
getTypes
public List<VoucherTypeDetailedVO> getTypes()
-
setTypes
public void setTypes(List<VoucherTypeDetailedVO> types)
-
getUser
public UserVO getUser()
-
setUser
public void setUser(UserVO user)
-
-