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:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
Descriptor
,SearchRestriction
,Type
public abstract class TypeManagerManaged extends LocalizableItem
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TypeManagerManaged.TypeManagerManagedImpl
Internal persistence layer implementation interface.-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested 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
Fields Modifier and Type Field Description static java.lang.String
AUTOCREATE
The autocreate attribute string constant.static java.lang.String
DEPRECATED
The deprecated attribute string constant.static java.lang.String
EXTENSION_NAME
The extension name attribute string constant.static java.lang.String
GENERATE
The generate attribute string constant.static java.lang.String
NAME
The name attribute string constant.-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields 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, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description TypeManagerManaged()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
exportXMLDefinition(org.znerd.xmlenc.XMLOutputter xout)
java.util.Map
getAllNames()
Gives all names in form of a language-to-name map.java.util.Map
getAllNames(SessionContext ctx)
Gives all names in form of a language-to-name map.java.lang.String
getExtensionName()
Returns the name of the extension which this type system item belongs to.protected TypeManagerManaged.TypeManagerManagedImpl
getImpl()
Internal access to the persistence layer implementation.java.lang.String
getName()
java.lang.String
getName(SessionContext ctx)
boolean
isAutocreate()
boolean
isDeprecated()
Tells whether this type system element was marked as deprecated by the last re-initialization.boolean
isGenerate()
void
setAllNames(SessionContext ctx, java.util.Map names)
Sets all names at once.void
setAllNames(java.util.Map names)
Sets all names at once.void
setAutocreate(boolean auto)
Defines if this type type system element should be create automatically during initialization.void
setExtensionName(java.lang.String extname)
Changes the name of the extension which this type system item belongs to.void
setGenerate(boolean gen)
Defines if jalo code should be generated for this type system element by build process.void
setName(SessionContext ctx, java.lang.String name)
Changes the name of this type system item for the specified language.void
setName(java.lang.String name)
Changes 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, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods 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, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, 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, toString, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
The name attribute string constant.- See Also:
- Constant Field Values
-
EXTENSION_NAME
public static final java.lang.String EXTENSION_NAME
The extension name attribute string constant.- See Also:
- Constant Field Values
-
DEPRECATED
public static final java.lang.String DEPRECATED
The deprecated attribute string constant.- See Also:
- Constant Field Values
-
AUTOCREATE
public static final java.lang.String AUTOCREATE
The autocreate attribute string constant.- See Also:
- Constant Field Values
-
GENERATE
public static final java.lang.String GENERATE
The generate attribute string constant.- See Also:
- Constant Field Values
-
-
Method Detail
-
getExtensionName
public java.lang.String getExtensionName()
Returns the name of the extension which this type system item belongs to.Any type or decriptor declared by an extension's
items.xml
owns the name of this extension. Types or descriptors created after initialization do not have an extension name automatically.
-
setExtensionName
public void setExtensionName(java.lang.String extname)
Changes the name of the extension which this type system item belongs to.Any type or decriptor declared by an extension's
items.xml
owns 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
public java.lang.String getName()
- Returns:
- the name of this type system item localized for the current session language
-
getName
public java.lang.String getName(SessionContext ctx)
- 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
public java.util.Map getAllNames(SessionContext ctx)
Gives all names in form of a language-to-name map.
-
setAllNames
public void setAllNames(SessionContext ctx, java.util.Map names)
Sets all names at once. All previous names are removed.- Parameters:
names
- a map containing language-to-name mappings
-
getAllNames
public java.util.Map getAllNames()
Gives all names in form of a language-to-name map.
-
setName
public void setName(java.lang.String name)
Changes the name of this type system item for the current session language.- Parameters:
name
- the new name
-
setName
public void setName(SessionContext ctx, java.lang.String name)
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
public void setAllNames(java.util.Map names)
Sets all names at once. All previous names are removed.- Parameters:
names
- a map containing language-to-name mappings
-
getImpl
protected TypeManagerManaged.TypeManagerManagedImpl getImpl()
Internal access to the persistence layer implementation.
-
exportXMLDefinition
public abstract java.lang.String exportXMLDefinition(org.znerd.xmlenc.XMLOutputter xout)
-
-