public abstract class GeneratedWidgetParameter extends GenericItem
WidgetParameter.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 |
|---|---|
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
DEFAULTVALUEEXPRESSION
Qualifier of the
WidgetParameter.defaultValueExpression attribute |
static java.lang.String |
DESCRIPTION
Qualifier of the
WidgetParameter.description attribute |
static java.lang.String |
NAME
Qualifier of the
WidgetParameter.name attribute |
static java.lang.String |
TARGETTYPE
Qualifier of the
WidgetParameter.targetType attribute |
static java.lang.String |
TYPE
Qualifier of the
WidgetParameter.type attribute |
static java.lang.String |
VALUE
Qualifier of the
WidgetParameter.value attribute |
static java.lang.String |
WIDGETPREFERENCES
Qualifier of the
WidgetParameter.widgetPreferences attribute |
protected static BidirectionalOneToManyHandler<GeneratedWidgetParameter> |
WIDGETPREFERENCESHANDLER
BidirectionalOneToManyHandler for handling 1:n WIDGETPREFERENCES's relation attributes from 'one' 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, staticTransientObjectsimpl, tenant| Constructor and Description |
|---|
GeneratedWidgetParameter() |
| 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.
|
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.String |
getDefaultValueExpression()
Generated method - Getter of the
WidgetParameter.defaultValueExpression attribute. |
java.lang.String |
getDefaultValueExpression(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.defaultValueExpression attribute. |
java.lang.String |
getDescription()
Generated method - Getter of the
WidgetParameter.description attribute. |
java.lang.String |
getDescription(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.description attribute. |
java.lang.String |
getName()
Generated method - Getter of the
WidgetParameter.name attribute. |
java.lang.String |
getName(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.name attribute. |
java.lang.String |
getTargetType()
Generated method - Getter of the
WidgetParameter.targetType attribute. |
java.lang.String |
getTargetType(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.targetType attribute. |
Type |
getType()
Generated method - Getter of the
WidgetParameter.type attribute. |
Type |
getType(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.type attribute. |
java.lang.Object |
getValue()
Generated method - Getter of the
WidgetParameter.value attribute. |
java.lang.Object |
getValue(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.value attribute. |
DynamicWidgetPreferences |
getWidgetPreferences()
Generated method - Getter of the
WidgetParameter.widgetPreferences attribute. |
DynamicWidgetPreferences |
getWidgetPreferences(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.widgetPreferences attribute. |
void |
setDefaultValueExpression(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
WidgetParameter.defaultValueExpression attribute. |
void |
setDefaultValueExpression(java.lang.String value)
Generated method - Setter of the
WidgetParameter.defaultValueExpression attribute. |
void |
setDescription(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
WidgetParameter.description attribute. |
void |
setDescription(java.lang.String value)
Generated method - Setter of the
WidgetParameter.description attribute. |
void |
setName(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
WidgetParameter.name attribute. |
void |
setName(java.lang.String value)
Generated method - Setter of the
WidgetParameter.name attribute. |
void |
setTargetType(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
WidgetParameter.targetType attribute. |
void |
setTargetType(java.lang.String value)
Generated method - Setter of the
WidgetParameter.targetType attribute. |
void |
setType(SessionContext ctx,
Type value)
Generated method - Setter of the
WidgetParameter.type attribute. |
void |
setType(Type value)
Generated method - Setter of the
WidgetParameter.type attribute. |
void |
setValue(java.lang.Object value)
Generated method - Setter of the
WidgetParameter.value attribute. |
void |
setValue(SessionContext ctx,
java.lang.Object value)
Generated method - Setter of the
WidgetParameter.value attribute. |
void |
setWidgetPreferences(DynamicWidgetPreferences value)
Generated method - Setter of the
WidgetParameter.widgetPreferences attribute. |
void |
setWidgetPreferences(SessionContext ctx,
DynamicWidgetPreferences value)
Generated method - Setter of the
WidgetParameter.widgetPreferences 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 NAME
WidgetParameter.name attributepublic static final java.lang.String TYPE
WidgetParameter.type attributepublic static final java.lang.String DESCRIPTION
WidgetParameter.description attributepublic static final java.lang.String DEFAULTVALUEEXPRESSION
WidgetParameter.defaultValueExpression attributepublic static final java.lang.String TARGETTYPE
WidgetParameter.targetType attributepublic static final java.lang.String VALUE
WidgetParameter.value attributepublic static final java.lang.String WIDGETPREFERENCES
WidgetParameter.widgetPreferences attributeprotected static final BidirectionalOneToManyHandler<GeneratedWidgetParameter> WIDGETPREFERENCESHANDLER
BidirectionalOneToManyHandler for handling 1:n WIDGETPREFERENCES'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 Itemprotected 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 getDefaultValueExpression(SessionContext ctx)
WidgetParameter.defaultValueExpression attribute.public java.lang.String getDefaultValueExpression()
WidgetParameter.defaultValueExpression attribute.public void setDefaultValueExpression(SessionContext ctx, java.lang.String value)
WidgetParameter.defaultValueExpression attribute.value - the defaultValueExpressionpublic void setDefaultValueExpression(java.lang.String value)
WidgetParameter.defaultValueExpression attribute.value - the defaultValueExpressionpublic java.lang.String getDescription(SessionContext ctx)
WidgetParameter.description attribute.public java.lang.String getDescription()
WidgetParameter.description attribute.public void setDescription(SessionContext ctx, java.lang.String value)
WidgetParameter.description attribute.value - the descriptionpublic void setDescription(java.lang.String value)
WidgetParameter.description attribute.value - the descriptionpublic java.lang.String getName(SessionContext ctx)
WidgetParameter.name attribute.public java.lang.String getName()
WidgetParameter.name attribute.public void setName(SessionContext ctx, java.lang.String value)
WidgetParameter.name attribute.value - the namepublic void setName(java.lang.String value)
WidgetParameter.name attribute.value - the namepublic java.lang.String getTargetType(SessionContext ctx)
WidgetParameter.targetType attribute.public java.lang.String getTargetType()
WidgetParameter.targetType attribute.public void setTargetType(SessionContext ctx, java.lang.String value)
WidgetParameter.targetType attribute.value - the targetTypepublic void setTargetType(java.lang.String value)
WidgetParameter.targetType attribute.value - the targetTypepublic Type getType(SessionContext ctx)
WidgetParameter.type attribute.public Type getType()
WidgetParameter.type attribute.public void setType(SessionContext ctx, Type value)
WidgetParameter.type attribute.value - the typepublic void setType(Type value)
WidgetParameter.type attribute.value - the typepublic java.lang.Object getValue(SessionContext ctx)
WidgetParameter.value attribute.public java.lang.Object getValue()
WidgetParameter.value attribute.public void setValue(SessionContext ctx, java.lang.Object value)
WidgetParameter.value attribute.value - the valuepublic void setValue(java.lang.Object value)
WidgetParameter.value attribute.value - the valuepublic DynamicWidgetPreferences getWidgetPreferences(SessionContext ctx)
WidgetParameter.widgetPreferences attribute.public DynamicWidgetPreferences getWidgetPreferences()
WidgetParameter.widgetPreferences attribute.public void setWidgetPreferences(SessionContext ctx, DynamicWidgetPreferences value)
WidgetParameter.widgetPreferences attribute.value - the widgetPreferencespublic void setWidgetPreferences(DynamicWidgetPreferences value)
WidgetParameter.widgetPreferences attribute.value - the widgetPreferencesCopyright © 2018 SAP SE. All Rights Reserved.