public abstract class GeneratedAbstractRule extends GenericItem
AbstractRule.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
AbstractRule.code attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DESCRIPTION
Qualifier of the
AbstractRule.description attribute |
static String |
ENDDATE
Qualifier of the
AbstractRule.endDate attribute |
static String |
MAXALLOWEDRUNS
Qualifier of the
AbstractRule.maxAllowedRuns attribute |
static String |
MESSAGEFIRED
Qualifier of the
AbstractRule.messageFired attribute |
static String |
NAME
Qualifier of the
AbstractRule.name attribute |
static String |
PRIORITY
Qualifier of the
AbstractRule.priority attribute |
static String |
RULEGROUP
Qualifier of the
AbstractRule.ruleGroup attribute |
protected static BidirectionalOneToManyHandler<GeneratedAbstractRule> |
RULEGROUPHANDLER
BidirectionalOneToManyHandler for handling 1:n RULEGROUP's relation attributes from 'one' side. |
static String |
STACKABLE
Qualifier of the
AbstractRule.stackable attribute |
static String |
STARTDATE
Qualifier of the
AbstractRule.startDate attribute |
static String |
STATUS
Qualifier of the
AbstractRule.status attribute |
static String |
UUID
Qualifier of the
AbstractRule.uuid 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 |
|---|
GeneratedAbstractRule() |
| 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> |
getAllDescription()
Generated method - Getter of the
AbstractRule.description attribute. |
Map<Language,String> |
getAllDescription(SessionContext ctx)
Generated method - Getter of the
AbstractRule.description attribute. |
Map<Language,String> |
getAllMessageFired()
Generated method - Getter of the
AbstractRule.messageFired attribute. |
Map<Language,String> |
getAllMessageFired(SessionContext ctx)
Generated method - Getter of the
AbstractRule.messageFired attribute. |
Map<Language,String> |
getAllName()
Generated method - Getter of the
AbstractRule.name attribute. |
Map<Language,String> |
getAllName(SessionContext ctx)
Generated method - Getter of the
AbstractRule.name attribute. |
String |
getCode()
Generated method - Getter of the
AbstractRule.code attribute. |
String |
getCode(SessionContext ctx)
Generated method - Getter of the
AbstractRule.code attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDescription()
Generated method - Getter of the
AbstractRule.description attribute. |
String |
getDescription(SessionContext ctx)
Generated method - Getter of the
AbstractRule.description attribute. |
Date |
getEndDate()
Generated method - Getter of the
AbstractRule.endDate attribute. |
Date |
getEndDate(SessionContext ctx)
Generated method - Getter of the
AbstractRule.endDate attribute. |
Integer |
getMaxAllowedRuns()
Generated method - Getter of the
AbstractRule.maxAllowedRuns attribute. |
Integer |
getMaxAllowedRuns(SessionContext ctx)
Generated method - Getter of the
AbstractRule.maxAllowedRuns attribute. |
int |
getMaxAllowedRunsAsPrimitive()
Generated method - Getter of the
AbstractRule.maxAllowedRuns attribute. |
int |
getMaxAllowedRunsAsPrimitive(SessionContext ctx)
Generated method - Getter of the
AbstractRule.maxAllowedRuns attribute. |
String |
getMessageFired()
Generated method - Getter of the
AbstractRule.messageFired attribute. |
String |
getMessageFired(SessionContext ctx)
Generated method - Getter of the
AbstractRule.messageFired attribute. |
String |
getName()
Generated method - Getter of the
AbstractRule.name attribute. |
String |
getName(SessionContext ctx)
Generated method - Getter of the
AbstractRule.name attribute. |
Integer |
getPriority()
Generated method - Getter of the
AbstractRule.priority attribute. |
Integer |
getPriority(SessionContext ctx)
Generated method - Getter of the
AbstractRule.priority attribute. |
int |
getPriorityAsPrimitive()
Generated method - Getter of the
AbstractRule.priority attribute. |
int |
getPriorityAsPrimitive(SessionContext ctx)
Generated method - Getter of the
AbstractRule.priority attribute. |
RuleGroup |
getRuleGroup()
Generated method - Getter of the
AbstractRule.ruleGroup attribute. |
RuleGroup |
getRuleGroup(SessionContext ctx)
Generated method - Getter of the
AbstractRule.ruleGroup attribute. |
Date |
getStartDate()
Generated method - Getter of the
AbstractRule.startDate attribute. |
Date |
getStartDate(SessionContext ctx)
Generated method - Getter of the
AbstractRule.startDate attribute. |
EnumerationValue |
getStatus()
Generated method - Getter of the
AbstractRule.status attribute. |
EnumerationValue |
getStatus(SessionContext ctx)
Generated method - Getter of the
AbstractRule.status attribute. |
String |
getUuid()
Generated method - Getter of the
AbstractRule.uuid attribute. |
String |
getUuid(SessionContext ctx)
Generated method - Getter of the
AbstractRule.uuid attribute. |
Boolean |
isStackable()
Generated method - Getter of the
AbstractRule.stackable attribute. |
Boolean |
isStackable(SessionContext ctx)
Generated method - Getter of the
AbstractRule.stackable attribute. |
boolean |
isStackableAsPrimitive()
Generated method - Getter of the
AbstractRule.stackable attribute. |
boolean |
isStackableAsPrimitive(SessionContext ctx)
Generated method - Getter of the
AbstractRule.stackable attribute. |
void |
setAllDescription(Map<Language,String> value)
Generated method - Setter of the
AbstractRule.description attribute. |
void |
setAllDescription(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
AbstractRule.description attribute. |
void |
setAllMessageFired(Map<Language,String> value)
Generated method - Setter of the
AbstractRule.messageFired attribute. |
void |
setAllMessageFired(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
AbstractRule.messageFired attribute. |
void |
setAllName(Map<Language,String> value)
Generated method - Setter of the
AbstractRule.name attribute. |
void |
setAllName(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
AbstractRule.name attribute. |
void |
setCode(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractRule.code attribute. |
void |
setCode(String value)
Generated method - Setter of the
AbstractRule.code attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractRule.description attribute. |
void |
setDescription(String value)
Generated method - Setter of the
AbstractRule.description attribute. |
void |
setEndDate(Date value)
Generated method - Setter of the
AbstractRule.endDate attribute. |
void |
setEndDate(SessionContext ctx,
Date value)
Generated method - Setter of the
AbstractRule.endDate attribute. |
void |
setMaxAllowedRuns(int value)
Generated method - Setter of the
AbstractRule.maxAllowedRuns attribute. |
void |
setMaxAllowedRuns(Integer value)
Generated method - Setter of the
AbstractRule.maxAllowedRuns attribute. |
void |
setMaxAllowedRuns(SessionContext ctx,
int value)
Generated method - Setter of the
AbstractRule.maxAllowedRuns attribute. |
void |
setMaxAllowedRuns(SessionContext ctx,
Integer value)
Generated method - Setter of the
AbstractRule.maxAllowedRuns attribute. |
void |
setMessageFired(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractRule.messageFired attribute. |
void |
setMessageFired(String value)
Generated method - Setter of the
AbstractRule.messageFired attribute. |
void |
setName(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractRule.name attribute. |
void |
setName(String value)
Generated method - Setter of the
AbstractRule.name attribute. |
void |
setPriority(int value)
Generated method - Setter of the
AbstractRule.priority attribute. |
void |
setPriority(Integer value)
Generated method - Setter of the
AbstractRule.priority attribute. |
void |
setPriority(SessionContext ctx,
int value)
Generated method - Setter of the
AbstractRule.priority attribute. |
void |
setPriority(SessionContext ctx,
Integer value)
Generated method - Setter of the
AbstractRule.priority attribute. |
void |
setRuleGroup(RuleGroup value)
Generated method - Setter of the
AbstractRule.ruleGroup attribute. |
void |
setRuleGroup(SessionContext ctx,
RuleGroup value)
Generated method - Setter of the
AbstractRule.ruleGroup attribute. |
void |
setStackable(boolean value)
Generated method - Setter of the
AbstractRule.stackable attribute. |
void |
setStackable(Boolean value)
Generated method - Setter of the
AbstractRule.stackable attribute. |
void |
setStackable(SessionContext ctx,
boolean value)
Generated method - Setter of the
AbstractRule.stackable attribute. |
void |
setStackable(SessionContext ctx,
Boolean value)
Generated method - Setter of the
AbstractRule.stackable attribute. |
void |
setStartDate(Date value)
Generated method - Setter of the
AbstractRule.startDate attribute. |
void |
setStartDate(SessionContext ctx,
Date value)
Generated method - Setter of the
AbstractRule.startDate attribute. |
void |
setStatus(EnumerationValue value)
Generated method - Setter of the
AbstractRule.status attribute. |
void |
setStatus(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
AbstractRule.status attribute. |
protected void |
setUuid(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractRule.uuid attribute. |
protected void |
setUuid(String value)
Generated method - Setter of the
AbstractRule.uuid 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 UUID
AbstractRule.uuid attributepublic static final String CODE
AbstractRule.code attributepublic static final String NAME
AbstractRule.name attributepublic static final String DESCRIPTION
AbstractRule.description attributepublic static final String STARTDATE
AbstractRule.startDate attributepublic static final String ENDDATE
AbstractRule.endDate attributepublic static final String PRIORITY
AbstractRule.priority attributepublic static final String MAXALLOWEDRUNS
AbstractRule.maxAllowedRuns attributepublic static final String STACKABLE
AbstractRule.stackable attributepublic static final String STATUS
AbstractRule.status attributepublic static final String MESSAGEFIRED
AbstractRule.messageFired attributepublic static final String RULEGROUP
AbstractRule.ruleGroup attributeprotected static final BidirectionalOneToManyHandler<GeneratedAbstractRule> RULEGROUPHANDLER
BidirectionalOneToManyHandler for handling 1:n RULEGROUP'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)
AbstractRule.code attribute.public String getCode()
AbstractRule.code attribute.public void setCode(SessionContext ctx, String value)
AbstractRule.code attribute.value - the code - Rule code that defines the rule uniquelypublic void setCode(String value)
AbstractRule.code attribute.value - the code - Rule code that defines the rule uniquelyprotected 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)
AbstractRule.description attribute.public String getDescription()
AbstractRule.description attribute.public Map<Language,String> getAllDescription(SessionContext ctx)
AbstractRule.description attribute.public Map<Language,String> getAllDescription()
AbstractRule.description attribute.public void setDescription(SessionContext ctx, String value)
AbstractRule.description attribute.value - the description - Rule descriptionpublic void setDescription(String value)
AbstractRule.description attribute.value - the description - Rule descriptionpublic void setAllDescription(SessionContext ctx, Map<Language,String> value)
AbstractRule.description attribute.value - the description - Rule descriptionpublic void setAllDescription(Map<Language,String> value)
AbstractRule.description attribute.value - the description - Rule descriptionpublic Date getEndDate(SessionContext ctx)
AbstractRule.endDate attribute.public Date getEndDate()
AbstractRule.endDate attribute.public void setEndDate(SessionContext ctx, Date value)
AbstractRule.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)
AbstractRule.endDate attribute.value - the endDate - Date on which this promotion stops being available, if not set the promotion will not be available.public Integer getMaxAllowedRuns(SessionContext ctx)
AbstractRule.maxAllowedRuns attribute.public Integer getMaxAllowedRuns()
AbstractRule.maxAllowedRuns attribute.public int getMaxAllowedRunsAsPrimitive(SessionContext ctx)
AbstractRule.maxAllowedRuns attribute.public int getMaxAllowedRunsAsPrimitive()
AbstractRule.maxAllowedRuns attribute.public void setMaxAllowedRuns(SessionContext ctx, Integer value)
AbstractRule.maxAllowedRuns attribute.value - the maxAllowedRuns - Number of times rule can be appliedpublic void setMaxAllowedRuns(Integer value)
AbstractRule.maxAllowedRuns attribute.value - the maxAllowedRuns - Number of times rule can be appliedpublic void setMaxAllowedRuns(SessionContext ctx, int value)
AbstractRule.maxAllowedRuns attribute.value - the maxAllowedRuns - Number of times rule can be appliedpublic void setMaxAllowedRuns(int value)
AbstractRule.maxAllowedRuns attribute.value - the maxAllowedRuns - Number of times rule can be appliedpublic String getMessageFired(SessionContext ctx)
AbstractRule.messageFired attribute.public String getMessageFired()
AbstractRule.messageFired attribute.public Map<Language,String> getAllMessageFired(SessionContext ctx)
AbstractRule.messageFired attribute.public Map<Language,String> getAllMessageFired()
AbstractRule.messageFired attribute.public void setMessageFired(SessionContext ctx, String value)
AbstractRule.messageFired attribute.value - the messageFired - Message for fired rule.public void setMessageFired(String value)
AbstractRule.messageFired attribute.value - the messageFired - Message for fired rule.public void setAllMessageFired(SessionContext ctx, Map<Language,String> value)
AbstractRule.messageFired attribute.value - the messageFired - Message for fired rule.public void setAllMessageFired(Map<Language,String> value)
AbstractRule.messageFired attribute.value - the messageFired - Message for fired rule.public String getName(SessionContext ctx)
AbstractRule.name attribute.public String getName()
AbstractRule.name attribute.public Map<Language,String> getAllName(SessionContext ctx)
AbstractRule.name attribute.public Map<Language,String> getAllName()
AbstractRule.name attribute.public void setName(SessionContext ctx, String value)
AbstractRule.name attribute.value - the name - Rule namepublic void setName(String value)
AbstractRule.name attribute.value - the name - Rule namepublic void setAllName(SessionContext ctx, Map<Language,String> value)
AbstractRule.name attribute.value - the name - Rule namepublic void setAllName(Map<Language,String> value)
AbstractRule.name attribute.value - the name - Rule namepublic Integer getPriority(SessionContext ctx)
AbstractRule.priority attribute.public Integer getPriority()
AbstractRule.priority attribute.public int getPriorityAsPrimitive(SessionContext ctx)
AbstractRule.priority attribute.public int getPriorityAsPrimitive()
AbstractRule.priority attribute.public void setPriority(SessionContext ctx, Integer value)
AbstractRule.priority attribute.value - the priority - priority (higher priority gets applied first)public void setPriority(Integer value)
AbstractRule.priority attribute.value - the priority - priority (higher priority gets applied first)public void setPriority(SessionContext ctx, int value)
AbstractRule.priority attribute.value - the priority - priority (higher priority gets applied first)public void setPriority(int value)
AbstractRule.priority attribute.value - the priority - priority (higher priority gets applied first)public RuleGroup getRuleGroup(SessionContext ctx)
AbstractRule.ruleGroup attribute.public RuleGroup getRuleGroup()
AbstractRule.ruleGroup attribute.public void setRuleGroup(SessionContext ctx, RuleGroup value)
AbstractRule.ruleGroup attribute.value - the ruleGrouppublic void setRuleGroup(RuleGroup value)
AbstractRule.ruleGroup attribute.value - the ruleGrouppublic Boolean isStackable(SessionContext ctx)
AbstractRule.stackable attribute.public Boolean isStackable()
AbstractRule.stackable attribute.public boolean isStackableAsPrimitive(SessionContext ctx)
AbstractRule.stackable attribute.public boolean isStackableAsPrimitive()
AbstractRule.stackable attribute.public void setStackable(SessionContext ctx, Boolean value)
AbstractRule.stackable attribute.value - the stackable - whether the rule is stackablepublic void setStackable(Boolean value)
AbstractRule.stackable attribute.value - the stackable - whether the rule is stackablepublic void setStackable(SessionContext ctx, boolean value)
AbstractRule.stackable attribute.value - the stackable - whether the rule is stackablepublic void setStackable(boolean value)
AbstractRule.stackable attribute.value - the stackable - whether the rule is stackablepublic Date getStartDate(SessionContext ctx)
AbstractRule.startDate attribute.public Date getStartDate()
AbstractRule.startDate attribute.public void setStartDate(SessionContext ctx, Date value)
AbstractRule.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)
AbstractRule.startDate attribute.value - the startDate - Date on which this promotion becomes available, if not set the promotion will not be available.public EnumerationValue getStatus(SessionContext ctx)
AbstractRule.status attribute.public EnumerationValue getStatus()
AbstractRule.status attribute.public void setStatus(SessionContext ctx, EnumerationValue value)
AbstractRule.status attribute.value - the status - Status of a rulepublic void setStatus(EnumerationValue value)
AbstractRule.status attribute.value - the status - Status of a rulepublic String getUuid(SessionContext ctx)
AbstractRule.uuid attribute.public String getUuid()
AbstractRule.uuid attribute.protected void setUuid(SessionContext ctx, String value)
AbstractRule.uuid attribute.value - the uuid - Rule uuid that defines the rule uniquely, cannot be changed after the rule is createdprotected void setUuid(String value)
AbstractRule.uuid attribute.value - the uuid - Rule uuid that defines the rule uniquely, cannot be changed after the rule is createdCopyright © 2017 SAP SE. All Rights Reserved.