Package de.hybris.platform.voucher.jalo
Class GeneratedVoucher
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
Voucher
public abstract class GeneratedVoucher extends Discount
Generated class for typeVoucher
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
DESCRIPTION
Qualifier of theVoucher.description
attributestatic java.lang.String
FREESHIPPING
Qualifier of theVoucher.freeShipping
attributestatic java.lang.String
INVALIDATIONS
Qualifier of theVoucher.invalidations
attributeprotected static OneToManyHandler<VoucherInvalidation>
INVALIDATIONSHANDLER
OneToManyHandler
for handling 1:n INVALIDATIONS's relation attributes from 'many' side.static java.lang.String
RESTRICTIONS
Qualifier of theVoucher.restrictions
attributeprotected static OneToManyHandler<Restriction>
RESTRICTIONSHANDLER
OneToManyHandler
for handling 1:n RESTRICTIONS's relation attributes from 'many' side.static java.lang.String
VALUESTRING
Qualifier of theVoucher.valueString
attribute-
Fields inherited from class de.hybris.platform.jalo.order.price.Discount
EXTERNAL_KEY, GLOBAL, VALUE_END, VALUE_START
-
Fields inherited from class de.hybris.platform.jalo.order.price.GeneratedDiscount
ABSOLUTE, CODE, CURRENCY, DISCOUNTSTRING, NAME, ORDERDISCOUNTRELATION_MARKMODIFIED, ORDERDISCOUNTRELATION_SRC_ORDERED, ORDERDISCOUNTRELATION_TGT_ORDERED, ORDERS, PRIORITY, VALUE
-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedVoucher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addToInvalidations(SessionContext ctx, VoucherInvalidation value)
Generated method - Addsvalue
to invalidations.void
addToInvalidations(VoucherInvalidation value)
Generated method - Addsvalue
to invalidations.void
addToRestrictions(SessionContext ctx, Restriction value)
Generated method - Addsvalue
to restrictions.void
addToRestrictions(Restriction value)
Generated method - Addsvalue
to restrictions.java.util.Map<Language,java.lang.String>
getAllDescription()
Generated method - Getter of theVoucher.description
attribute.java.util.Map<Language,java.lang.String>
getAllDescription(SessionContext ctx)
Generated method - Getter of theVoucher.description
attribute.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
java.lang.String
getDescription()
Generated method - Getter of theVoucher.description
attribute.java.lang.String
getDescription(SessionContext ctx)
Generated method - Getter of theVoucher.description
attribute.java.util.Collection<VoucherInvalidation>
getInvalidations()
Generated method - Getter of theVoucher.invalidations
attribute.java.util.Collection<VoucherInvalidation>
getInvalidations(SessionContext ctx)
Generated method - Getter of theVoucher.invalidations
attribute.java.util.Set<Restriction>
getRestrictions()
Generated method - Getter of theVoucher.restrictions
attribute.java.util.Set<Restriction>
getRestrictions(SessionContext ctx)
Generated method - Getter of theVoucher.restrictions
attribute.java.lang.String
getValueString()
Generated method - Getter of theVoucher.valueString
attribute.abstract java.lang.String
getValueString(SessionContext ctx)
Generated method - Getter of theVoucher.valueString
attribute.java.lang.Boolean
isFreeShipping()
Generated method - Getter of theVoucher.freeShipping
attribute.java.lang.Boolean
isFreeShipping(SessionContext ctx)
Generated method - Getter of theVoucher.freeShipping
attribute.boolean
isFreeShippingAsPrimitive()
Generated method - Getter of theVoucher.freeShipping
attribute.boolean
isFreeShippingAsPrimitive(SessionContext ctx)
Generated method - Getter of theVoucher.freeShipping
attribute.void
removeFromInvalidations(SessionContext ctx, VoucherInvalidation value)
Generated method - Removesvalue
from invalidations.void
removeFromInvalidations(VoucherInvalidation value)
Generated method - Removesvalue
from invalidations.void
removeFromRestrictions(SessionContext ctx, Restriction value)
Generated method - Removesvalue
from restrictions.void
removeFromRestrictions(Restriction value)
Generated method - Removesvalue
from restrictions.void
setAllDescription(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theVoucher.description
attribute.void
setAllDescription(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theVoucher.description
attribute.void
setDescription(SessionContext ctx, java.lang.String value)
Generated method - Setter of theVoucher.description
attribute.void
setDescription(java.lang.String value)
Generated method - Setter of theVoucher.description
attribute.void
setFreeShipping(boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.void
setFreeShipping(SessionContext ctx, boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.void
setFreeShipping(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.void
setFreeShipping(java.lang.Boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.void
setInvalidations(SessionContext ctx, java.util.Collection<VoucherInvalidation> value)
Generated method - Setter of theVoucher.invalidations
attribute.void
setInvalidations(java.util.Collection<VoucherInvalidation> value)
Generated method - Setter of theVoucher.invalidations
attribute.void
setRestrictions(SessionContext ctx, java.util.Set<Restriction> value)
Generated method - Setter of theVoucher.restrictions
attribute.void
setRestrictions(java.util.Set<Restriction> value)
Generated method - Setter of theVoucher.restrictions
attribute.-
Methods inherited from class de.hybris.platform.jalo.order.price.Discount
addOrder, createItem, getAllNames, getDiscountstring, getDiscountString, getDiscountValue, getPriority, getValue, isAbsolute, notifyOrderCalculated, notifyOrderRemoval, removeOrder, setAllNames, setCode
-
Methods inherited from class de.hybris.platform.jalo.order.price.GeneratedDiscount
addToOrders, addToOrders, getAllName, getAllName, getCode, getCode, getCurrency, getCurrency, getDiscountString, getName, getName, getOrders, getOrders, getOrdersCount, getOrdersCount, getPriority, getPriorityAsPrimitive, getPriorityAsPrimitive, getValue, getValueAsPrimitive, getValueAsPrimitive, isAbsolute, isAbsoluteAsPrimitive, isAbsoluteAsPrimitive, isGlobal, isGlobal, isGlobalAsPrimitive, isGlobalAsPrimitive, isMarkModifiedDisabled, removeFromOrders, removeFromOrders, setAllName, setAllName, setCode, setCurrency, setCurrency, setGlobal, setGlobal, setGlobal, setGlobal, setName, setName, setOrders, setOrders, setPriority, setPriority, setPriority, setPriority, setValue, setValue, setValue, setValue
-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Qualifier of theVoucher.description
attribute- See Also:
- Constant Field Values
-
FREESHIPPING
public static final java.lang.String FREESHIPPING
Qualifier of theVoucher.freeShipping
attribute- See Also:
- Constant Field Values
-
VALUESTRING
public static final java.lang.String VALUESTRING
Qualifier of theVoucher.valueString
attribute- See Also:
- Constant Field Values
-
RESTRICTIONS
public static final java.lang.String RESTRICTIONS
Qualifier of theVoucher.restrictions
attribute- See Also:
- Constant Field Values
-
INVALIDATIONS
public static final java.lang.String INVALIDATIONS
Qualifier of theVoucher.invalidations
attribute- See Also:
- Constant Field Values
-
RESTRICTIONSHANDLER
protected static final OneToManyHandler<Restriction> RESTRICTIONSHANDLER
OneToManyHandler
for handling 1:n RESTRICTIONS's relation attributes from 'many' side.
-
INVALIDATIONSHANDLER
protected static final OneToManyHandler<VoucherInvalidation> INVALIDATIONSHANDLER
OneToManyHandler
for handling 1:n INVALIDATIONS's relation attributes from 'many' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModes
in classGeneratedDiscount
-
getDescription
public java.lang.String getDescription(SessionContext ctx)
Generated method - Getter of theVoucher.description
attribute.- Returns:
- the description - the description of the voucher.
-
getDescription
public java.lang.String getDescription()
Generated method - Getter of theVoucher.description
attribute.- Returns:
- the description - the description of the voucher.
-
getAllDescription
public java.util.Map<Language,java.lang.String> getAllDescription(SessionContext ctx)
Generated method - Getter of theVoucher.description
attribute.- Returns:
- the localized description - the description of the voucher.
-
getAllDescription
public java.util.Map<Language,java.lang.String> getAllDescription()
Generated method - Getter of theVoucher.description
attribute.- Returns:
- the localized description - the description of the voucher.
-
setDescription
public void setDescription(SessionContext ctx, java.lang.String value)
Generated method - Setter of theVoucher.description
attribute.- Parameters:
value
- the description - the description of the voucher.
-
setDescription
public void setDescription(java.lang.String value)
Generated method - Setter of theVoucher.description
attribute.- Parameters:
value
- the description - the description of the voucher.
-
setAllDescription
public void setAllDescription(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theVoucher.description
attribute.- Parameters:
value
- the description - the description of the voucher.
-
setAllDescription
public void setAllDescription(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theVoucher.description
attribute.- Parameters:
value
- the description - the description of the voucher.
-
isFreeShipping
public java.lang.Boolean isFreeShipping(SessionContext ctx)
Generated method - Getter of theVoucher.freeShipping
attribute.- Returns:
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
isFreeShipping
public java.lang.Boolean isFreeShipping()
Generated method - Getter of theVoucher.freeShipping
attribute.- Returns:
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
isFreeShippingAsPrimitive
public boolean isFreeShippingAsPrimitive(SessionContext ctx)
Generated method - Getter of theVoucher.freeShipping
attribute.- Returns:
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
isFreeShippingAsPrimitive
public boolean isFreeShippingAsPrimitive()
Generated method - Getter of theVoucher.freeShipping
attribute.- Returns:
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
setFreeShipping
public void setFreeShipping(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.- Parameters:
value
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
setFreeShipping
public void setFreeShipping(java.lang.Boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.- Parameters:
value
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
setFreeShipping
public void setFreeShipping(SessionContext ctx, boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.- Parameters:
value
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
setFreeShipping
public void setFreeShipping(boolean value)
Generated method - Setter of theVoucher.freeShipping
attribute.- Parameters:
value
- the freeShipping - Specifies if the order this voucher is applied to is shipped for free (true) or not (false). Default is not (false).
-
getInvalidations
public java.util.Collection<VoucherInvalidation> getInvalidations(SessionContext ctx)
Generated method - Getter of theVoucher.invalidations
attribute.- Returns:
- the invalidations
-
getInvalidations
public java.util.Collection<VoucherInvalidation> getInvalidations()
Generated method - Getter of theVoucher.invalidations
attribute.- Returns:
- the invalidations
-
setInvalidations
public void setInvalidations(SessionContext ctx, java.util.Collection<VoucherInvalidation> value)
Generated method - Setter of theVoucher.invalidations
attribute.- Parameters:
value
- the invalidations
-
setInvalidations
public void setInvalidations(java.util.Collection<VoucherInvalidation> value)
Generated method - Setter of theVoucher.invalidations
attribute.- Parameters:
value
- the invalidations
-
addToInvalidations
public void addToInvalidations(SessionContext ctx, VoucherInvalidation value)
Generated method - Addsvalue
to invalidations.- Parameters:
value
- the item to add to invalidations
-
addToInvalidations
public void addToInvalidations(VoucherInvalidation value)
Generated method - Addsvalue
to invalidations.- Parameters:
value
- the item to add to invalidations
-
removeFromInvalidations
public void removeFromInvalidations(SessionContext ctx, VoucherInvalidation value)
Generated method - Removesvalue
from invalidations.- Parameters:
value
- the item to remove from invalidations
-
removeFromInvalidations
public void removeFromInvalidations(VoucherInvalidation value)
Generated method - Removesvalue
from invalidations.- Parameters:
value
- the item to remove from invalidations
-
getRestrictions
public java.util.Set<Restriction> getRestrictions(SessionContext ctx)
Generated method - Getter of theVoucher.restrictions
attribute.- Returns:
- the restrictions
-
getRestrictions
public java.util.Set<Restriction> getRestrictions()
Generated method - Getter of theVoucher.restrictions
attribute.- Returns:
- the restrictions
-
setRestrictions
public void setRestrictions(SessionContext ctx, java.util.Set<Restriction> value)
Generated method - Setter of theVoucher.restrictions
attribute.- Parameters:
value
- the restrictions
-
setRestrictions
public void setRestrictions(java.util.Set<Restriction> value)
Generated method - Setter of theVoucher.restrictions
attribute.- Parameters:
value
- the restrictions
-
addToRestrictions
public void addToRestrictions(SessionContext ctx, Restriction value)
Generated method - Addsvalue
to restrictions.- Parameters:
value
- the item to add to restrictions
-
addToRestrictions
public void addToRestrictions(Restriction value)
Generated method - Addsvalue
to restrictions.- Parameters:
value
- the item to add to restrictions
-
removeFromRestrictions
public void removeFromRestrictions(SessionContext ctx, Restriction value)
Generated method - Removesvalue
from restrictions.- Parameters:
value
- the item to remove from restrictions
-
removeFromRestrictions
public void removeFromRestrictions(Restriction value)
Generated method - Removesvalue
from restrictions.- Parameters:
value
- the item to remove from restrictions
-
getValueString
public abstract java.lang.String getValueString(SessionContext ctx)
Generated method - Getter of theVoucher.valueString
attribute.- Returns:
- the valueString - the value of this voucher to display.
-
getValueString
public java.lang.String getValueString()
Generated method - Getter of theVoucher.valueString
attribute.- Returns:
- the valueString - the value of this voucher to display.
-
-