@Entity public class VoucherType extends ConfigurationEntity implements HasCurrency, ImageOwner<VoucherType,VoucherTypeImage>
NULL_PART| Constructor and Description |
|---|
VoucherType() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<BasicGroup> |
getBuyAllowedGroups() |
java.util.Date |
getBuyUntilDate() |
VoucherConfiguration |
getConfiguration() |
Currency |
getCurrency() |
java.util.Date |
getExpirationDate() |
TimeInterval |
getExpirationInterval() |
VoucherExpirationType |
getExpirationType() |
java.math.BigDecimal |
getFixedBuyAmount() |
VoucherTypeImage |
getImage()
De-normalized reference to the first image
|
java.util.List<VoucherTypeImage> |
getImages() |
java.math.BigDecimal |
getMaxBuyAmount() |
DatePeriod |
getMaxBuyAmountActualPeriod() |
java.math.BigDecimal |
getMaxBuyAmountActualSum() |
TimeInterval |
getMaxBuyAmountPeriod() |
java.math.BigDecimal |
getMaxBuyAmountPerPeriod() |
java.math.BigDecimal |
getMaxOpenAmountPerUser() |
java.math.BigDecimal |
getMaxTotalOpenAmount() |
java.math.BigDecimal |
getMinBuyAmount() |
TimeInterval |
getMinimumTimeToRedeem() |
Network |
getNetwork()
Returns the network this entity belongs to
|
VoucherPaymentDestination |
getPaymentDestination() |
User |
getPaymentDestinationUser() |
java.util.Set<BasicGroup> |
getRedeemAllowedGroups() |
java.util.Set<User> |
getRedeemAllowedUsers() |
java.util.Set<WeekDay> |
getRedeemOnWeekDays() |
VoucherRedeemRestrictTo |
getRedeemRestrict() |
java.lang.String |
getVoucherDescription() |
java.lang.String |
getVoucherTitle() |
boolean |
isAllowBuying() |
boolean |
isBuyUntilDateExpirationNotified() |
boolean |
isEnabled() |
boolean |
isLimitBuyAmountPerPeriod() |
boolean |
isUseFixedBuyAmount() |
void |
setAllowBuying(boolean allowBuying) |
void |
setBuyAllowedGroups(java.util.Set<BasicGroup> buyAllowedGroups) |
void |
setBuyUntilDate(java.util.Date buyUntilDate) |
void |
setBuyUntilDateExpirationNotified(boolean buyUntilDateExpirationNotified) |
void |
setConfiguration(VoucherConfiguration configuration) |
void |
setEnabled(boolean enabled) |
void |
setExpirationDate(java.util.Date expirationDate) |
void |
setExpirationInterval(TimeInterval expirationInterval) |
void |
setExpirationType(VoucherExpirationType expirationType) |
void |
setImage(VoucherTypeImage image)
De-normalized reference to the first image
|
void |
setImages(java.util.List<VoucherTypeImage> images) |
void |
setMaxBuyAmount(java.math.BigDecimal maxBuyAmount) |
void |
setMaxBuyAmountActualPeriod(DatePeriod maxBuyAmountActualPeriod) |
void |
setMaxBuyAmountActualSum(java.math.BigDecimal maxBuyAmountActualSum) |
void |
setMaxBuyAmountPeriod(TimeInterval maxBuyAmountPeriod) |
void |
setMaxBuyAmountPerPeriod(java.math.BigDecimal maxBuyAmountPerPeriod) |
void |
setMaxOpenAmountPerUser(java.math.BigDecimal maxOpenAmountPerUser) |
void |
setMaxTotalOpenAmount(java.math.BigDecimal maxTotalOpenAmount) |
void |
setMinBuyAmount(java.math.BigDecimal minBuyAmount) |
void |
setMinimumTimeToRedeem(TimeInterval minimumTimeToRedeem) |
void |
setPaymentDestination(VoucherPaymentDestination paymentDestination) |
void |
setPaymentDestinationUser(User paymentDestinationUser) |
void |
setRedeemAllowedGroups(java.util.Set<BasicGroup> redeemAllowedGroups) |
void |
setRedeemAllowedUsers(java.util.Set<User> redeemAllowedUsers) |
void |
setRedeemOnWeekDays(java.util.Set<WeekDay> weekDays) |
void |
setRedeemRestrict(VoucherRedeemRestrictTo redeemRestrict) |
void |
setVoucherDescription(java.lang.String voucherDescription) |
void |
setVoucherTitle(java.lang.String voucherTitle) |
getDescription, getInternalName, setDescription, setInternalName, toStringcompareTo, getName, getNames, setNamegetDataTranslationType, getLogType, getVersionisGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransientpublic java.util.Set<BasicGroup> getBuyAllowedGroups()
public java.util.Date getBuyUntilDate()
public VoucherConfiguration getConfiguration()
public Currency getCurrency()
getCurrency in interface HasCurrencypublic java.util.Date getExpirationDate()
public TimeInterval getExpirationInterval()
public VoucherExpirationType getExpirationType()
public java.math.BigDecimal getFixedBuyAmount()
public VoucherTypeImage getImage()
ImageOwnergetImage in interface ImageOwner<VoucherType,VoucherTypeImage>public java.util.List<VoucherTypeImage> getImages()
getImages in interface ImageOwner<VoucherType,VoucherTypeImage>public java.math.BigDecimal getMaxBuyAmount()
public DatePeriod getMaxBuyAmountActualPeriod()
public java.math.BigDecimal getMaxBuyAmountActualSum()
public TimeInterval getMaxBuyAmountPeriod()
public java.math.BigDecimal getMaxBuyAmountPerPeriod()
public java.math.BigDecimal getMaxOpenAmountPerUser()
public java.math.BigDecimal getMaxTotalOpenAmount()
public java.math.BigDecimal getMinBuyAmount()
public TimeInterval getMinimumTimeToRedeem()
public Network getNetwork()
NetworkedEntitygetNetwork in class NetworkedEntitypublic VoucherPaymentDestination getPaymentDestination()
public User getPaymentDestinationUser()
public java.util.Set<BasicGroup> getRedeemAllowedGroups()
public java.util.Set<User> getRedeemAllowedUsers()
public java.util.Set<WeekDay> getRedeemOnWeekDays()
public VoucherRedeemRestrictTo getRedeemRestrict()
public java.lang.String getVoucherDescription()
public java.lang.String getVoucherTitle()
public boolean isAllowBuying()
public boolean isBuyUntilDateExpirationNotified()
public boolean isEnabled()
public boolean isLimitBuyAmountPerPeriod()
public boolean isUseFixedBuyAmount()
public void setAllowBuying(boolean allowBuying)
public void setBuyAllowedGroups(java.util.Set<BasicGroup> buyAllowedGroups)
public void setBuyUntilDate(java.util.Date buyUntilDate)
public void setBuyUntilDateExpirationNotified(boolean buyUntilDateExpirationNotified)
public void setConfiguration(VoucherConfiguration configuration)
public void setEnabled(boolean enabled)
public void setExpirationDate(java.util.Date expirationDate)
public void setExpirationInterval(TimeInterval expirationInterval)
public void setExpirationType(VoucherExpirationType expirationType)
public void setImage(VoucherTypeImage image)
ImageOwnersetImage in interface ImageOwner<VoucherType,VoucherTypeImage>public void setImages(java.util.List<VoucherTypeImage> images)
setImages in interface ImageOwner<VoucherType,VoucherTypeImage>public void setMaxBuyAmount(java.math.BigDecimal maxBuyAmount)
public void setMaxBuyAmountActualPeriod(DatePeriod maxBuyAmountActualPeriod)
public void setMaxBuyAmountActualSum(java.math.BigDecimal maxBuyAmountActualSum)
public void setMaxBuyAmountPeriod(TimeInterval maxBuyAmountPeriod)
public void setMaxBuyAmountPerPeriod(java.math.BigDecimal maxBuyAmountPerPeriod)
public void setMaxOpenAmountPerUser(java.math.BigDecimal maxOpenAmountPerUser)
public void setMaxTotalOpenAmount(java.math.BigDecimal maxTotalOpenAmount)
public void setMinBuyAmount(java.math.BigDecimal minBuyAmount)
public void setMinimumTimeToRedeem(TimeInterval minimumTimeToRedeem)
public void setPaymentDestination(VoucherPaymentDestination paymentDestination)
public void setPaymentDestinationUser(User paymentDestinationUser)
public void setRedeemAllowedGroups(java.util.Set<BasicGroup> redeemAllowedGroups)
public void setRedeemAllowedUsers(java.util.Set<User> redeemAllowedUsers)
public void setRedeemOnWeekDays(java.util.Set<WeekDay> weekDays)
public void setRedeemRestrict(VoucherRedeemRestrictTo redeemRestrict)
public void setVoucherDescription(java.lang.String voucherDescription)
public void setVoucherTitle(java.lang.String voucherTitle)