public abstract class GeneratedBTGRule extends BTGItem
BTGRule.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
BTGRule.code attribute |
static String |
CONDITIONS
Qualifier of the
BTGRule.conditions attribute |
protected static OneToManyHandler<BTGCondition> |
CONDITIONSHANDLER
OneToManyHandler for handling 1:n CONDITIONS's relation attributes from 'many' side. |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DESCRIPTION
Qualifier of the
BTGRule.description attribute |
static String |
RESULTS
Qualifier of the
BTGRule.results attribute |
protected static OneToManyHandler<BTGRuleResult> |
RESULTSHANDLER
OneToManyHandler for handling 1:n RESULTS's relation attributes from 'many' side. |
static String |
RULETYPE
Qualifier of the
BTGRule.ruleType attribute |
static String |
SEGMENT
Qualifier of the
BTGRule.segment attribute |
protected static BidirectionalOneToManyHandler<GeneratedBTGRule> |
SEGMENTHANDLER
BidirectionalOneToManyHandler for handling 1:n SEGMENT's relation attributes from 'one' side. |
static String |
SEGMENTPOS
Qualifier of the
BTGRule.segmentPOS attribute |
CATALOGVERSION, UIDLANGUAGE_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 |
|---|
GeneratedBTGRule() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToConditions(BTGCondition value)
Generated method - Adds
value to conditions. |
void |
addToConditions(SessionContext ctx,
BTGCondition value)
Generated method - Adds
value to conditions. |
void |
addToResults(BTGRuleResult value)
Generated method - Adds
value to results. |
void |
addToResults(SessionContext ctx,
BTGRuleResult value)
Generated method - Adds
value to results. |
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
BTGRule.description attribute. |
Map<Language,String> |
getAllDescription(SessionContext ctx)
Generated method - Getter of the
BTGRule.description attribute. |
String |
getCode()
Generated method - Getter of the
BTGRule.code attribute. |
String |
getCode(SessionContext ctx)
Generated method - Getter of the
BTGRule.code attribute. |
Collection<BTGCondition> |
getConditions()
Generated method - Getter of the
BTGRule.conditions attribute. |
Collection<BTGCondition> |
getConditions(SessionContext ctx)
Generated method - Getter of the
BTGRule.conditions attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDescription()
Generated method - Getter of the
BTGRule.description attribute. |
String |
getDescription(SessionContext ctx)
Generated method - Getter of the
BTGRule.description attribute. |
Collection<BTGRuleResult> |
getResults()
Generated method - Getter of the
BTGRule.results attribute. |
Collection<BTGRuleResult> |
getResults(SessionContext ctx)
Generated method - Getter of the
BTGRule.results attribute. |
EnumerationValue |
getRuleType()
Generated method - Getter of the
BTGRule.ruleType attribute. |
EnumerationValue |
getRuleType(SessionContext ctx)
Generated method - Getter of the
BTGRule.ruleType attribute. |
BTGSegment |
getSegment()
Generated method - Getter of the
BTGRule.segment attribute. |
BTGSegment |
getSegment(SessionContext ctx)
Generated method - Getter of the
BTGRule.segment attribute. |
void |
removeFromConditions(BTGCondition value)
Generated method - Removes
value from conditions. |
void |
removeFromConditions(SessionContext ctx,
BTGCondition value)
Generated method - Removes
value from conditions. |
void |
removeFromResults(BTGRuleResult value)
Generated method - Removes
value from results. |
void |
removeFromResults(SessionContext ctx,
BTGRuleResult value)
Generated method - Removes
value from results. |
void |
setAllDescription(Map<Language,String> value)
Generated method - Setter of the
BTGRule.description attribute. |
void |
setAllDescription(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
BTGRule.description attribute. |
void |
setCode(SessionContext ctx,
String value)
Generated method - Setter of the
BTGRule.code attribute. |
void |
setCode(String value)
Generated method - Setter of the
BTGRule.code attribute. |
void |
setConditions(Collection<BTGCondition> value)
Generated method - Setter of the
BTGRule.conditions attribute. |
void |
setConditions(SessionContext ctx,
Collection<BTGCondition> value)
Generated method - Setter of the
BTGRule.conditions attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
BTGRule.description attribute. |
void |
setDescription(String value)
Generated method - Setter of the
BTGRule.description attribute. |
void |
setResults(Collection<BTGRuleResult> value)
Generated method - Setter of the
BTGRule.results attribute. |
void |
setResults(SessionContext ctx,
Collection<BTGRuleResult> value)
Generated method - Setter of the
BTGRule.results attribute. |
void |
setRuleType(EnumerationValue value)
Generated method - Setter of the
BTGRule.ruleType attribute. |
void |
setRuleType(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
BTGRule.ruleType attribute. |
void |
setSegment(BTGSegment value)
Generated method - Setter of the
BTGRule.segment attribute. |
void |
setSegment(SessionContext ctx,
BTGSegment value)
Generated method - Setter of the
BTGRule.segment attribute. |
getCatalogVersion, getCatalogVersion, getUid, getUid, setCatalogVersion, setCatalogVersion, setUid, setUidgetInitialProperties, 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 CODE
BTGRule.code attributepublic static final String DESCRIPTION
BTGRule.description attributepublic static final String RULETYPE
BTGRule.ruleType attributepublic static final String SEGMENTPOS
BTGRule.segmentPOS attributepublic static final String SEGMENT
BTGRule.segment attributepublic static final String CONDITIONS
BTGRule.conditions attributepublic static final String RESULTS
BTGRule.results attributeprotected static final BidirectionalOneToManyHandler<GeneratedBTGRule> SEGMENTHANDLER
BidirectionalOneToManyHandler for handling 1:n SEGMENT's relation attributes from 'one' side.protected static final OneToManyHandler<BTGCondition> CONDITIONSHANDLER
OneToManyHandler for handling 1:n CONDITIONS's relation attributes from 'many' side.protected static final OneToManyHandler<BTGRuleResult> RESULTSHANDLER
OneToManyHandler for handling 1:n RESULTS's relation attributes from 'many' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class GeneratedBTGItempublic String getCode(SessionContext ctx)
BTGRule.code attribute.public String getCode()
BTGRule.code attribute.public void setCode(SessionContext ctx, String value)
BTGRule.code attribute.value - the codepublic void setCode(String value)
BTGRule.code attribute.value - the codepublic Collection<BTGCondition> getConditions(SessionContext ctx)
BTGRule.conditions attribute.public Collection<BTGCondition> getConditions()
BTGRule.conditions attribute.public void setConditions(SessionContext ctx, Collection<BTGCondition> value)
BTGRule.conditions attribute.value - the conditionspublic void setConditions(Collection<BTGCondition> value)
BTGRule.conditions attribute.value - the conditionspublic void addToConditions(SessionContext ctx, BTGCondition value)
value to conditions.value - the item to add to conditionspublic void addToConditions(BTGCondition value)
value to conditions.value - the item to add to conditionspublic void removeFromConditions(SessionContext ctx, BTGCondition value)
value from conditions.value - the item to remove from conditionspublic void removeFromConditions(BTGCondition value)
value from conditions.value - the item to remove from conditionsprotected 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 BTGItemctx - 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)
BTGRule.description attribute.public String getDescription()
BTGRule.description attribute.public Map<Language,String> getAllDescription(SessionContext ctx)
BTGRule.description attribute.public Map<Language,String> getAllDescription()
BTGRule.description attribute.public void setDescription(SessionContext ctx, String value)
BTGRule.description attribute.value - the description - rule textpublic void setDescription(String value)
BTGRule.description attribute.value - the description - rule textpublic void setAllDescription(SessionContext ctx, Map<Language,String> value)
BTGRule.description attribute.value - the description - rule textpublic void setAllDescription(Map<Language,String> value)
BTGRule.description attribute.value - the description - rule textpublic Collection<BTGRuleResult> getResults(SessionContext ctx)
BTGRule.results attribute.public Collection<BTGRuleResult> getResults()
BTGRule.results attribute.public void setResults(SessionContext ctx, Collection<BTGRuleResult> value)
BTGRule.results attribute.value - the resultspublic void setResults(Collection<BTGRuleResult> value)
BTGRule.results attribute.value - the resultspublic void addToResults(SessionContext ctx, BTGRuleResult value)
value to results.value - the item to add to resultspublic void addToResults(BTGRuleResult value)
value to results.value - the item to add to resultspublic void removeFromResults(SessionContext ctx, BTGRuleResult value)
value from results.value - the item to remove from resultspublic void removeFromResults(BTGRuleResult value)
value from results.value - the item to remove from resultspublic EnumerationValue getRuleType(SessionContext ctx)
BTGRule.ruleType attribute.public EnumerationValue getRuleType()
BTGRule.ruleType attribute.public void setRuleType(SessionContext ctx, EnumerationValue value)
BTGRule.ruleType attribute.value - the ruleTypepublic void setRuleType(EnumerationValue value)
BTGRule.ruleType attribute.value - the ruleTypepublic BTGSegment getSegment(SessionContext ctx)
BTGRule.segment attribute.public BTGSegment getSegment()
BTGRule.segment attribute.public void setSegment(SessionContext ctx, BTGSegment value)
BTGRule.segment attribute.value - the segmentpublic void setSegment(BTGSegment value)
BTGRule.segment attribute.value - the segmentCopyright © 2017 SAP SE. All Rights Reserved.