public abstract class GeneratedPlaceholderTemplate extends GenericItem
PlaceholderTemplate.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 |
ALTERNATIVEMEDIAEXPRESSION
Qualifier of the
PlaceholderTemplate.alternativeMediaExpression attribute |
static String |
CODE
Qualifier of the
PlaceholderTemplate.code attribute |
static String |
COMETCONFIG
Qualifier of the
PlaceholderTemplate.cometConfig attribute |
protected static BidirectionalOneToManyHandler<GeneratedPlaceholderTemplate> |
COMETCONFIGHANDLER
BidirectionalOneToManyHandler for handling 1:n COMETCONFIG's relation attributes from 'one' side. |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DISPLAYNAMEPATTERN
Qualifier of the
PlaceholderTemplate.displayNamePattern attribute |
static String |
LAYOUTTEMPLATES
Qualifier of the
PlaceholderTemplate.layoutTemplates attribute |
protected static OneToManyHandler<AbstractLayoutTemplate> |
LAYOUTTEMPLATESHANDLER
OneToManyHandler for handling 1:n LAYOUTTEMPLATES's relation attributes from 'many' side. |
static String |
PLACEHOLDERS
Qualifier of the
PlaceholderTemplate.placeholders attribute |
protected static OneToManyHandler<Placeholder> |
PLACEHOLDERSHANDLER
OneToManyHandler for handling 1:n PLACEHOLDERS's relation attributes from 'many' side. |
static String |
PREVIEWTEMPLATE
Qualifier of the
PlaceholderTemplate.previewTemplate attribute |
static String |
TYPE
Qualifier of the
PlaceholderTemplate.type attribute |
protected static BidirectionalOneToManyHandler<GeneratedPlaceholderTemplate> |
TYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n TYPE'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 |
|---|
GeneratedPlaceholderTemplate() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToLayoutTemplates(AbstractLayoutTemplate value)
Generated method - Adds
value to layoutTemplates. |
void |
addToLayoutTemplates(SessionContext ctx,
AbstractLayoutTemplate value)
Generated method - Adds
value to layoutTemplates. |
void |
addToPlaceholders(Placeholder value)
Generated method - Adds
value to placeholders. |
void |
addToPlaceholders(SessionContext ctx,
Placeholder value)
Generated method - Adds
value to placeholders. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
String |
getAlternativeMediaExpression()
Generated method - Getter of the
PlaceholderTemplate.alternativeMediaExpression attribute. |
String |
getAlternativeMediaExpression(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.alternativeMediaExpression attribute. |
String |
getCode()
Generated method - Getter of the
PlaceholderTemplate.code attribute. |
String |
getCode(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.code attribute. |
CometConfiguration |
getCometConfig()
Generated method - Getter of the
PlaceholderTemplate.cometConfig attribute. |
CometConfiguration |
getCometConfig(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.cometConfig attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDisplayNamePattern()
Generated method - Getter of the
PlaceholderTemplate.displayNamePattern attribute. |
String |
getDisplayNamePattern(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.displayNamePattern attribute. |
List<AbstractLayoutTemplate> |
getLayoutTemplates()
Generated method - Getter of the
PlaceholderTemplate.layoutTemplates attribute. |
List<AbstractLayoutTemplate> |
getLayoutTemplates(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.layoutTemplates attribute. |
Collection<Placeholder> |
getPlaceholders()
Generated method - Getter of the
PlaceholderTemplate.placeholders attribute. |
Collection<Placeholder> |
getPlaceholders(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.placeholders attribute. |
String |
getPreviewTemplate()
Generated method - Getter of the
PlaceholderTemplate.previewTemplate attribute. |
String |
getPreviewTemplate(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.previewTemplate attribute. |
ComposedType |
getType()
Generated method - Getter of the
PlaceholderTemplate.type attribute. |
ComposedType |
getType(SessionContext ctx)
Generated method - Getter of the
PlaceholderTemplate.type attribute. |
void |
removeFromLayoutTemplates(AbstractLayoutTemplate value)
Generated method - Removes
value from layoutTemplates. |
void |
removeFromLayoutTemplates(SessionContext ctx,
AbstractLayoutTemplate value)
Generated method - Removes
value from layoutTemplates. |
void |
removeFromPlaceholders(Placeholder value)
Generated method - Removes
value from placeholders. |
void |
removeFromPlaceholders(SessionContext ctx,
Placeholder value)
Generated method - Removes
value from placeholders. |
void |
setAlternativeMediaExpression(SessionContext ctx,
String value)
Generated method - Setter of the
PlaceholderTemplate.alternativeMediaExpression attribute. |
void |
setAlternativeMediaExpression(String value)
Generated method - Setter of the
PlaceholderTemplate.alternativeMediaExpression attribute. |
void |
setCode(SessionContext ctx,
String value)
Generated method - Setter of the
PlaceholderTemplate.code attribute. |
void |
setCode(String value)
Generated method - Setter of the
PlaceholderTemplate.code attribute. |
void |
setCometConfig(CometConfiguration value)
Generated method - Setter of the
PlaceholderTemplate.cometConfig attribute. |
void |
setCometConfig(SessionContext ctx,
CometConfiguration value)
Generated method - Setter of the
PlaceholderTemplate.cometConfig attribute. |
void |
setDisplayNamePattern(SessionContext ctx,
String value)
Generated method - Setter of the
PlaceholderTemplate.displayNamePattern attribute. |
void |
setDisplayNamePattern(String value)
Generated method - Setter of the
PlaceholderTemplate.displayNamePattern attribute. |
void |
setLayoutTemplates(List<AbstractLayoutTemplate> value)
Generated method - Setter of the
PlaceholderTemplate.layoutTemplates attribute. |
void |
setLayoutTemplates(SessionContext ctx,
List<AbstractLayoutTemplate> value)
Generated method - Setter of the
PlaceholderTemplate.layoutTemplates attribute. |
void |
setPlaceholders(Collection<Placeholder> value)
Generated method - Setter of the
PlaceholderTemplate.placeholders attribute. |
void |
setPlaceholders(SessionContext ctx,
Collection<Placeholder> value)
Generated method - Setter of the
PlaceholderTemplate.placeholders attribute. |
void |
setPreviewTemplate(SessionContext ctx,
String value)
Generated method - Setter of the
PlaceholderTemplate.previewTemplate attribute. |
void |
setPreviewTemplate(String value)
Generated method - Setter of the
PlaceholderTemplate.previewTemplate attribute. |
void |
setType(ComposedType value)
Generated method - Setter of the
PlaceholderTemplate.type attribute. |
void |
setType(SessionContext ctx,
ComposedType value)
Generated method - Setter of the
PlaceholderTemplate.type 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
PlaceholderTemplate.code attributepublic static final String DISPLAYNAMEPATTERN
PlaceholderTemplate.displayNamePattern attributepublic static final String PREVIEWTEMPLATE
PlaceholderTemplate.previewTemplate attributepublic static final String ALTERNATIVEMEDIAEXPRESSION
PlaceholderTemplate.alternativeMediaExpression attributepublic static final String PLACEHOLDERS
PlaceholderTemplate.placeholders attributepublic static final String TYPE
PlaceholderTemplate.type attributepublic static final String LAYOUTTEMPLATES
PlaceholderTemplate.layoutTemplates attributepublic static final String COMETCONFIG
PlaceholderTemplate.cometConfig attributeprotected static final OneToManyHandler<Placeholder> PLACEHOLDERSHANDLER
OneToManyHandler for handling 1:n PLACEHOLDERS's relation attributes from 'many' side.protected static final BidirectionalOneToManyHandler<GeneratedPlaceholderTemplate> TYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n TYPE's relation attributes from 'one' side.protected static final OneToManyHandler<AbstractLayoutTemplate> LAYOUTTEMPLATESHANDLER
OneToManyHandler for handling 1:n LAYOUTTEMPLATES's relation attributes from 'many' side.protected static final BidirectionalOneToManyHandler<GeneratedPlaceholderTemplate> COMETCONFIGHANDLER
BidirectionalOneToManyHandler for handling 1:n COMETCONFIG'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 Itempublic String getAlternativeMediaExpression(SessionContext ctx)
PlaceholderTemplate.alternativeMediaExpression attribute.public String getAlternativeMediaExpression()
PlaceholderTemplate.alternativeMediaExpression attribute.public void setAlternativeMediaExpression(SessionContext ctx, String value)
PlaceholderTemplate.alternativeMediaExpression attribute.value - the alternativeMediaExpressionpublic void setAlternativeMediaExpression(String value)
PlaceholderTemplate.alternativeMediaExpression attribute.value - the alternativeMediaExpressionpublic String getCode(SessionContext ctx)
PlaceholderTemplate.code attribute.public String getCode()
PlaceholderTemplate.code attribute.public void setCode(SessionContext ctx, String value)
PlaceholderTemplate.code attribute.value - the codepublic void setCode(String value)
PlaceholderTemplate.code attribute.value - the codepublic CometConfiguration getCometConfig(SessionContext ctx)
PlaceholderTemplate.cometConfig attribute.public CometConfiguration getCometConfig()
PlaceholderTemplate.cometConfig attribute.public void setCometConfig(SessionContext ctx, CometConfiguration value)
PlaceholderTemplate.cometConfig attribute.value - the cometConfigpublic void setCometConfig(CometConfiguration value)
PlaceholderTemplate.cometConfig attribute.value - the cometConfigprotected 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 getDisplayNamePattern(SessionContext ctx)
PlaceholderTemplate.displayNamePattern attribute.public String getDisplayNamePattern()
PlaceholderTemplate.displayNamePattern attribute.public void setDisplayNamePattern(SessionContext ctx, String value)
PlaceholderTemplate.displayNamePattern attribute.value - the displayNamePatternpublic void setDisplayNamePattern(String value)
PlaceholderTemplate.displayNamePattern attribute.value - the displayNamePatternpublic List<AbstractLayoutTemplate> getLayoutTemplates(SessionContext ctx)
PlaceholderTemplate.layoutTemplates attribute.public List<AbstractLayoutTemplate> getLayoutTemplates()
PlaceholderTemplate.layoutTemplates attribute.public void setLayoutTemplates(SessionContext ctx, List<AbstractLayoutTemplate> value)
PlaceholderTemplate.layoutTemplates attribute.value - the layoutTemplatespublic void setLayoutTemplates(List<AbstractLayoutTemplate> value)
PlaceholderTemplate.layoutTemplates attribute.value - the layoutTemplatespublic void addToLayoutTemplates(SessionContext ctx, AbstractLayoutTemplate value)
value to layoutTemplates.value - the item to add to layoutTemplatespublic void addToLayoutTemplates(AbstractLayoutTemplate value)
value to layoutTemplates.value - the item to add to layoutTemplatespublic void removeFromLayoutTemplates(SessionContext ctx, AbstractLayoutTemplate value)
value from layoutTemplates.value - the item to remove from layoutTemplatespublic void removeFromLayoutTemplates(AbstractLayoutTemplate value)
value from layoutTemplates.value - the item to remove from layoutTemplatespublic Collection<Placeholder> getPlaceholders(SessionContext ctx)
PlaceholderTemplate.placeholders attribute.public Collection<Placeholder> getPlaceholders()
PlaceholderTemplate.placeholders attribute.public void setPlaceholders(SessionContext ctx, Collection<Placeholder> value)
PlaceholderTemplate.placeholders attribute.value - the placeholderspublic void setPlaceholders(Collection<Placeholder> value)
PlaceholderTemplate.placeholders attribute.value - the placeholderspublic void addToPlaceholders(SessionContext ctx, Placeholder value)
value to placeholders.value - the item to add to placeholderspublic void addToPlaceholders(Placeholder value)
value to placeholders.value - the item to add to placeholderspublic void removeFromPlaceholders(SessionContext ctx, Placeholder value)
value from placeholders.value - the item to remove from placeholderspublic void removeFromPlaceholders(Placeholder value)
value from placeholders.value - the item to remove from placeholderspublic String getPreviewTemplate(SessionContext ctx)
PlaceholderTemplate.previewTemplate attribute.public String getPreviewTemplate()
PlaceholderTemplate.previewTemplate attribute.public void setPreviewTemplate(SessionContext ctx, String value)
PlaceholderTemplate.previewTemplate attribute.value - the previewTemplatepublic void setPreviewTemplate(String value)
PlaceholderTemplate.previewTemplate attribute.value - the previewTemplatepublic ComposedType getType(SessionContext ctx)
PlaceholderTemplate.type attribute.public ComposedType getType()
PlaceholderTemplate.type attribute.public void setType(SessionContext ctx, ComposedType value)
PlaceholderTemplate.type attribute.value - the typepublic void setType(ComposedType value)
PlaceholderTemplate.type attribute.value - the typeCopyright © 2017 SAP SE. All Rights Reserved.