public abstract class GeneratedContentSlotName extends GenericItem
ContentSlotName.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 |
COMPTYPEGROUP
Qualifier of the
ContentSlotName.compTypeGroup attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
NAME
Qualifier of the
ContentSlotName.name attribute |
static String |
TEMPLATE
Qualifier of the
ContentSlotName.template attribute |
protected static BidirectionalOneToManyHandler<GeneratedContentSlotName> |
TEMPLATEHANDLER
BidirectionalOneToManyHandler for handling 1:n TEMPLATE's relation attributes from 'one' side. |
static String |
TEMPLATEPOS
Qualifier of the
ContentSlotName.templatePOS attribute |
static String |
VALIDCOMPONENTTYPES
Qualifier of the
ContentSlotName.validComponentTypes attribute |
protected static String |
VALIDCOMPONENTTYPESFORCONTENTSLOTS_MARKMODIFIED
Relation disable markmodifed parameter constants for ValidComponentTypesForContentSlots from ((cms2))
|
protected static String |
VALIDCOMPONENTTYPESFORCONTENTSLOTS_SRC_ORDERED
Relation ordering override parameter constants for ValidComponentTypesForContentSlots from ((cms2))
|
protected static String |
VALIDCOMPONENTTYPESFORCONTENTSLOTS_TGT_ORDERED |
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 |
|---|
GeneratedContentSlotName() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToValidComponentTypes(CMSComponentType value)
Generated method - Adds
value to validComponentTypes. |
void |
addToValidComponentTypes(SessionContext ctx,
CMSComponentType value)
Generated method - Adds
value to validComponentTypes. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
ComponentTypeGroup |
getCompTypeGroup()
Generated method - Getter of the
ContentSlotName.compTypeGroup attribute. |
ComponentTypeGroup |
getCompTypeGroup(SessionContext ctx)
Generated method - Getter of the
ContentSlotName.compTypeGroup attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getName()
Generated method - Getter of the
ContentSlotName.name attribute. |
String |
getName(SessionContext ctx)
Generated method - Getter of the
ContentSlotName.name attribute. |
PageTemplate |
getTemplate()
Generated method - Getter of the
ContentSlotName.template attribute. |
PageTemplate |
getTemplate(SessionContext ctx)
Generated method - Getter of the
ContentSlotName.template attribute. |
Set<CMSComponentType> |
getValidComponentTypes()
Generated method - Getter of the
ContentSlotName.validComponentTypes attribute. |
Set<CMSComponentType> |
getValidComponentTypes(SessionContext ctx)
Generated method - Getter of the
ContentSlotName.validComponentTypes attribute. |
long |
getValidComponentTypesCount() |
long |
getValidComponentTypesCount(SessionContext ctx) |
void |
removeFromValidComponentTypes(CMSComponentType value)
Generated method - Removes
value from validComponentTypes. |
void |
removeFromValidComponentTypes(SessionContext ctx,
CMSComponentType value)
Generated method - Removes
value from validComponentTypes. |
void |
setCompTypeGroup(ComponentTypeGroup value)
Generated method - Setter of the
ContentSlotName.compTypeGroup attribute. |
void |
setCompTypeGroup(SessionContext ctx,
ComponentTypeGroup value)
Generated method - Setter of the
ContentSlotName.compTypeGroup attribute. |
void |
setName(SessionContext ctx,
String value)
Generated method - Setter of the
ContentSlotName.name attribute. |
void |
setName(String value)
Generated method - Setter of the
ContentSlotName.name attribute. |
protected void |
setTemplate(PageTemplate value)
Generated method - Setter of the
ContentSlotName.template attribute. |
protected void |
setTemplate(SessionContext ctx,
PageTemplate value)
Generated method - Setter of the
ContentSlotName.template attribute. |
void |
setValidComponentTypes(SessionContext ctx,
Set<CMSComponentType> value)
Generated method - Setter of the
ContentSlotName.validComponentTypes attribute. |
void |
setValidComponentTypes(Set<CMSComponentType> value)
Generated method - Setter of the
ContentSlotName.validComponentTypes 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
ContentSlotName.name attributepublic static final String COMPTYPEGROUP
ContentSlotName.compTypeGroup attributepublic static final String TEMPLATEPOS
ContentSlotName.templatePOS attributepublic static final String TEMPLATE
ContentSlotName.template attributepublic static final String VALIDCOMPONENTTYPES
ContentSlotName.validComponentTypes attributeprotected static String VALIDCOMPONENTTYPESFORCONTENTSLOTS_SRC_ORDERED
protected static String VALIDCOMPONENTTYPESFORCONTENTSLOTS_TGT_ORDERED
protected static String VALIDCOMPONENTTYPESFORCONTENTSLOTS_MARKMODIFIED
protected static final BidirectionalOneToManyHandler<GeneratedContentSlotName> TEMPLATEHANDLER
BidirectionalOneToManyHandler for handling 1:n TEMPLATE'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 ComponentTypeGroup getCompTypeGroup(SessionContext ctx)
ContentSlotName.compTypeGroup attribute.public ComponentTypeGroup getCompTypeGroup()
ContentSlotName.compTypeGroup attribute.public void setCompTypeGroup(SessionContext ctx, ComponentTypeGroup value)
ContentSlotName.compTypeGroup attribute.value - the compTypeGrouppublic void setCompTypeGroup(ComponentTypeGroup value)
ContentSlotName.compTypeGroup attribute.value - the compTypeGroupprotected 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 getName(SessionContext ctx)
ContentSlotName.name attribute.public String getName()
ContentSlotName.name attribute.public void setName(SessionContext ctx, String value)
ContentSlotName.name attribute.value - the namepublic void setName(String value)
ContentSlotName.name attribute.value - the namepublic PageTemplate getTemplate(SessionContext ctx)
ContentSlotName.template attribute.public PageTemplate getTemplate()
ContentSlotName.template attribute.protected void setTemplate(SessionContext ctx, PageTemplate value)
ContentSlotName.template attribute.value - the templateprotected void setTemplate(PageTemplate value)
ContentSlotName.template attribute.value - the templatepublic Set<CMSComponentType> getValidComponentTypes(SessionContext ctx)
ContentSlotName.validComponentTypes attribute.public Set<CMSComponentType> getValidComponentTypes()
ContentSlotName.validComponentTypes attribute.public long getValidComponentTypesCount(SessionContext ctx)
public long getValidComponentTypesCount()
public void setValidComponentTypes(SessionContext ctx, Set<CMSComponentType> value)
ContentSlotName.validComponentTypes attribute.value - the validComponentTypespublic void setValidComponentTypes(Set<CMSComponentType> value)
ContentSlotName.validComponentTypes attribute.value - the validComponentTypespublic void addToValidComponentTypes(SessionContext ctx, CMSComponentType value)
value to validComponentTypes.value - the item to add to validComponentTypespublic void addToValidComponentTypes(CMSComponentType value)
value to validComponentTypes.value - the item to add to validComponentTypespublic void removeFromValidComponentTypes(SessionContext ctx, CMSComponentType value)
value from validComponentTypes.value - the item to remove from validComponentTypespublic void removeFromValidComponentTypes(CMSComponentType value)
value from validComponentTypes.value - the item to remove from validComponentTypesCopyright © 2017 SAP SE. All Rights Reserved.