Package de.hybris.platform.voucher.jalo
Class GeneratedRestriction
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.voucher.jalo.GeneratedRestriction
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
Restriction
public abstract class GeneratedRestriction extends GenericItem
Generated class for typeRestriction.- 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 theRestriction.descriptionattributestatic java.lang.StringPOSITIVEQualifier of theRestriction.positiveattributestatic java.lang.StringRESTRICTIONTYPEQualifier of theRestriction.restrictionTypeattributestatic java.lang.StringVIOLATIONMESSAGEQualifier of theRestriction.violationMessageattributestatic java.lang.StringVOUCHERQualifier of theRestriction.voucherattributeprotected static BidirectionalOneToManyHandler<GeneratedRestriction>VOUCHERHANDLERBidirectionalOneToManyHandlerfor handling 1:n VOUCHER's relation attributes from 'one' side.static java.lang.StringVOUCHERPOSQualifier of theRestriction.voucherPOSattribute-
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, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedRestriction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)Has to be implemented for each concrete subtype of item.java.util.Map<Language,java.lang.String>getAllDescription()Generated method - Getter of theRestriction.descriptionattribute.java.util.Map<Language,java.lang.String>getAllDescription(SessionContext ctx)Generated method - Getter of theRestriction.descriptionattribute.java.util.Map<Language,java.lang.String>getAllRestrictionType()Generated method - Getter of theRestriction.restrictionTypeattribute.abstract java.util.Map<Language,java.lang.String>getAllRestrictionType(SessionContext ctx)Generated method - Getter of theRestriction.restrictionTypeattribute.java.util.Map<Language,java.lang.String>getAllViolationMessage()Generated method - Getter of theRestriction.violationMessageattribute.java.util.Map<Language,java.lang.String>getAllViolationMessage(SessionContext ctx)Generated method - Getter of theRestriction.violationMessageattribute.protected java.util.Map<java.lang.String,Item.AttributeMode>getDefaultAttributeModes()java.lang.StringgetDescription()Generated method - Getter of theRestriction.descriptionattribute.java.lang.StringgetDescription(SessionContext ctx)Generated method - Getter of theRestriction.descriptionattribute.java.lang.StringgetRestrictionType()Generated method - Getter of theRestriction.restrictionTypeattribute.abstract java.lang.StringgetRestrictionType(SessionContext ctx)Generated method - Getter of theRestriction.restrictionTypeattribute.java.lang.StringgetViolationMessage()Generated method - Getter of theRestriction.violationMessageattribute.java.lang.StringgetViolationMessage(SessionContext ctx)Generated method - Getter of theRestriction.violationMessageattribute.VouchergetVoucher()Generated method - Getter of theRestriction.voucherattribute.VouchergetVoucher(SessionContext ctx)Generated method - Getter of theRestriction.voucherattribute.java.lang.BooleanisPositive()Generated method - Getter of theRestriction.positiveattribute.java.lang.BooleanisPositive(SessionContext ctx)Generated method - Getter of theRestriction.positiveattribute.booleanisPositiveAsPrimitive()Generated method - Getter of theRestriction.positiveattribute.booleanisPositiveAsPrimitive(SessionContext ctx)Generated method - Getter of theRestriction.positiveattribute.voidsetAllDescription(SessionContext ctx, java.util.Map<Language,java.lang.String> value)Generated method - Setter of theRestriction.descriptionattribute.voidsetAllDescription(java.util.Map<Language,java.lang.String> value)Generated method - Setter of theRestriction.descriptionattribute.voidsetAllViolationMessage(SessionContext ctx, java.util.Map<Language,java.lang.String> value)Generated method - Setter of theRestriction.violationMessageattribute.voidsetAllViolationMessage(java.util.Map<Language,java.lang.String> value)Generated method - Setter of theRestriction.violationMessageattribute.voidsetDescription(SessionContext ctx, java.lang.String value)Generated method - Setter of theRestriction.descriptionattribute.voidsetDescription(java.lang.String value)Generated method - Setter of theRestriction.descriptionattribute.voidsetPositive(boolean value)Generated method - Setter of theRestriction.positiveattribute.voidsetPositive(SessionContext ctx, boolean value)Generated method - Setter of theRestriction.positiveattribute.voidsetPositive(SessionContext ctx, java.lang.Boolean value)Generated method - Setter of theRestriction.positiveattribute.voidsetPositive(java.lang.Boolean value)Generated method - Setter of theRestriction.positiveattribute.voidsetViolationMessage(SessionContext ctx, java.lang.String value)Generated method - Setter of theRestriction.violationMessageattribute.voidsetViolationMessage(java.lang.String value)Generated method - Setter of theRestriction.violationMessageattribute.protected voidsetVoucher(SessionContext ctx, Voucher value)Generated method - Setter of theRestriction.voucherattribute.protected voidsetVoucher(Voucher value)Generated method - Setter of theRestriction.voucherattribute.-
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, isMarkModifiedDisabled, 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
-
POSITIVE
public static final java.lang.String POSITIVE
Qualifier of theRestriction.positiveattribute- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Qualifier of theRestriction.descriptionattribute- See Also:
- Constant Field Values
-
VIOLATIONMESSAGE
public static final java.lang.String VIOLATIONMESSAGE
Qualifier of theRestriction.violationMessageattribute- See Also:
- Constant Field Values
-
RESTRICTIONTYPE
public static final java.lang.String RESTRICTIONTYPE
Qualifier of theRestriction.restrictionTypeattribute- See Also:
- Constant Field Values
-
VOUCHERPOS
public static final java.lang.String VOUCHERPOS
Qualifier of theRestriction.voucherPOSattribute- See Also:
- Constant Field Values
-
VOUCHER
public static final java.lang.String VOUCHER
Qualifier of theRestriction.voucherattribute- See Also:
- Constant Field Values
-
VOUCHERHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedRestriction> VOUCHERHANDLER
BidirectionalOneToManyHandlerfor handling 1:n VOUCHER's relation attributes from 'one' 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 classItem
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:ItemHas to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.newInstance(Map).In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap)too.
Sn example:public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) ); // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes( SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret = super.getNonInitialAttributes( ctx, allAttributes ); // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }- Overrides:
createItemin classGenericItem- Parameters:
ctx- the current session context which this item is created withintype- the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )- Returns:
- the new item instance
- Throws:
JaloBusinessException- indicates an error during creation - any changes will be rollbacked
-
getDescription
public java.lang.String getDescription(SessionContext ctx)
Generated method - Getter of theRestriction.descriptionattribute.- Returns:
- the description - the description of the restriction.
-
getDescription
public java.lang.String getDescription()
Generated method - Getter of theRestriction.descriptionattribute.- Returns:
- the description - the description of the restriction.
-
getAllDescription
public java.util.Map<Language,java.lang.String> getAllDescription(SessionContext ctx)
Generated method - Getter of theRestriction.descriptionattribute.- Returns:
- the localized description - the description of the restriction.
-
getAllDescription
public java.util.Map<Language,java.lang.String> getAllDescription()
Generated method - Getter of theRestriction.descriptionattribute.- Returns:
- the localized description - the description of the restriction.
-
setDescription
public void setDescription(SessionContext ctx, java.lang.String value)
Generated method - Setter of theRestriction.descriptionattribute.- Parameters:
value- the description - the description of the restriction.
-
setDescription
public void setDescription(java.lang.String value)
Generated method - Setter of theRestriction.descriptionattribute.- Parameters:
value- the description - the description of the restriction.
-
setAllDescription
public void setAllDescription(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theRestriction.descriptionattribute.- Parameters:
value- the description - the description of the restriction.
-
setAllDescription
public void setAllDescription(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theRestriction.descriptionattribute.- Parameters:
value- the description - the description of the restriction.
-
isPositive
public java.lang.Boolean isPositive(SessionContext ctx)
Generated method - Getter of theRestriction.positiveattribute.- Returns:
- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
isPositive
public java.lang.Boolean isPositive()
Generated method - Getter of theRestriction.positiveattribute.- Returns:
- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
isPositiveAsPrimitive
public boolean isPositiveAsPrimitive(SessionContext ctx)
Generated method - Getter of theRestriction.positiveattribute.- Returns:
- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
isPositiveAsPrimitive
public boolean isPositiveAsPrimitive()
Generated method - Getter of theRestriction.positiveattribute.- Returns:
- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
setPositive
public void setPositive(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theRestriction.positiveattribute.- Parameters:
value- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
setPositive
public void setPositive(java.lang.Boolean value)
Generated method - Setter of theRestriction.positiveattribute.- Parameters:
value- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
setPositive
public void setPositive(SessionContext ctx, boolean value)
Generated method - Setter of theRestriction.positiveattribute.- Parameters:
value- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
setPositive
public void setPositive(boolean value)
Generated method - Setter of theRestriction.positiveattribute.- Parameters:
value- the positive - Specifies if this restriction is a positive (true) or negative (false) one.
-
getRestrictionType
public abstract java.lang.String getRestrictionType(SessionContext ctx)
Generated method - Getter of theRestriction.restrictionTypeattribute.- Returns:
- the restrictionType - the type of this restriction.
-
getRestrictionType
public java.lang.String getRestrictionType()
Generated method - Getter of theRestriction.restrictionTypeattribute.- Returns:
- the restrictionType - the type of this restriction.
-
getAllRestrictionType
public abstract java.util.Map<Language,java.lang.String> getAllRestrictionType(SessionContext ctx)
Generated method - Getter of theRestriction.restrictionTypeattribute.- Returns:
- the localized restrictionType - the type of this restriction.
-
getAllRestrictionType
public java.util.Map<Language,java.lang.String> getAllRestrictionType()
Generated method - Getter of theRestriction.restrictionTypeattribute.- Returns:
- the localized restrictionType - the type of this restriction.
-
getViolationMessage
public java.lang.String getViolationMessage(SessionContext ctx)
Generated method - Getter of theRestriction.violationMessageattribute.- Returns:
- the violationMessage - the message to return if the restriction is violated (not fulfilled).
-
getViolationMessage
public java.lang.String getViolationMessage()
Generated method - Getter of theRestriction.violationMessageattribute.- Returns:
- the violationMessage - the message to return if the restriction is violated (not fulfilled).
-
getAllViolationMessage
public java.util.Map<Language,java.lang.String> getAllViolationMessage(SessionContext ctx)
Generated method - Getter of theRestriction.violationMessageattribute.- Returns:
- the localized violationMessage - the message to return if the restriction is violated (not fulfilled).
-
getAllViolationMessage
public java.util.Map<Language,java.lang.String> getAllViolationMessage()
Generated method - Getter of theRestriction.violationMessageattribute.- Returns:
- the localized violationMessage - the message to return if the restriction is violated (not fulfilled).
-
setViolationMessage
public void setViolationMessage(SessionContext ctx, java.lang.String value)
Generated method - Setter of theRestriction.violationMessageattribute.- Parameters:
value- the violationMessage - the message to return if the restriction is violated (not fulfilled).
-
setViolationMessage
public void setViolationMessage(java.lang.String value)
Generated method - Setter of theRestriction.violationMessageattribute.- Parameters:
value- the violationMessage - the message to return if the restriction is violated (not fulfilled).
-
setAllViolationMessage
public void setAllViolationMessage(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theRestriction.violationMessageattribute.- Parameters:
value- the violationMessage - the message to return if the restriction is violated (not fulfilled).
-
setAllViolationMessage
public void setAllViolationMessage(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theRestriction.violationMessageattribute.- Parameters:
value- the violationMessage - the message to return if the restriction is violated (not fulfilled).
-
getVoucher
public Voucher getVoucher(SessionContext ctx)
Generated method - Getter of theRestriction.voucherattribute.- Returns:
- the voucher
-
getVoucher
public Voucher getVoucher()
Generated method - Getter of theRestriction.voucherattribute.- Returns:
- the voucher
-
setVoucher
protected void setVoucher(SessionContext ctx, Voucher value)
Generated method - Setter of theRestriction.voucherattribute.- Parameters:
value- the voucher
-
setVoucher
protected void setVoucher(Voucher value)
Generated method - Setter of theRestriction.voucherattribute.- Parameters:
value- the voucher
-
-