public abstract class GeneratedAbstractPromotion extends GenericItem
AbstractPromotion.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CODE
Qualifier of the
AbstractPromotion.code attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
DESCRIPTION
Qualifier of the
AbstractPromotion.description attribute |
static java.lang.String |
DETAILSURL
Qualifier of the
AbstractPromotion.detailsURL attribute |
static java.lang.String |
ENABLED
Qualifier of the
AbstractPromotion.enabled attribute |
static java.lang.String |
ENDDATE
Qualifier of the
AbstractPromotion.endDate attribute |
static java.lang.String |
IMMUTABLEKEY
Qualifier of the
AbstractPromotion.immutableKey attribute |
static java.lang.String |
IMMUTABLEKEYHASH
Qualifier of the
AbstractPromotion.immutableKeyHash attribute |
static java.lang.String |
PRIORITY
Qualifier of the
AbstractPromotion.priority attribute |
static java.lang.String |
PROMOTIONGROUP
Qualifier of the
AbstractPromotion.PromotionGroup attribute |
protected static BidirectionalOneToManyHandler<GeneratedAbstractPromotion> |
PROMOTIONGROUPHANDLER
BidirectionalOneToManyHandler for handling 1:n PROMOTIONGROUP's relation attributes from 'one' side. |
static java.lang.String |
PROMOTIONTYPE
Qualifier of the
AbstractPromotion.promotionType attribute |
static java.lang.String |
RESTRICTIONS
Qualifier of the
AbstractPromotion.restrictions attribute |
static java.lang.String |
STARTDATE
Qualifier of the
AbstractPromotion.startDate attribute |
static java.lang.String |
TITLE
Qualifier of the
AbstractPromotion.title attribute |
LANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedAbstractPromotion() |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
java.util.Map<Language,java.lang.String> |
getAllPromotionType()
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
abstract java.util.Map<Language,java.lang.String> |
getAllPromotionType(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
java.lang.String |
getCode()
Generated method - Getter of the
AbstractPromotion.code attribute. |
java.lang.String |
getCode(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.code attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.String |
getDescription()
Generated method - Getter of the
AbstractPromotion.description attribute. |
java.lang.String |
getDescription(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.description attribute. |
java.lang.String |
getDetailsURL()
Generated method - Getter of the
AbstractPromotion.detailsURL attribute. |
java.lang.String |
getDetailsURL(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.detailsURL attribute. |
java.util.Date |
getEndDate()
Generated method - Getter of the
AbstractPromotion.endDate attribute. |
java.util.Date |
getEndDate(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.endDate attribute. |
java.lang.String |
getImmutableKey()
Generated method - Getter of the
AbstractPromotion.immutableKey attribute. |
java.lang.String |
getImmutableKey(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.immutableKey attribute. |
java.lang.String |
getImmutableKeyHash()
Generated method - Getter of the
AbstractPromotion.immutableKeyHash attribute. |
java.lang.String |
getImmutableKeyHash(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.immutableKeyHash attribute. |
java.lang.Integer |
getPriority()
Generated method - Getter of the
AbstractPromotion.priority attribute. |
java.lang.Integer |
getPriority(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.priority attribute. |
int |
getPriorityAsPrimitive()
Generated method - Getter of the
AbstractPromotion.priority attribute. |
int |
getPriorityAsPrimitive(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.priority attribute. |
PromotionGroup |
getPromotionGroup()
Generated method - Getter of the
AbstractPromotion.PromotionGroup attribute. |
PromotionGroup |
getPromotionGroup(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.PromotionGroup attribute. |
java.lang.String |
getPromotionType()
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
abstract java.lang.String |
getPromotionType(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
java.util.Collection<AbstractPromotionRestriction> |
getRestrictions()
Generated method - Getter of the
AbstractPromotion.restrictions attribute. |
abstract java.util.Collection<AbstractPromotionRestriction> |
getRestrictions(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.restrictions attribute. |
java.util.Date |
getStartDate()
Generated method - Getter of the
AbstractPromotion.startDate attribute. |
java.util.Date |
getStartDate(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.startDate attribute. |
java.lang.String |
getTitle()
Generated method - Getter of the
AbstractPromotion.title attribute. |
java.lang.String |
getTitle(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.title attribute. |
java.lang.Boolean |
isEnabled()
Generated method - Getter of the
AbstractPromotion.enabled attribute. |
java.lang.Boolean |
isEnabled(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.enabled attribute. |
boolean |
isEnabledAsPrimitive()
Generated method - Getter of the
AbstractPromotion.enabled attribute. |
boolean |
isEnabledAsPrimitive(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.enabled attribute. |
void |
setCode(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractPromotion.code attribute. |
void |
setCode(java.lang.String value)
Generated method - Setter of the
AbstractPromotion.code attribute. |
void |
setDescription(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractPromotion.description attribute. |
void |
setDescription(java.lang.String value)
Generated method - Setter of the
AbstractPromotion.description attribute. |
void |
setDetailsURL(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractPromotion.detailsURL attribute. |
void |
setDetailsURL(java.lang.String value)
Generated method - Setter of the
AbstractPromotion.detailsURL attribute. |
void |
setEnabled(boolean value)
Generated method - Setter of the
AbstractPromotion.enabled attribute. |
void |
setEnabled(java.lang.Boolean value)
Generated method - Setter of the
AbstractPromotion.enabled attribute. |
void |
setEnabled(SessionContext ctx,
boolean value)
Generated method - Setter of the
AbstractPromotion.enabled attribute. |
void |
setEnabled(SessionContext ctx,
java.lang.Boolean value)
Generated method - Setter of the
AbstractPromotion.enabled attribute. |
void |
setEndDate(java.util.Date value)
Generated method - Setter of the
AbstractPromotion.endDate attribute. |
void |
setEndDate(SessionContext ctx,
java.util.Date value)
Generated method - Setter of the
AbstractPromotion.endDate attribute. |
void |
setImmutableKey(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractPromotion.immutableKey attribute. |
void |
setImmutableKey(java.lang.String value)
Generated method - Setter of the
AbstractPromotion.immutableKey attribute. |
void |
setImmutableKeyHash(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractPromotion.immutableKeyHash attribute. |
void |
setImmutableKeyHash(java.lang.String value)
Generated method - Setter of the
AbstractPromotion.immutableKeyHash attribute. |
void |
setPriority(int value)
Generated method - Setter of the
AbstractPromotion.priority attribute. |
void |
setPriority(java.lang.Integer value)
Generated method - Setter of the
AbstractPromotion.priority attribute. |
void |
setPriority(SessionContext ctx,
int value)
Generated method - Setter of the
AbstractPromotion.priority attribute. |
void |
setPriority(SessionContext ctx,
java.lang.Integer value)
Generated method - Setter of the
AbstractPromotion.priority attribute. |
void |
setPromotionGroup(PromotionGroup value)
Generated method - Setter of the
AbstractPromotion.PromotionGroup attribute. |
void |
setPromotionGroup(SessionContext ctx,
PromotionGroup value)
Generated method - Setter of the
AbstractPromotion.PromotionGroup attribute. |
void |
setRestrictions(java.util.Collection<AbstractPromotionRestriction> value)
Generated method - Setter of the
AbstractPromotion.restrictions attribute. |
abstract void |
setRestrictions(SessionContext ctx,
java.util.Collection<AbstractPromotionRestriction> value)
Generated method - Setter of the
AbstractPromotion.restrictions attribute. |
void |
setStartDate(java.util.Date value)
Generated method - Setter of the
AbstractPromotion.startDate attribute. |
void |
setStartDate(SessionContext ctx,
java.util.Date value)
Generated method - Setter of the
AbstractPromotion.startDate attribute. |
void |
setTitle(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractPromotion.title attribute. |
void |
setTitle(java.lang.String value)
Generated method - Setter of the
AbstractPromotion.title attribute. |
getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, 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, writeReplacesetTenantpublic static final java.lang.String PROMOTIONTYPE
AbstractPromotion.promotionType attributepublic static final java.lang.String CODE
AbstractPromotion.code attributepublic static final java.lang.String TITLE
AbstractPromotion.title attributepublic static final java.lang.String DESCRIPTION
AbstractPromotion.description attributepublic static final java.lang.String STARTDATE
AbstractPromotion.startDate attributepublic static final java.lang.String ENDDATE
AbstractPromotion.endDate attributepublic static final java.lang.String DETAILSURL
AbstractPromotion.detailsURL attributepublic static final java.lang.String RESTRICTIONS
AbstractPromotion.restrictions attributepublic static final java.lang.String ENABLED
AbstractPromotion.enabled attributepublic static final java.lang.String PRIORITY
AbstractPromotion.priority attributepublic static final java.lang.String IMMUTABLEKEYHASH
AbstractPromotion.immutableKeyHash attributepublic static final java.lang.String IMMUTABLEKEY
AbstractPromotion.immutableKey attributepublic static final java.lang.String PROMOTIONGROUP
AbstractPromotion.PromotionGroup attributeprotected static final BidirectionalOneToManyHandler<GeneratedAbstractPromotion> PROMOTIONGROUPHANDLER
BidirectionalOneToManyHandler for handling 1:n PROMOTIONGROUP's relation attributes from 'one' side.protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic java.lang.String getCode(SessionContext ctx)
AbstractPromotion.code attribute.public java.lang.String getCode()
AbstractPromotion.code attribute.public void setCode(SessionContext ctx, java.lang.String value)
AbstractPromotion.code attribute.value - the code - Identifier for this promotionpublic void setCode(java.lang.String value)
AbstractPromotion.code attribute.value - the code - Identifier for this promotionprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.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; }
createItem in class GenericItemctx - 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 )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic java.lang.String getDescription(SessionContext ctx)
AbstractPromotion.description attribute.public java.lang.String getDescription()
AbstractPromotion.description attribute.public void setDescription(SessionContext ctx, java.lang.String value)
AbstractPromotion.description attribute.value - the description - Description of this promotionpublic void setDescription(java.lang.String value)
AbstractPromotion.description attribute.value - the description - Description of this promotionpublic java.lang.String getDetailsURL(SessionContext ctx)
AbstractPromotion.detailsURL attribute.public java.lang.String getDetailsURL()
AbstractPromotion.detailsURL attribute.public void setDetailsURL(SessionContext ctx, java.lang.String value)
AbstractPromotion.detailsURL attribute.value - the detailsURL - URL to a content page with further details of this promotionpublic void setDetailsURL(java.lang.String value)
AbstractPromotion.detailsURL attribute.value - the detailsURL - URL to a content page with further details of this promotionpublic java.lang.Boolean isEnabled(SessionContext ctx)
AbstractPromotion.enabled attribute.public java.lang.Boolean isEnabled()
AbstractPromotion.enabled attribute.public boolean isEnabledAsPrimitive(SessionContext ctx)
AbstractPromotion.enabled attribute.public boolean isEnabledAsPrimitive()
AbstractPromotion.enabled attribute.public void setEnabled(SessionContext ctx, java.lang.Boolean value)
AbstractPromotion.enabled attribute.value - the enabled - Flag to indicate if this promotion is enabled.public void setEnabled(java.lang.Boolean value)
AbstractPromotion.enabled attribute.value - the enabled - Flag to indicate if this promotion is enabled.public void setEnabled(SessionContext ctx, boolean value)
AbstractPromotion.enabled attribute.value - the enabled - Flag to indicate if this promotion is enabled.public void setEnabled(boolean value)
AbstractPromotion.enabled attribute.value - the enabled - Flag to indicate if this promotion is enabled.public java.util.Date getEndDate(SessionContext ctx)
AbstractPromotion.endDate attribute.public java.util.Date getEndDate()
AbstractPromotion.endDate attribute.public void setEndDate(SessionContext ctx, java.util.Date value)
AbstractPromotion.endDate attribute.value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.public void setEndDate(java.util.Date value)
AbstractPromotion.endDate attribute.value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.public java.lang.String getImmutableKey(SessionContext ctx)
AbstractPromotion.immutableKey attribute.public java.lang.String getImmutableKey()
AbstractPromotion.immutableKey attribute.public void setImmutableKey(SessionContext ctx, java.lang.String value)
AbstractPromotion.immutableKey attribute.value - the immutableKey - The full immutable identifier for this promotionpublic void setImmutableKey(java.lang.String value)
AbstractPromotion.immutableKey attribute.value - the immutableKey - The full immutable identifier for this promotionpublic java.lang.String getImmutableKeyHash(SessionContext ctx)
AbstractPromotion.immutableKeyHash attribute.public java.lang.String getImmutableKeyHash()
AbstractPromotion.immutableKeyHash attribute.public void setImmutableKeyHash(SessionContext ctx, java.lang.String value)
AbstractPromotion.immutableKeyHash attribute.value - the immutableKeyHash - The HASH of the immutableKeypublic void setImmutableKeyHash(java.lang.String value)
AbstractPromotion.immutableKeyHash attribute.value - the immutableKeyHash - The HASH of the immutableKeypublic java.lang.Integer getPriority(SessionContext ctx)
AbstractPromotion.priority attribute.public java.lang.Integer getPriority()
AbstractPromotion.priority attribute.public int getPriorityAsPrimitive(SessionContext ctx)
AbstractPromotion.priority attribute.public int getPriorityAsPrimitive()
AbstractPromotion.priority attribute.public void setPriority(SessionContext ctx, java.lang.Integer value)
AbstractPromotion.priority attribute.value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.public void setPriority(java.lang.Integer value)
AbstractPromotion.priority attribute.value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.public void setPriority(SessionContext ctx, int value)
AbstractPromotion.priority attribute.value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.public void setPriority(int value)
AbstractPromotion.priority attribute.value - the priority - Value to indicate relative priority of promotions. The higher the value the higher the priority.public PromotionGroup getPromotionGroup(SessionContext ctx)
AbstractPromotion.PromotionGroup attribute.public PromotionGroup getPromotionGroup()
AbstractPromotion.PromotionGroup attribute.public void setPromotionGroup(SessionContext ctx, PromotionGroup value)
AbstractPromotion.PromotionGroup attribute.value - the PromotionGrouppublic void setPromotionGroup(PromotionGroup value)
AbstractPromotion.PromotionGroup attribute.value - the PromotionGrouppublic abstract java.lang.String getPromotionType(SessionContext ctx)
AbstractPromotion.promotionType attribute.public java.lang.String getPromotionType()
AbstractPromotion.promotionType attribute.public abstract java.util.Map<Language,java.lang.String> getAllPromotionType(SessionContext ctx)
AbstractPromotion.promotionType attribute.public java.util.Map<Language,java.lang.String> getAllPromotionType()
AbstractPromotion.promotionType attribute.public abstract java.util.Collection<AbstractPromotionRestriction> getRestrictions(SessionContext ctx)
AbstractPromotion.restrictions attribute.public java.util.Collection<AbstractPromotionRestriction> getRestrictions()
AbstractPromotion.restrictions attribute.public abstract void setRestrictions(SessionContext ctx, java.util.Collection<AbstractPromotionRestriction> value)
AbstractPromotion.restrictions attribute.value - the restrictions - Collection of restrictions that are applied to this promotionpublic void setRestrictions(java.util.Collection<AbstractPromotionRestriction> value)
AbstractPromotion.restrictions attribute.value - the restrictions - Collection of restrictions that are applied to this promotionpublic java.util.Date getStartDate(SessionContext ctx)
AbstractPromotion.startDate attribute.public java.util.Date getStartDate()
AbstractPromotion.startDate attribute.public void setStartDate(SessionContext ctx, java.util.Date value)
AbstractPromotion.startDate attribute.value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.public void setStartDate(java.util.Date value)
AbstractPromotion.startDate attribute.value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.public java.lang.String getTitle(SessionContext ctx)
AbstractPromotion.title attribute.public java.lang.String getTitle()
AbstractPromotion.title attribute.public void setTitle(SessionContext ctx, java.lang.String value)
AbstractPromotion.title attribute.value - the title - Title for this promotionpublic void setTitle(java.lang.String value)
AbstractPromotion.title attribute.value - the title - Title for this promotionCopyright © 2018 SAP SE. All Rights Reserved.