public abstract class GeneratedCxCustomization extends GenericItem
CxCustomization.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 java.lang.String |
CATALOGVERSION
Qualifier of the
CxCustomization.catalogVersion attribute |
static java.lang.String |
CODE
Qualifier of the
CxCustomization.code attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
DESCRIPTION
Qualifier of the
CxCustomization.description attribute |
static java.lang.String |
ENABLEDENDDATE
Qualifier of the
CxCustomization.enabledEndDate attribute |
static java.lang.String |
ENABLEDSTARTDATE
Qualifier of the
CxCustomization.enabledStartDate attribute |
static java.lang.String |
GROUP
Qualifier of the
CxCustomization.group attribute |
protected static BidirectionalOneToManyHandler<GeneratedCxCustomization> |
GROUPHANDLER
BidirectionalOneToManyHandler for handling 1:n GROUP's relation attributes from 'one' side. |
static java.lang.String |
GROUPPOS
Qualifier of the
CxCustomization.groupPOS attribute |
static java.lang.String |
LONGDESCRIPTION
Qualifier of the
CxCustomization.longDescription attribute |
static java.lang.String |
NAME
Qualifier of the
CxCustomization.name attribute |
static java.lang.String |
STATUS
Qualifier of the
CxCustomization.status attribute |
static java.lang.String |
VARIATIONS
Qualifier of the
CxCustomization.variations attribute |
protected static OneToManyHandler<CxVariation> |
VARIATIONSHANDLER
OneToManyHandler for handling 1:n VARIATIONS'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 |
|---|
GeneratedCxCustomization() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToVariations(CxVariation value)
Generated method - Adds
value to variations. |
void |
addToVariations(SessionContext ctx,
CxVariation value)
Generated method - Adds
value to variations. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
CatalogVersion |
getCatalogVersion()
Generated method - Getter of the
CxCustomization.catalogVersion attribute. |
CatalogVersion |
getCatalogVersion(SessionContext ctx)
Generated method - Getter of the
CxCustomization.catalogVersion attribute. |
java.lang.String |
getCode()
Generated method - Getter of the
CxCustomization.code attribute. |
java.lang.String |
getCode(SessionContext ctx)
Generated method - Getter of the
CxCustomization.code attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.String |
getDescription()
Generated method - Getter of the
CxCustomization.description attribute. |
java.lang.String |
getDescription(SessionContext ctx)
Generated method - Getter of the
CxCustomization.description attribute. |
java.util.Date |
getEnabledEndDate()
Generated method - Getter of the
CxCustomization.enabledEndDate attribute. |
java.util.Date |
getEnabledEndDate(SessionContext ctx)
Generated method - Getter of the
CxCustomization.enabledEndDate attribute. |
java.util.Date |
getEnabledStartDate()
Generated method - Getter of the
CxCustomization.enabledStartDate attribute. |
java.util.Date |
getEnabledStartDate(SessionContext ctx)
Generated method - Getter of the
CxCustomization.enabledStartDate attribute. |
CxCustomizationsGroup |
getGroup()
Generated method - Getter of the
CxCustomization.group attribute. |
CxCustomizationsGroup |
getGroup(SessionContext ctx)
Generated method - Getter of the
CxCustomization.group attribute. |
java.lang.String |
getLongDescription()
Generated method - Getter of the
CxCustomization.longDescription attribute. |
java.lang.String |
getLongDescription(SessionContext ctx)
Generated method - Getter of the
CxCustomization.longDescription attribute. |
java.lang.String |
getName()
Generated method - Getter of the
CxCustomization.name attribute. |
java.lang.String |
getName(SessionContext ctx)
Generated method - Getter of the
CxCustomization.name attribute. |
EnumerationValue |
getStatus()
Generated method - Getter of the
CxCustomization.status attribute. |
EnumerationValue |
getStatus(SessionContext ctx)
Generated method - Getter of the
CxCustomization.status attribute. |
java.util.List<CxVariation> |
getVariations()
Generated method - Getter of the
CxCustomization.variations attribute. |
java.util.List<CxVariation> |
getVariations(SessionContext ctx)
Generated method - Getter of the
CxCustomization.variations attribute. |
void |
removeFromVariations(CxVariation value)
Generated method - Removes
value from variations. |
void |
removeFromVariations(SessionContext ctx,
CxVariation value)
Generated method - Removes
value from variations. |
void |
setCatalogVersion(CatalogVersion value)
Generated method - Setter of the
CxCustomization.catalogVersion attribute. |
void |
setCatalogVersion(SessionContext ctx,
CatalogVersion value)
Generated method - Setter of the
CxCustomization.catalogVersion attribute. |
protected void |
setCode(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
CxCustomization.code attribute. |
protected void |
setCode(java.lang.String value)
Generated method - Setter of the
CxCustomization.code attribute. |
void |
setDescription(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
CxCustomization.description attribute. |
void |
setDescription(java.lang.String value)
Generated method - Setter of the
CxCustomization.description attribute. |
void |
setEnabledEndDate(java.util.Date value)
Generated method - Setter of the
CxCustomization.enabledEndDate attribute. |
void |
setEnabledEndDate(SessionContext ctx,
java.util.Date value)
Generated method - Setter of the
CxCustomization.enabledEndDate attribute. |
void |
setEnabledStartDate(java.util.Date value)
Generated method - Setter of the
CxCustomization.enabledStartDate attribute. |
void |
setEnabledStartDate(SessionContext ctx,
java.util.Date value)
Generated method - Setter of the
CxCustomization.enabledStartDate attribute. |
void |
setGroup(CxCustomizationsGroup value)
Generated method - Setter of the
CxCustomization.group attribute. |
void |
setGroup(SessionContext ctx,
CxCustomizationsGroup value)
Generated method - Setter of the
CxCustomization.group attribute. |
void |
setLongDescription(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
CxCustomization.longDescription attribute. |
void |
setLongDescription(java.lang.String value)
Generated method - Setter of the
CxCustomization.longDescription attribute. |
void |
setName(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
CxCustomization.name attribute. |
void |
setName(java.lang.String value)
Generated method - Setter of the
CxCustomization.name attribute. |
void |
setStatus(EnumerationValue value)
Generated method - Setter of the
CxCustomization.status attribute. |
void |
setStatus(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
CxCustomization.status attribute. |
void |
setVariations(java.util.List<CxVariation> value)
Generated method - Setter of the
CxCustomization.variations attribute. |
void |
setVariations(SessionContext ctx,
java.util.List<CxVariation> value)
Generated method - Setter of the
CxCustomization.variations attribute. |
getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, 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, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, writeReplacesetTenantpublic static final java.lang.String CODE
CxCustomization.code attributepublic static final java.lang.String CATALOGVERSION
CxCustomization.catalogVersion attributepublic static final java.lang.String NAME
CxCustomization.name attributepublic static final java.lang.String DESCRIPTION
CxCustomization.description attributepublic static final java.lang.String LONGDESCRIPTION
CxCustomization.longDescription attributepublic static final java.lang.String STATUS
CxCustomization.status attributepublic static final java.lang.String ENABLEDSTARTDATE
CxCustomization.enabledStartDate attributepublic static final java.lang.String ENABLEDENDDATE
CxCustomization.enabledEndDate attributepublic static final java.lang.String VARIATIONS
CxCustomization.variations attributepublic static final java.lang.String GROUPPOS
CxCustomization.groupPOS attributepublic static final java.lang.String GROUP
CxCustomization.group attributeprotected static final OneToManyHandler<CxVariation> VARIATIONSHANDLER
OneToManyHandler for handling 1:n VARIATIONS's relation attributes from 'many' side.protected static final BidirectionalOneToManyHandler<GeneratedCxCustomization> GROUPHANDLER
BidirectionalOneToManyHandler for handling 1:n GROUP's relation attributes from 'one' side.protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic CatalogVersion getCatalogVersion(SessionContext ctx)
CxCustomization.catalogVersion attribute.public CatalogVersion getCatalogVersion()
CxCustomization.catalogVersion attribute.public void setCatalogVersion(SessionContext ctx, CatalogVersion value)
CxCustomization.catalogVersion attribute.value - the catalogVersionpublic void setCatalogVersion(CatalogVersion value)
CxCustomization.catalogVersion attribute.value - the catalogVersionpublic java.lang.String getCode(SessionContext ctx)
CxCustomization.code attribute.public java.lang.String getCode()
CxCustomization.code attribute.protected void setCode(SessionContext ctx, java.lang.String value)
CxCustomization.code attribute.value - the code - Unique identifierprotected void setCode(java.lang.String value)
CxCustomization.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 java.lang.String getDescription(SessionContext ctx)
CxCustomization.description attribute.public java.lang.String getDescription()
CxCustomization.description attribute.public void setDescription(SessionContext ctx, java.lang.String value)
CxCustomization.description attribute.value - the description - Description of customizationpublic void setDescription(java.lang.String value)
CxCustomization.description attribute.value - the description - Description of customizationpublic java.util.Date getEnabledEndDate(SessionContext ctx)
CxCustomization.enabledEndDate attribute.public java.util.Date getEnabledEndDate()
CxCustomization.enabledEndDate attribute.public void setEnabledEndDate(SessionContext ctx, java.util.Date value)
CxCustomization.enabledEndDate attribute.value - the enabledEndDate - Date and time till which customization will be activepublic void setEnabledEndDate(java.util.Date value)
CxCustomization.enabledEndDate attribute.value - the enabledEndDate - Date and time till which customization will be activepublic java.util.Date getEnabledStartDate(SessionContext ctx)
CxCustomization.enabledStartDate attribute.public java.util.Date getEnabledStartDate()
CxCustomization.enabledStartDate attribute.public void setEnabledStartDate(SessionContext ctx, java.util.Date value)
CxCustomization.enabledStartDate attribute.value - the enabledStartDate - Date and time from which customization will be activepublic void setEnabledStartDate(java.util.Date value)
CxCustomization.enabledStartDate attribute.value - the enabledStartDate - Date and time from which customization will be activepublic CxCustomizationsGroup getGroup(SessionContext ctx)
CxCustomization.group attribute.public CxCustomizationsGroup getGroup()
CxCustomization.group attribute.public void setGroup(SessionContext ctx, CxCustomizationsGroup value)
CxCustomization.group attribute.value - the grouppublic void setGroup(CxCustomizationsGroup value)
CxCustomization.group attribute.value - the grouppublic java.lang.String getLongDescription(SessionContext ctx)
CxCustomization.longDescription attribute.public java.lang.String getLongDescription()
CxCustomization.longDescription attribute.public void setLongDescription(SessionContext ctx, java.lang.String value)
CxCustomization.longDescription attribute.value - the longDescription - Long description of customizationpublic void setLongDescription(java.lang.String value)
CxCustomization.longDescription attribute.value - the longDescription - Long description of customizationpublic java.lang.String getName(SessionContext ctx)
CxCustomization.name attribute.public java.lang.String getName()
CxCustomization.name attribute.public void setName(SessionContext ctx, java.lang.String value)
CxCustomization.name attribute.value - the name - Name of customizationpublic void setName(java.lang.String value)
CxCustomization.name attribute.value - the name - Name of customizationpublic EnumerationValue getStatus(SessionContext ctx)
CxCustomization.status attribute.public EnumerationValue getStatus()
CxCustomization.status attribute.public void setStatus(SessionContext ctx, EnumerationValue value)
CxCustomization.status attribute.value - the status - Contains current status of itempublic void setStatus(EnumerationValue value)
CxCustomization.status attribute.value - the status - Contains current status of itempublic java.util.List<CxVariation> getVariations(SessionContext ctx)
CxCustomization.variations attribute.public java.util.List<CxVariation> getVariations()
CxCustomization.variations attribute.public void setVariations(SessionContext ctx, java.util.List<CxVariation> value)
CxCustomization.variations attribute.value - the variationspublic void setVariations(java.util.List<CxVariation> value)
CxCustomization.variations attribute.value - the variationspublic void addToVariations(SessionContext ctx, CxVariation value)
value to variations.value - the item to add to variationspublic void addToVariations(CxVariation value)
value to variations.value - the item to add to variationspublic void removeFromVariations(SessionContext ctx, CxVariation value)
value from variations.value - the item to remove from variationspublic void removeFromVariations(CxVariation value)
value from variations.value - the item to remove from variationsCopyright © 2018 SAP SE. All Rights Reserved.