Package org.cyclos.entities.users
Class ProductVoucher
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.users.ProductVoucher
-
- All Implemented Interfaces:
Cloneable,HasNetwork,ProcessableForProxying,IEntity
- Direct Known Subclasses:
ProductAdminVoucher,ProductUserVoucher
@Entity public abstract class ProductVoucher extends BaseEntity
Stores the relationship between aProductand aVoucherConfiguration, granting permissions for vouchers
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description ProductVoucher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoucherConfigurationgetConfiguration()NetworkgetNetwork()Returns the network this entity belongs toProductgetProduct()booleanisBuy()booleanisChangePin()booleanisNotificationSettings()booleanisRedeem()booleanisRefund()booleanisSend()booleanisTopUp()voidsetBuy(boolean buy)voidsetChangePin(boolean changePin)voidsetConfiguration(VoucherConfiguration configuration)voidsetNotificationSettings(boolean notificationSettings)voidsetProduct(Product product)voidsetRedeem(boolean redeem)voidsetRefund(boolean refund)voidsetSend(boolean send)voidsetTopUp(boolean topUp)-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getConfiguration
public VoucherConfiguration getConfiguration()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to
-
getProduct
public Product getProduct()
-
isBuy
public boolean isBuy()
-
isChangePin
public boolean isChangePin()
-
isNotificationSettings
public boolean isNotificationSettings()
-
isRedeem
public boolean isRedeem()
-
isRefund
public boolean isRefund()
-
isSend
public boolean isSend()
-
isTopUp
public boolean isTopUp()
-
setBuy
public void setBuy(boolean buy)
-
setChangePin
public void setChangePin(boolean changePin)
-
setConfiguration
public void setConfiguration(VoucherConfiguration configuration)
-
setNotificationSettings
public void setNotificationSettings(boolean notificationSettings)
-
setProduct
public void setProduct(Product product)
-
setRedeem
public void setRedeem(boolean redeem)
-
setRefund
public void setRefund(boolean refund)
-
setSend
public void setSend(boolean send)
-
setTopUp
public void setTopUp(boolean topUp)
-
-