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_ATTRIBUTESstatic java.lang.StringDESCRIPTIONQualifier of theVoucher.descriptionattributestatic java.lang.StringFREESHIPPINGQualifier of theVoucher.freeShippingattributestatic java.lang.StringINVALIDATIONSQualifier of theVoucher.invalidationsattributeprotected static OneToManyHandler<VoucherInvalidation>INVALIDATIONSHANDLEROneToManyHandlerfor handling 1:n INVALIDATIONS's relation attributes from 'many' side.static java.lang.StringRESTRICTIONSQualifier of theVoucher.restrictionsattributeprotected static OneToManyHandler<Restriction>RESTRICTIONSHANDLEROneToManyHandlerfor handling 1:n RESTRICTIONS's relation attributes from 'many' side.static java.lang.StringVALUESTRINGQualifier of theVoucher.valueStringattribute-
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 voidaddToInvalidations(SessionContext ctx, VoucherInvalidation value)Generated method - Addsvalueto invalidations.voidaddToInvalidations(VoucherInvalidation value)Generated method - Addsvalueto invalidations.voidaddToRestrictions(SessionContext ctx, Restriction value)Generated method - Addsvalueto restrictions.voidaddToRestrictions(Restriction value)Generated method - Addsvalueto restrictions.java.util.Map<Language,java.lang.String>getAllDescription()Generated method - Getter of theVoucher.descriptionattribute.java.util.Map<Language,java.lang.String>getAllDescription(SessionContext ctx)Generated method - Getter of theVoucher.descriptionattribute.protected java.util.Map<java.lang.String,Item.AttributeMode>getDefaultAttributeModes()java.lang.StringgetDescription()Generated method - Getter of theVoucher.descriptionattribute.java.lang.StringgetDescription(SessionContext ctx)Generated method - Getter of theVoucher.descriptionattribute.java.util.Collection<VoucherInvalidation>getInvalidations()Generated method - Getter of theVoucher.invalidationsattribute.java.util.Collection<VoucherInvalidation>getInvalidations(SessionContext ctx)Generated method - Getter of theVoucher.invalidationsattribute.java.util.Set<Restriction>getRestrictions()Generated method - Getter of theVoucher.restrictionsattribute.java.util.Set<Restriction>getRestrictions(SessionContext ctx)Generated method - Getter of theVoucher.restrictionsattribute.java.lang.StringgetValueString()Generated method - Getter of theVoucher.valueStringattribute.abstract java.lang.StringgetValueString(SessionContext ctx)Generated method - Getter of theVoucher.valueStringattribute.java.lang.BooleanisFreeShipping()Generated method - Getter of theVoucher.freeShippingattribute.java.lang.BooleanisFreeShipping(SessionContext ctx)Generated method - Getter of theVoucher.freeShippingattribute.booleanisFreeShippingAsPrimitive()Generated method - Getter of theVoucher.freeShippingattribute.booleanisFreeShippingAsPrimitive(SessionContext ctx)Generated method - Getter of theVoucher.freeShippingattribute.voidremoveFromInvalidations(SessionContext ctx, VoucherInvalidation value)Generated method - Removesvaluefrom invalidations.voidremoveFromInvalidations(VoucherInvalidation value)Generated method - Removesvaluefrom invalidations.voidremoveFromRestrictions(SessionContext ctx, Restriction value)Generated method - Removesvaluefrom restrictions.voidremoveFromRestrictions(Restriction value)Generated method - Removesvaluefrom restrictions.voidsetAllDescription(SessionContext ctx, java.util.Map<Language,java.lang.String> value)Generated method - Setter of theVoucher.descriptionattribute.voidsetAllDescription(java.util.Map<Language,java.lang.String> value)Generated method - Setter of theVoucher.descriptionattribute.voidsetDescription(SessionContext ctx, java.lang.String value)Generated method - Setter of theVoucher.descriptionattribute.voidsetDescription(java.lang.String value)Generated method - Setter of theVoucher.descriptionattribute.voidsetFreeShipping(boolean value)Generated method - Setter of theVoucher.freeShippingattribute.voidsetFreeShipping(SessionContext ctx, boolean value)Generated method - Setter of theVoucher.freeShippingattribute.voidsetFreeShipping(SessionContext ctx, java.lang.Boolean value)Generated method - Setter of theVoucher.freeShippingattribute.voidsetFreeShipping(java.lang.Boolean value)Generated method - Setter of theVoucher.freeShippingattribute.voidsetInvalidations(SessionContext ctx, java.util.Collection<VoucherInvalidation> value)Generated method - Setter of theVoucher.invalidationsattribute.voidsetInvalidations(java.util.Collection<VoucherInvalidation> value)Generated method - Setter of theVoucher.invalidationsattribute.voidsetRestrictions(SessionContext ctx, java.util.Set<Restriction> value)Generated method - Setter of theVoucher.restrictionsattribute.voidsetRestrictions(java.util.Set<Restriction> value)Generated method - Setter of theVoucher.restrictionsattribute.-
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.descriptionattribute- See Also:
- Constant Field Values
-
FREESHIPPING
public static final java.lang.String FREESHIPPING
Qualifier of theVoucher.freeShippingattribute- See Also:
- Constant Field Values
-
VALUESTRING
public static final java.lang.String VALUESTRING
Qualifier of theVoucher.valueStringattribute- See Also:
- Constant Field Values
-
RESTRICTIONS
public static final java.lang.String RESTRICTIONS
Qualifier of theVoucher.restrictionsattribute- See Also:
- Constant Field Values
-
INVALIDATIONS
public static final java.lang.String INVALIDATIONS
Qualifier of theVoucher.invalidationsattribute- See Also:
- Constant Field Values
-
RESTRICTIONSHANDLER
protected static final OneToManyHandler<Restriction> RESTRICTIONSHANDLER
OneToManyHandlerfor handling 1:n RESTRICTIONS's relation attributes from 'many' side.
-
INVALIDATIONSHANDLER
protected static final OneToManyHandler<VoucherInvalidation> INVALIDATIONSHANDLER
OneToManyHandlerfor 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:
getDefaultAttributeModesin classGeneratedDiscount
-
getDescription
public java.lang.String getDescription(SessionContext ctx)
Generated method - Getter of theVoucher.descriptionattribute.- Returns:
- the description - the description of the voucher.
-
getDescription
public java.lang.String getDescription()
Generated method - Getter of theVoucher.descriptionattribute.- 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.descriptionattribute.- Returns:
- the localized description - the description of the voucher.
-
getAllDescription
public java.util.Map<Language,java.lang.String> getAllDescription()
Generated method - Getter of theVoucher.descriptionattribute.- Returns:
- the localized description - the description of the voucher.
-
setDescription
public void setDescription(SessionContext ctx, java.lang.String value)
Generated method - Setter of theVoucher.descriptionattribute.- Parameters:
value- the description - the description of the voucher.
-
setDescription
public void setDescription(java.lang.String value)
Generated method - Setter of theVoucher.descriptionattribute.- 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.descriptionattribute.- 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.descriptionattribute.- Parameters:
value- the description - the description of the voucher.
-
isFreeShipping
public java.lang.Boolean isFreeShipping(SessionContext ctx)
Generated method - Getter of theVoucher.freeShippingattribute.- 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.freeShippingattribute.- 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.freeShippingattribute.- 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.freeShippingattribute.- 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.freeShippingattribute.- 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.freeShippingattribute.- 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.freeShippingattribute.- 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.freeShippingattribute.- 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.invalidationsattribute.- Returns:
- the invalidations
-
getInvalidations
public java.util.Collection<VoucherInvalidation> getInvalidations()
Generated method - Getter of theVoucher.invalidationsattribute.- Returns:
- the invalidations
-
setInvalidations
public void setInvalidations(SessionContext ctx, java.util.Collection<VoucherInvalidation> value)
Generated method - Setter of theVoucher.invalidationsattribute.- Parameters:
value- the invalidations
-
setInvalidations
public void setInvalidations(java.util.Collection<VoucherInvalidation> value)
Generated method - Setter of theVoucher.invalidationsattribute.- Parameters:
value- the invalidations
-
addToInvalidations
public void addToInvalidations(SessionContext ctx, VoucherInvalidation value)
Generated method - Addsvalueto invalidations.- Parameters:
value- the item to add to invalidations
-
addToInvalidations
public void addToInvalidations(VoucherInvalidation value)
Generated method - Addsvalueto invalidations.- Parameters:
value- the item to add to invalidations
-
removeFromInvalidations
public void removeFromInvalidations(SessionContext ctx, VoucherInvalidation value)
Generated method - Removesvaluefrom invalidations.- Parameters:
value- the item to remove from invalidations
-
removeFromInvalidations
public void removeFromInvalidations(VoucherInvalidation value)
Generated method - Removesvaluefrom invalidations.- Parameters:
value- the item to remove from invalidations
-
getRestrictions
public java.util.Set<Restriction> getRestrictions(SessionContext ctx)
Generated method - Getter of theVoucher.restrictionsattribute.- Returns:
- the restrictions
-
getRestrictions
public java.util.Set<Restriction> getRestrictions()
Generated method - Getter of theVoucher.restrictionsattribute.- Returns:
- the restrictions
-
setRestrictions
public void setRestrictions(SessionContext ctx, java.util.Set<Restriction> value)
Generated method - Setter of theVoucher.restrictionsattribute.- Parameters:
value- the restrictions
-
setRestrictions
public void setRestrictions(java.util.Set<Restriction> value)
Generated method - Setter of theVoucher.restrictionsattribute.- Parameters:
value- the restrictions
-
addToRestrictions
public void addToRestrictions(SessionContext ctx, Restriction value)
Generated method - Addsvalueto restrictions.- Parameters:
value- the item to add to restrictions
-
addToRestrictions
public void addToRestrictions(Restriction value)
Generated method - Addsvalueto restrictions.- Parameters:
value- the item to add to restrictions
-
removeFromRestrictions
public void removeFromRestrictions(SessionContext ctx, Restriction value)
Generated method - Removesvaluefrom restrictions.- Parameters:
value- the item to remove from restrictions
-
removeFromRestrictions
public void removeFromRestrictions(Restriction value)
Generated method - Removesvaluefrom restrictions.- Parameters:
value- the item to remove from restrictions
-
getValueString
public abstract java.lang.String getValueString(SessionContext ctx)
Generated method - Getter of theVoucher.valueStringattribute.- Returns:
- the valueString - the value of this voucher to display.
-
getValueString
public java.lang.String getValueString()
Generated method - Getter of theVoucher.valueStringattribute.- Returns:
- the valueString - the value of this voucher to display.
-
-