Package de.hybris.platform.jalo.c2l
Class C2LItem
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
GeneratedCity,GeneratedCountry,GeneratedCurrency,GeneratedDistrict,GeneratedLanguage,GeneratedRegion
public abstract class C2LItem extends GeneratedC2LItem
Superclass of all c2l items. It provides the following attributes:- active
- isocode
- name (localized)
- See Also:
Locale, Language ISOCodes, Country ISOCodes, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
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 inherited from class de.hybris.platform.jalo.c2l.GeneratedC2LItem
ACTIVE, DEFAULT_INITIAL_ATTRIBUTES, ISOCODE, NAME
-
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 C2LItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidcheckConsistencyActive(java.lang.Boolean active, java.lang.String composedTypeCode)protected voidcheckConsistencyIsocode(java.lang.String newIsoCode, Country country, java.lang.String composedTypeCode)is overridden in RegionEJB to allow unique code per countryjava.util.MapgetAllNames(SessionContext ctx)Deprecated.since ages - useGeneratedC2LItem.getAllName(SessionContext)insteadjava.lang.StringgetIsoCode()Deprecated.since ages - useGeneratedC2LItem.getIsocode()insteadjava.lang.StringgetIsoCode(SessionContext ctx)Deprecated.since ages - useGeneratedC2LItem.getIsocode()insteadjava.lang.BooleanisActive(SessionContext ctx)Generated method - Getter of theC2LItem.activeattribute.voidsetActive(SessionContext ctx, java.lang.Boolean active)Sets this item active or passive.voidsetAllNames(SessionContext ctx, java.util.Map names)Deprecated.since ages - useGeneratedC2LItem.setAllName(SessionContext, Map)insteadvoidsetIsocode(SessionContext ctx, java.lang.String value)Generated method - Setter of theC2LItem.isocodeattribute.voidsetIsoCode(SessionContext ctx, java.lang.String iso)Deprecated.since ages - usesetIsocode(SessionContext, String)insteadvoidsetIsoCode(java.lang.String iso)Deprecated.since ages - useGeneratedC2LItem.setIsocode(String)insteadjava.lang.StringtoString()Returns theStringrepresentation of aC2LItem.-
Methods inherited from class de.hybris.platform.jalo.c2l.GeneratedC2LItem
getAllName, getAllName, getDefaultAttributeModes, getIsocode, getIsocode, getName, getName, isActive, isActiveAsPrimitive, isActiveAsPrimitive, setActive, setActive, setActive, setAllName, setAllName, setIsocode, setName, setName
-
Methods inherited from class de.hybris.platform.jalo.GenericItem
createItem, getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
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, 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, 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, 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, setTransientObject, setUseTA, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Method Detail
-
getAllNames
@Deprecated public java.util.Map getAllNames(SessionContext ctx)
Deprecated.since ages - useGeneratedC2LItem.getAllName(SessionContext)insteadReturns all localized name values of thisC2LItemin aMap(Mapping:Language->String).- Parameters:
ctx- theSessionContextwhich will be used- Returns:
- all localized name values of this
C2LItemin aMap
-
setAllNames
@Deprecated public void setAllNames(SessionContext ctx, java.util.Map names)
Deprecated.since ages - useGeneratedC2LItem.setAllName(SessionContext, Map)insteadSets multiple name values for different languages at once. Name values are specified in aMapwhich must have the following structureLanguage->String.- Parameters:
ctx- A SessionContext objectnames- aMapcontaining all localized name values (Mapping:Language->String)
-
setActive
public void setActive(SessionContext ctx, java.lang.Boolean active) throws ConsistencyCheckException
Sets this item active or passive.- Overrides:
setActivein classGeneratedC2LItem- Parameters:
ctx- theSessionContextwhich will be usedactive- boolean indicating if this C2LItem is active or inactive.- Throws:
ConsistencyCheckException- if you want to deactivate aC2LItem, but this is forbidden. There must be always at least one activeLanguageandCurrencyin the system.
-
getIsoCode
@Deprecated public java.lang.String getIsoCode()
Deprecated.since ages - useGeneratedC2LItem.getIsocode()insteadReturns the isocode of thisC2LItem.- Returns:
- the isocode of this
C2LItem
-
getIsoCode
@Deprecated public java.lang.String getIsoCode(SessionContext ctx)
Deprecated.since ages - useGeneratedC2LItem.getIsocode()insteadReturns the isocode of thisC2LItem.- Parameters:
ctx- theSessionContextwhich will be used- Returns:
- the isocode of this
C2LItem
-
setIsoCode
@Deprecated public void setIsoCode(java.lang.String iso) throws ConsistencyCheckExceptionDeprecated.since ages - useGeneratedC2LItem.setIsocode(String)insteadSets the isocode of thisC2LItem. ISOCodes must be unique within the instances of eachC2LItemsubclass.- Parameters:
iso- the new isocode- Throws:
ConsistencyCheckException- if there is a duplicate isocode found within a subclass ofC2LItem
-
setIsoCode
@Deprecated public void setIsoCode(SessionContext ctx, java.lang.String iso) throws ConsistencyCheckException
Deprecated.since ages - usesetIsocode(SessionContext, String)insteadSets the isocode of thisC2LItem. ISOCodes must be unique within the instances of eachC2LItemsubclass.- Parameters:
ctx- theSessionContextwhich will be usediso- the new isocode- Throws:
ConsistencyCheckException- if there is a duplicate isocode found within a subclass ofC2LItem
-
setIsocode
public void setIsocode(SessionContext ctx, java.lang.String value) throws ConsistencyCheckException
Description copied from class:GeneratedC2LItemGenerated method - Setter of theC2LItem.isocodeattribute.- Overrides:
setIsocodein classGeneratedC2LItemvalue- the isocode- Throws:
ConsistencyCheckException
-
isActive
public java.lang.Boolean isActive(SessionContext ctx)
Description copied from class:GeneratedC2LItemGenerated method - Getter of theC2LItem.activeattribute.- Overrides:
isActivein classGeneratedC2LItem- Returns:
- the active
-
checkConsistencyIsocode
protected void checkConsistencyIsocode(java.lang.String newIsoCode, Country country, java.lang.String composedTypeCode) throws ConsistencyCheckExceptionis overridden in RegionEJB to allow unique code per country- Throws:
ConsistencyCheckException
-
checkConsistencyActive
protected void checkConsistencyActive(java.lang.Boolean active, java.lang.String composedTypeCode) throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
-