public abstract class GeneratedBTGCondition extends BTGItem
BTGCondition.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 |
BEANID
Qualifier of the
BTGCondition.beanId attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
EVALUATIONSCOPE
Qualifier of the
BTGCondition.evaluationScope attribute |
static String |
RESULTS
Qualifier of the
BTGCondition.results attribute |
protected static OneToManyHandler<BTGConditionResult> |
RESULTSHANDLER
OneToManyHandler for handling 1:n RESULTS's relation attributes from 'many' side. |
static String |
RULE
Qualifier of the
BTGCondition.rule attribute |
protected static BidirectionalOneToManyHandler<GeneratedBTGCondition> |
RULEHANDLER
BidirectionalOneToManyHandler for handling 1:n RULE's relation attributes from 'one' side. |
static String |
RULEPOS
Qualifier of the
BTGCondition.rulePOS 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 |
|---|
GeneratedBTGCondition() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToResults(BTGConditionResult value)
Generated method - Adds
value to results. |
void |
addToResults(SessionContext ctx,
BTGConditionResult 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.
|
String |
getBeanId()
Generated method - Getter of the
BTGCondition.beanId attribute. |
String |
getBeanId(SessionContext ctx)
Generated method - Getter of the
BTGCondition.beanId attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
EnumerationValue |
getEvaluationScope()
Generated method - Getter of the
BTGCondition.evaluationScope attribute. |
EnumerationValue |
getEvaluationScope(SessionContext ctx)
Generated method - Getter of the
BTGCondition.evaluationScope attribute. |
Collection<BTGConditionResult> |
getResults()
Generated method - Getter of the
BTGCondition.results attribute. |
Collection<BTGConditionResult> |
getResults(SessionContext ctx)
Generated method - Getter of the
BTGCondition.results attribute. |
BTGRule |
getRule()
Generated method - Getter of the
BTGCondition.rule attribute. |
BTGRule |
getRule(SessionContext ctx)
Generated method - Getter of the
BTGCondition.rule attribute. |
void |
removeFromResults(BTGConditionResult value)
Generated method - Removes
value from results. |
void |
removeFromResults(SessionContext ctx,
BTGConditionResult value)
Generated method - Removes
value from results. |
void |
setBeanId(SessionContext ctx,
String value)
Generated method - Setter of the
BTGCondition.beanId attribute. |
void |
setBeanId(String value)
Generated method - Setter of the
BTGCondition.beanId attribute. |
void |
setEvaluationScope(EnumerationValue value)
Generated method - Setter of the
BTGCondition.evaluationScope attribute. |
void |
setEvaluationScope(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
BTGCondition.evaluationScope attribute. |
void |
setResults(Collection<BTGConditionResult> value)
Generated method - Setter of the
BTGCondition.results attribute. |
void |
setResults(SessionContext ctx,
Collection<BTGConditionResult> value)
Generated method - Setter of the
BTGCondition.results attribute. |
void |
setRule(BTGRule value)
Generated method - Setter of the
BTGCondition.rule attribute. |
void |
setRule(SessionContext ctx,
BTGRule value)
Generated method - Setter of the
BTGCondition.rule 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 BEANID
BTGCondition.beanId attributepublic static final String EVALUATIONSCOPE
BTGCondition.evaluationScope attributepublic static final String RULEPOS
BTGCondition.rulePOS attributepublic static final String RULE
BTGCondition.rule attributepublic static final String RESULTS
BTGCondition.results attributeprotected static final BidirectionalOneToManyHandler<GeneratedBTGCondition> RULEHANDLER
BidirectionalOneToManyHandler for handling 1:n RULE's relation attributes from 'one' side.protected static final OneToManyHandler<BTGConditionResult> 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 getBeanId(SessionContext ctx)
BTGCondition.beanId attribute.public String getBeanId()
BTGCondition.beanId attribute.public void setBeanId(SessionContext ctx, String value)
BTGCondition.beanId attribute.value - the beanIdpublic void setBeanId(String value)
BTGCondition.beanId attribute.value - the beanIdprotected 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 EnumerationValue getEvaluationScope(SessionContext ctx)
BTGCondition.evaluationScope attribute.public EnumerationValue getEvaluationScope()
BTGCondition.evaluationScope attribute.public void setEvaluationScope(SessionContext ctx, EnumerationValue value)
BTGCondition.evaluationScope attribute.value - the evaluationScopepublic void setEvaluationScope(EnumerationValue value)
BTGCondition.evaluationScope attribute.value - the evaluationScopepublic Collection<BTGConditionResult> getResults(SessionContext ctx)
BTGCondition.results attribute.public Collection<BTGConditionResult> getResults()
BTGCondition.results attribute.public void setResults(SessionContext ctx, Collection<BTGConditionResult> value)
BTGCondition.results attribute.value - the resultspublic void setResults(Collection<BTGConditionResult> value)
BTGCondition.results attribute.value - the resultspublic void addToResults(SessionContext ctx, BTGConditionResult value)
value to results.value - the item to add to resultspublic void addToResults(BTGConditionResult value)
value to results.value - the item to add to resultspublic void removeFromResults(SessionContext ctx, BTGConditionResult value)
value from results.value - the item to remove from resultspublic void removeFromResults(BTGConditionResult value)
value from results.value - the item to remove from resultspublic BTGRule getRule(SessionContext ctx)
BTGCondition.rule attribute.public BTGRule getRule()
BTGCondition.rule attribute.public void setRule(SessionContext ctx, BTGRule value)
BTGCondition.rule attribute.value - the rulepublic void setRule(BTGRule value)
BTGCondition.rule attribute.value - the ruleCopyright © 2017 SAP SE. All Rights Reserved.