Package de.hybris.platform.jalo.type
Class TypeManagerManaged
java.lang.Object
de.hybris.platform.util.BridgeAbstraction
de.hybris.platform.jalo.Item
de.hybris.platform.jalo.ExtensibleItem
de.hybris.platform.jalo.c2l.LocalizableItem
de.hybris.platform.jalo.type.TypeManagerManaged
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Descriptor,SearchRestriction,Type
Base class of all type system classes.
This class provides any type system item with a localized name and its extension name. The extension name shows which
extension a type system item belongs to - means: which items.xml it should be declared in.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInternal persistence layer implementation interface.Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe autocreate attribute string constant.static final StringThe deprecated attribute string constant.static final StringThe extension name attribute string constant.static final StringThe generate attribute string constant.static final StringThe name attribute string constant.Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringexportXMLDefinition(org.znerd.xmlenc.XMLOutputter xout) Gives all names in form of a language-to-name map.Gives all names in form of a language-to-name map.Returns the name of the extension which this type system item belongs to.getImpl()Internal access to the persistence layer implementation.getName()getName(SessionContext ctx) booleanbooleanTells whether this type system element was marked as deprecated by the last re-initialization.booleanvoidsetAllNames(SessionContext ctx, Map names) Sets all names at once.voidsetAllNames(Map names) Sets all names at once.voidsetAutocreate(boolean auto) Defines if this type type system element should be create automatically during initialization.voidsetExtensionName(String extname) Changes the name of the extension which this type system item belongs to.voidsetGenerate(boolean gen) Defines if jalo code should be generated for this type system element by build process.voidsetName(SessionContext ctx, String name) Changes the name of this type system item for the specified language.voidChanges the name of this type system item for the current session language.Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, createItem, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getNonInitialAttributes, getOwner, getPartOfRemovedSessionMarker, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRelatedItems, getRelatedItems, 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, setRelatedItems, setTransientObject, setUseTA, suppressRelation, toString, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Field Details
-
NAME
The name attribute string constant.- See Also:
-
EXTENSION_NAME
The extension name attribute string constant.- See Also:
-
DEPRECATED
The deprecated attribute string constant.- See Also:
-
AUTOCREATE
The autocreate attribute string constant.- See Also:
-
GENERATE
The generate attribute string constant.- See Also:
-
-
Constructor Details
-
TypeManagerManaged
public TypeManagerManaged()
-
-
Method Details
-
getExtensionName
Returns the name of the extension which this type system item belongs to.Any type or decriptor declared by an extension's
items.xmlowns the name of this extension. Types or descriptors created after initialization do not have an extension name automatically. -
setExtensionName
Changes the name of the extension which this type system item belongs to.Any type or decriptor declared by an extension's
items.xmlowns the name of this extension. Types or descriptors created after initialization do not have an extension name automatically. -
isDeprecated
public boolean isDeprecated()Tells whether this type system element was marked as deprecated by the last re-initialization. This means that this element was created by previous re-initializations and exists as long as the system is initialized completely. -
isAutocreate
public boolean isAutocreate()- Returns:
- true if the type system element should be create automatically during initialization.
-
setAutocreate
public void setAutocreate(boolean auto) Defines if this type type system element should be create automatically during initialization. -
isGenerate
public boolean isGenerate()- Returns:
- true if jalo code should be generated for this type system element by build process.
-
setGenerate
public void setGenerate(boolean gen) Defines if jalo code should be generated for this type system element by build process. -
getName
- Returns:
- the name of this type system item localized for the current session language
-
getName
- Parameters:
ctx- the session context specifying the language to get the name for- Returns:
- the name of this type system item localized for the specified session context
-
getAllNames
Gives all names in form of a language-to-name map. -
setAllNames
Sets all names at once. All previous names are removed.- Parameters:
names- a map containing language-to-name mappings
-
getAllNames
Gives all names in form of a language-to-name map. -
setName
Changes the name of this type system item for the current session language.- Parameters:
name- the new name
-
setName
Changes the name of this type system item for the specified language.- Parameters:
ctx- the session context defining the language to change the name forname- the new name
-
setAllNames
Sets all names at once. All previous names are removed.- Parameters:
names- a map containing language-to-name mappings
-
getImpl
Internal access to the persistence layer implementation. -
exportXMLDefinition
-