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 String |
CODE
Qualifier of the
AbstractPromotion.code attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DESCRIPTION
Qualifier of the
AbstractPromotion.description attribute |
static String |
DETAILSURL
Qualifier of the
AbstractPromotion.detailsURL attribute |
static String |
ENABLED
Qualifier of the
AbstractPromotion.enabled attribute |
static String |
ENDDATE
Qualifier of the
AbstractPromotion.endDate attribute |
static String |
IMMUTABLEKEY
Qualifier of the
AbstractPromotion.immutableKey attribute |
static String |
IMMUTABLEKEYHASH
Qualifier of the
AbstractPromotion.immutableKeyHash attribute |
static String |
PRIORITY
Qualifier of the
AbstractPromotion.priority attribute |
static 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 String |
PROMOTIONTYPE
Qualifier of the
AbstractPromotion.promotionType attribute |
static String |
RESTRICTIONS
Qualifier of the
AbstractPromotion.restrictions attribute |
static String |
STARTDATE
Qualifier of the
AbstractPromotion.startDate attribute |
static 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.
|
Map<Language,String> |
getAllPromotionType()
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
abstract Map<Language,String> |
getAllPromotionType(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
String |
getCode()
Generated method - Getter of the
AbstractPromotion.code attribute. |
String |
getCode(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.code attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDescription()
Generated method - Getter of the
AbstractPromotion.description attribute. |
String |
getDescription(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.description attribute. |
String |
getDetailsURL()
Generated method - Getter of the
AbstractPromotion.detailsURL attribute. |
String |
getDetailsURL(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.detailsURL attribute. |
Date |
getEndDate()
Generated method - Getter of the
AbstractPromotion.endDate attribute. |
Date |
getEndDate(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.endDate attribute. |
String |
getImmutableKey()
Generated method - Getter of the
AbstractPromotion.immutableKey attribute. |
String |
getImmutableKey(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.immutableKey attribute. |
String |
getImmutableKeyHash()
Generated method - Getter of the
AbstractPromotion.immutableKeyHash attribute. |
String |
getImmutableKeyHash(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.immutableKeyHash attribute. |
Integer |
getPriority()
Generated method - Getter of the
AbstractPromotion.priority attribute. |
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. |
String |
getPromotionType()
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
abstract String |
getPromotionType(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.promotionType attribute. |
Collection<AbstractPromotionRestriction> |
getRestrictions()
Generated method - Getter of the
AbstractPromotion.restrictions attribute. |
abstract Collection<AbstractPromotionRestriction> |
getRestrictions(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.restrictions attribute. |
Date |
getStartDate()
Generated method - Getter of the
AbstractPromotion.startDate attribute. |
Date |
getStartDate(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.startDate attribute. |
String |
getTitle()
Generated method - Getter of the
AbstractPromotion.title attribute. |
String |
getTitle(SessionContext ctx)
Generated method - Getter of the
AbstractPromotion.title attribute. |
Boolean |
isEnabled()
Generated method - Getter of the
AbstractPromotion.enabled attribute. |
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,
String value)
Generated method - Setter of the
AbstractPromotion.code attribute. |
void |
setCode(String value)
Generated method - Setter of the
AbstractPromotion.code attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractPromotion.description attribute. |
void |
setDescription(String value)
Generated method - Setter of the
AbstractPromotion.description attribute. |
void |
setDetailsURL(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractPromotion.detailsURL attribute. |
void |
setDetailsURL(String value)
Generated method - Setter of the
AbstractPromotion.detailsURL attribute. |
void |
setEnabled(boolean value)
Generated method - Setter of the
AbstractPromotion.enabled attribute. |
void |
setEnabled(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,
Boolean value)
Generated method - Setter of the
AbstractPromotion.enabled attribute. |
void |
setEndDate(Date value)
Generated method - Setter of the
AbstractPromotion.endDate attribute. |
void |
setEndDate(SessionContext ctx,
Date value)
Generated method - Setter of the
AbstractPromotion.endDate attribute. |
void |
setImmutableKey(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractPromotion.immutableKey attribute. |
void |
setImmutableKey(String value)
Generated method - Setter of the
AbstractPromotion.immutableKey attribute. |
void |
setImmutableKeyHash(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractPromotion.immutableKeyHash attribute. |
void |
setImmutableKeyHash(String value)
Generated method - Setter of the
AbstractPromotion.immutableKeyHash attribute. |
void |
setPriority(int value)
Generated method - Setter of the
AbstractPromotion.priority attribute. |
void |
setPriority(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,
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(Collection<AbstractPromotionRestriction> value)
Generated method - Setter of the
AbstractPromotion.restrictions attribute. |
abstract void |
setRestrictions(SessionContext ctx,
Collection<AbstractPromotionRestriction> value)
Generated method - Setter of the
AbstractPromotion.restrictions attribute. |
void |
setStartDate(Date value)
Generated method - Setter of the
AbstractPromotion.startDate attribute. |
void |
setStartDate(SessionContext ctx,
Date value)
Generated method - Setter of the
AbstractPromotion.startDate attribute. |
void |
setTitle(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractPromotion.title attribute. |
void |
setTitle(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, 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, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, 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, writeReplacegetImplementation, setTenantpublic static final String PROMOTIONTYPE
AbstractPromotion.promotionType attributepublic static final String CODE
AbstractPromotion.code attributepublic static final String TITLE
AbstractPromotion.title attributepublic static final String DESCRIPTION
AbstractPromotion.description attributepublic static final String STARTDATE
AbstractPromotion.startDate attributepublic static final String ENDDATE
AbstractPromotion.endDate attributepublic static final String DETAILSURL
AbstractPromotion.detailsURL attributepublic static final String RESTRICTIONS
AbstractPromotion.restrictions attributepublic static final String ENABLED
AbstractPromotion.enabled attributepublic static final String PRIORITY
AbstractPromotion.priority attributepublic static final String IMMUTABLEKEYHASH
AbstractPromotion.immutableKeyHash attributepublic static final String IMMUTABLEKEY
AbstractPromotion.immutableKey attributepublic static final 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 Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic String getCode(SessionContext ctx)
AbstractPromotion.code attribute.public String getCode()
AbstractPromotion.code attribute.public void setCode(SessionContext ctx, String value)
AbstractPromotion.code attribute.value - the code - Identifier for this promotionpublic void setCode(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 String getDescription(SessionContext ctx)
AbstractPromotion.description attribute.public String getDescription()
AbstractPromotion.description attribute.public void setDescription(SessionContext ctx, String value)
AbstractPromotion.description attribute.value - the description - Description of this promotionpublic void setDescription(String value)
AbstractPromotion.description attribute.value - the description - Description of this promotionpublic String getDetailsURL(SessionContext ctx)
AbstractPromotion.detailsURL attribute.public String getDetailsURL()
AbstractPromotion.detailsURL attribute.public void setDetailsURL(SessionContext ctx, String value)
AbstractPromotion.detailsURL attribute.value - the detailsURL - URL to a content page with further details of this promotionpublic void setDetailsURL(String value)
AbstractPromotion.detailsURL attribute.value - the detailsURL - URL to a content page with further details of this promotionpublic Boolean isEnabled(SessionContext ctx)
AbstractPromotion.enabled attribute.public Boolean isEnabled()
AbstractPromotion.enabled attribute.public boolean isEnabledAsPrimitive(SessionContext ctx)
AbstractPromotion.enabled attribute.public boolean isEnabledAsPrimitive()
AbstractPromotion.enabled attribute.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 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 Date getEndDate(SessionContext ctx)
AbstractPromotion.endDate attribute.public Date getEndDate()
AbstractPromotion.endDate attribute.public void setEndDate(SessionContext ctx, 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(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 String getImmutableKey(SessionContext ctx)
AbstractPromotion.immutableKey attribute.public String getImmutableKey()
AbstractPromotion.immutableKey attribute.public void setImmutableKey(SessionContext ctx, String value)
AbstractPromotion.immutableKey attribute.value - the immutableKey - The full immutable identifier for this promotionpublic void setImmutableKey(String value)
AbstractPromotion.immutableKey attribute.value - the immutableKey - The full immutable identifier for this promotionpublic String getImmutableKeyHash(SessionContext ctx)
AbstractPromotion.immutableKeyHash attribute.public String getImmutableKeyHash()
AbstractPromotion.immutableKeyHash attribute.public void setImmutableKeyHash(SessionContext ctx, String value)
AbstractPromotion.immutableKeyHash attribute.value - the immutableKeyHash - The HASH of the immutableKeypublic void setImmutableKeyHash(String value)
AbstractPromotion.immutableKeyHash attribute.value - the immutableKeyHash - The HASH of the immutableKeypublic Integer getPriority(SessionContext ctx)
AbstractPromotion.priority attribute.public Integer getPriority()
AbstractPromotion.priority attribute.public int getPriorityAsPrimitive(SessionContext ctx)
AbstractPromotion.priority attribute.public int getPriorityAsPrimitive()
AbstractPromotion.priority attribute.public void setPriority(SessionContext ctx, 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(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 String getPromotionType(SessionContext ctx)
AbstractPromotion.promotionType attribute.public String getPromotionType()
AbstractPromotion.promotionType attribute.public abstract Map<Language,String> getAllPromotionType(SessionContext ctx)
AbstractPromotion.promotionType attribute.public Map<Language,String> getAllPromotionType()
AbstractPromotion.promotionType attribute.public abstract Collection<AbstractPromotionRestriction> getRestrictions(SessionContext ctx)
AbstractPromotion.restrictions attribute.public Collection<AbstractPromotionRestriction> getRestrictions()
AbstractPromotion.restrictions attribute.public abstract void setRestrictions(SessionContext ctx, Collection<AbstractPromotionRestriction> value)
AbstractPromotion.restrictions attribute.value - the restrictions - Collection of restrictions that are applied to this promotionpublic void setRestrictions(Collection<AbstractPromotionRestriction> value)
AbstractPromotion.restrictions attribute.value - the restrictions - Collection of restrictions that are applied to this promotionpublic Date getStartDate(SessionContext ctx)
AbstractPromotion.startDate attribute.public Date getStartDate()
AbstractPromotion.startDate attribute.public void setStartDate(SessionContext ctx, 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(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 String getTitle(SessionContext ctx)
AbstractPromotion.title attribute.public String getTitle()
AbstractPromotion.title attribute.public void setTitle(SessionContext ctx, String value)
AbstractPromotion.title attribute.value - the title - Title for this promotionpublic void setTitle(String value)
AbstractPromotion.title attribute.value - the title - Title for this promotionCopyright © 2017 SAP SE. All Rights Reserved.