public abstract class GeneratedCxVariation extends GenericItem
CxVariation.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 |
ACTIONS
Qualifier of the
CxVariation.actions attribute |
protected static OneToManyHandler<CxAbstractAction> |
ACTIONSHANDLER
OneToManyHandler for handling 1:n ACTIONS's relation attributes from 'many' side. |
static String |
CATALOGVERSION
Qualifier of the
CxVariation.catalogVersion attribute |
static String |
CODE
Qualifier of the
CxVariation.code attribute |
static String |
CUSTOMIZATION
Qualifier of the
CxVariation.customization attribute |
protected static BidirectionalOneToManyHandler<GeneratedCxVariation> |
CUSTOMIZATIONHANDLER
BidirectionalOneToManyHandler for handling 1:n CUSTOMIZATION's relation attributes from 'one' side. |
static String |
CUSTOMIZATIONPOS
Qualifier of the
CxVariation.customizationPOS attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
ENABLED
Qualifier of the
CxVariation.enabled attribute |
static String |
NAME
Qualifier of the
CxVariation.name attribute |
static String |
STATUS
Qualifier of the
CxVariation.status attribute |
static String |
TRIGGERS
Qualifier of the
CxVariation.triggers attribute |
protected static OneToManyHandler<CxAbstractTrigger> |
TRIGGERSHANDLER
OneToManyHandler for handling 1:n TRIGGERS's relation attributes from 'many' side. |
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 |
|---|
GeneratedCxVariation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToActions(CxAbstractAction value)
Generated method - Adds
value to actions. |
void |
addToActions(SessionContext ctx,
CxAbstractAction value)
Generated method - Adds
value to actions. |
void |
addToTriggers(CxAbstractTrigger value)
Generated method - Adds
value to triggers. |
void |
addToTriggers(SessionContext ctx,
CxAbstractTrigger value)
Generated method - Adds
value to triggers. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
Collection<CxAbstractAction> |
getActions()
Generated method - Getter of the
CxVariation.actions attribute. |
Collection<CxAbstractAction> |
getActions(SessionContext ctx)
Generated method - Getter of the
CxVariation.actions attribute. |
CatalogVersion |
getCatalogVersion()
Generated method - Getter of the
CxVariation.catalogVersion attribute. |
CatalogVersion |
getCatalogVersion(SessionContext ctx)
Generated method - Getter of the
CxVariation.catalogVersion attribute. |
String |
getCode()
Generated method - Getter of the
CxVariation.code attribute. |
String |
getCode(SessionContext ctx)
Generated method - Getter of the
CxVariation.code attribute. |
CxCustomization |
getCustomization()
Generated method - Getter of the
CxVariation.customization attribute. |
CxCustomization |
getCustomization(SessionContext ctx)
Generated method - Getter of the
CxVariation.customization attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getName()
Generated method - Getter of the
CxVariation.name attribute. |
String |
getName(SessionContext ctx)
Generated method - Getter of the
CxVariation.name attribute. |
EnumerationValue |
getStatus()
Generated method - Getter of the
CxVariation.status attribute. |
EnumerationValue |
getStatus(SessionContext ctx)
Generated method - Getter of the
CxVariation.status attribute. |
Collection<CxAbstractTrigger> |
getTriggers()
Generated method - Getter of the
CxVariation.triggers attribute. |
Collection<CxAbstractTrigger> |
getTriggers(SessionContext ctx)
Generated method - Getter of the
CxVariation.triggers attribute. |
Boolean |
isEnabled()
Generated method - Getter of the
CxVariation.enabled attribute. |
Boolean |
isEnabled(SessionContext ctx)
Generated method - Getter of the
CxVariation.enabled attribute. |
boolean |
isEnabledAsPrimitive()
Generated method - Getter of the
CxVariation.enabled attribute. |
boolean |
isEnabledAsPrimitive(SessionContext ctx)
Generated method - Getter of the
CxVariation.enabled attribute. |
void |
removeFromActions(CxAbstractAction value)
Generated method - Removes
value from actions. |
void |
removeFromActions(SessionContext ctx,
CxAbstractAction value)
Generated method - Removes
value from actions. |
void |
removeFromTriggers(CxAbstractTrigger value)
Generated method - Removes
value from triggers. |
void |
removeFromTriggers(SessionContext ctx,
CxAbstractTrigger value)
Generated method - Removes
value from triggers. |
void |
setActions(Collection<CxAbstractAction> value)
Generated method - Setter of the
CxVariation.actions attribute. |
void |
setActions(SessionContext ctx,
Collection<CxAbstractAction> value)
Generated method - Setter of the
CxVariation.actions attribute. |
void |
setCatalogVersion(CatalogVersion value)
Generated method - Setter of the
CxVariation.catalogVersion attribute. |
void |
setCatalogVersion(SessionContext ctx,
CatalogVersion value)
Generated method - Setter of the
CxVariation.catalogVersion attribute. |
protected void |
setCode(SessionContext ctx,
String value)
Generated method - Setter of the
CxVariation.code attribute. |
protected void |
setCode(String value)
Generated method - Setter of the
CxVariation.code attribute. |
void |
setCustomization(CxCustomization value)
Generated method - Setter of the
CxVariation.customization attribute. |
void |
setCustomization(SessionContext ctx,
CxCustomization value)
Generated method - Setter of the
CxVariation.customization attribute. |
void |
setEnabled(boolean value)
Generated method - Setter of the
CxVariation.enabled attribute. |
void |
setEnabled(Boolean value)
Generated method - Setter of the
CxVariation.enabled attribute. |
void |
setEnabled(SessionContext ctx,
boolean value)
Generated method - Setter of the
CxVariation.enabled attribute. |
void |
setEnabled(SessionContext ctx,
Boolean value)
Generated method - Setter of the
CxVariation.enabled attribute. |
void |
setName(SessionContext ctx,
String value)
Generated method - Setter of the
CxVariation.name attribute. |
void |
setName(String value)
Generated method - Setter of the
CxVariation.name attribute. |
void |
setStatus(EnumerationValue value)
Generated method - Setter of the
CxVariation.status attribute. |
void |
setStatus(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
CxVariation.status attribute. |
void |
setTriggers(Collection<CxAbstractTrigger> value)
Generated method - Setter of the
CxVariation.triggers attribute. |
void |
setTriggers(SessionContext ctx,
Collection<CxAbstractTrigger> value)
Generated method - Setter of the
CxVariation.triggers 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 CODE
CxVariation.code attributepublic static final String CATALOGVERSION
CxVariation.catalogVersion attributepublic static final String NAME
CxVariation.name attributepublic static final String ENABLED
CxVariation.enabled attributepublic static final String STATUS
CxVariation.status attributepublic static final String CUSTOMIZATIONPOS
CxVariation.customizationPOS attributepublic static final String CUSTOMIZATION
CxVariation.customization attributepublic static final String ACTIONS
CxVariation.actions attributepublic static final String TRIGGERS
CxVariation.triggers attributeprotected static final BidirectionalOneToManyHandler<GeneratedCxVariation> CUSTOMIZATIONHANDLER
BidirectionalOneToManyHandler for handling 1:n CUSTOMIZATION's relation attributes from 'one' side.protected static final OneToManyHandler<CxAbstractAction> ACTIONSHANDLER
OneToManyHandler for handling 1:n ACTIONS's relation attributes from 'many' side.protected static final OneToManyHandler<CxAbstractTrigger> TRIGGERSHANDLER
OneToManyHandler for handling 1:n TRIGGERS'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 Itempublic Collection<CxAbstractAction> getActions(SessionContext ctx)
CxVariation.actions attribute.public Collection<CxAbstractAction> getActions()
CxVariation.actions attribute.public void setActions(SessionContext ctx, Collection<CxAbstractAction> value)
CxVariation.actions attribute.value - the actionspublic void setActions(Collection<CxAbstractAction> value)
CxVariation.actions attribute.value - the actionspublic void addToActions(SessionContext ctx, CxAbstractAction value)
value to actions.value - the item to add to actionspublic void addToActions(CxAbstractAction value)
value to actions.value - the item to add to actionspublic void removeFromActions(SessionContext ctx, CxAbstractAction value)
value from actions.value - the item to remove from actionspublic void removeFromActions(CxAbstractAction value)
value from actions.value - the item to remove from actionspublic CatalogVersion getCatalogVersion(SessionContext ctx)
CxVariation.catalogVersion attribute.public CatalogVersion getCatalogVersion()
CxVariation.catalogVersion attribute.public void setCatalogVersion(SessionContext ctx, CatalogVersion value)
CxVariation.catalogVersion attribute.value - the catalogVersionpublic void setCatalogVersion(CatalogVersion value)
CxVariation.catalogVersion attribute.value - the catalogVersionpublic String getCode(SessionContext ctx)
CxVariation.code attribute.public String getCode()
CxVariation.code attribute.protected void setCode(SessionContext ctx, String value)
CxVariation.code attribute.value - the code - Unique identifierprotected void setCode(String value)
CxVariation.code attribute.value - the code - Unique identifierprotected 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 CxCustomization getCustomization(SessionContext ctx)
CxVariation.customization attribute.public CxCustomization getCustomization()
CxVariation.customization attribute.public void setCustomization(SessionContext ctx, CxCustomization value)
CxVariation.customization attribute.value - the customizationpublic void setCustomization(CxCustomization value)
CxVariation.customization attribute.value - the customizationpublic Boolean isEnabled(SessionContext ctx)
CxVariation.enabled attribute.public Boolean isEnabled()
CxVariation.enabled attribute.public boolean isEnabledAsPrimitive(SessionContext ctx)
CxVariation.enabled attribute.public boolean isEnabledAsPrimitive()
CxVariation.enabled attribute.public void setEnabled(SessionContext ctx, Boolean value)
CxVariation.enabled attribute.value - the enabled - Defines if the variation is enabled or notpublic void setEnabled(Boolean value)
CxVariation.enabled attribute.value - the enabled - Defines if the variation is enabled or notpublic void setEnabled(SessionContext ctx, boolean value)
CxVariation.enabled attribute.value - the enabled - Defines if the variation is enabled or notpublic void setEnabled(boolean value)
CxVariation.enabled attribute.value - the enabled - Defines if the variation is enabled or notpublic String getName(SessionContext ctx)
CxVariation.name attribute.public String getName()
CxVariation.name attribute.public void setName(SessionContext ctx, String value)
CxVariation.name attribute.value - the name - Name of variationpublic void setName(String value)
CxVariation.name attribute.value - the name - Name of variationpublic EnumerationValue getStatus(SessionContext ctx)
CxVariation.status attribute.public EnumerationValue getStatus()
CxVariation.status attribute.public void setStatus(SessionContext ctx, EnumerationValue value)
CxVariation.status attribute.value - the status - Contains current status of itempublic void setStatus(EnumerationValue value)
CxVariation.status attribute.value - the status - Contains current status of itempublic Collection<CxAbstractTrigger> getTriggers(SessionContext ctx)
CxVariation.triggers attribute.public Collection<CxAbstractTrigger> getTriggers()
CxVariation.triggers attribute.public void setTriggers(SessionContext ctx, Collection<CxAbstractTrigger> value)
CxVariation.triggers attribute.value - the triggerspublic void setTriggers(Collection<CxAbstractTrigger> value)
CxVariation.triggers attribute.value - the triggerspublic void addToTriggers(SessionContext ctx, CxAbstractTrigger value)
value to triggers.value - the item to add to triggerspublic void addToTriggers(CxAbstractTrigger value)
value to triggers.value - the item to add to triggerspublic void removeFromTriggers(SessionContext ctx, CxAbstractTrigger value)
value from triggers.value - the item to remove from triggerspublic void removeFromTriggers(CxAbstractTrigger value)
value from triggers.value - the item to remove from triggersCopyright © 2017 SAP SE. All Rights Reserved.