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 Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DEFAULTVALUEEXPRESSION
Qualifier of the
WidgetParameter.defaultValueExpression attribute |
static String |
DESCRIPTION
Qualifier of the
WidgetParameter.description attribute |
static String |
NAME
Qualifier of the
WidgetParameter.name attribute |
static String |
TARGETTYPE
Qualifier of the
WidgetParameter.targetType attribute |
static String |
TYPE
Qualifier of the
WidgetParameter.type attribute |
static String |
VALUE
Qualifier of the
WidgetParameter.value attribute |
static 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 Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDefaultValueExpression()
Generated method - Getter of the
WidgetParameter.defaultValueExpression attribute. |
String |
getDefaultValueExpression(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.defaultValueExpression attribute. |
String |
getDescription()
Generated method - Getter of the
WidgetParameter.description attribute. |
String |
getDescription(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.description attribute. |
String |
getName()
Generated method - Getter of the
WidgetParameter.name attribute. |
String |
getName(SessionContext ctx)
Generated method - Getter of the
WidgetParameter.name attribute. |
String |
getTargetType()
Generated method - Getter of the
WidgetParameter.targetType attribute. |
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. |
Object |
getValue()
Generated method - Getter of the
WidgetParameter.value attribute. |
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,
String value)
Generated method - Setter of the
WidgetParameter.defaultValueExpression attribute. |
void |
setDefaultValueExpression(String value)
Generated method - Setter of the
WidgetParameter.defaultValueExpression attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
WidgetParameter.description attribute. |
void |
setDescription(String value)
Generated method - Setter of the
WidgetParameter.description attribute. |
void |
setName(SessionContext ctx,
String value)
Generated method - Setter of the
WidgetParameter.name attribute. |
void |
setName(String value)
Generated method - Setter of the
WidgetParameter.name attribute. |
void |
setTargetType(SessionContext ctx,
String value)
Generated method - Setter of the
WidgetParameter.targetType attribute. |
void |
setTargetType(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(Object value)
Generated method - Setter of the
WidgetParameter.value attribute. |
void |
setValue(SessionContext ctx,
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, 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 NAME
WidgetParameter.name attributepublic static final String TYPE
WidgetParameter.type attributepublic static final String DESCRIPTION
WidgetParameter.description attributepublic static final String DEFAULTVALUEEXPRESSION
WidgetParameter.defaultValueExpression attributepublic static final String TARGETTYPE
WidgetParameter.targetType attributepublic static final String VALUE
WidgetParameter.value attributepublic static final 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 Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<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 String getDefaultValueExpression(SessionContext ctx)
WidgetParameter.defaultValueExpression attribute.public String getDefaultValueExpression()
WidgetParameter.defaultValueExpression attribute.public void setDefaultValueExpression(SessionContext ctx, String value)
WidgetParameter.defaultValueExpression attribute.value - the defaultValueExpressionpublic void setDefaultValueExpression(String value)
WidgetParameter.defaultValueExpression attribute.value - the defaultValueExpressionpublic String getDescription(SessionContext ctx)
WidgetParameter.description attribute.public String getDescription()
WidgetParameter.description attribute.public void setDescription(SessionContext ctx, String value)
WidgetParameter.description attribute.value - the descriptionpublic void setDescription(String value)
WidgetParameter.description attribute.value - the descriptionpublic String getName(SessionContext ctx)
WidgetParameter.name attribute.public String getName()
WidgetParameter.name attribute.public void setName(SessionContext ctx, String value)
WidgetParameter.name attribute.value - the namepublic void setName(String value)
WidgetParameter.name attribute.value - the namepublic String getTargetType(SessionContext ctx)
WidgetParameter.targetType attribute.public String getTargetType()
WidgetParameter.targetType attribute.public void setTargetType(SessionContext ctx, String value)
WidgetParameter.targetType attribute.value - the targetTypepublic void setTargetType(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 Object getValue(SessionContext ctx)
WidgetParameter.value attribute.public Object getValue()
WidgetParameter.value attribute.public void setValue(SessionContext ctx, Object value)
WidgetParameter.value attribute.value - the valuepublic void setValue(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 © 2017 SAP SE. All Rights Reserved.