Package de.hybris.platform.jalo.c2l
Class C2LItem
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
GeneratedCity,GeneratedCountry,GeneratedCurrency,GeneratedDistrict,GeneratedLanguage,GeneratedRegion
Superclass of all c2l items. It provides the following attributes:
- active
- isocode
- name (localized)
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested 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
Fields inherited from class de.hybris.platform.jalo.c2l.GeneratedC2LItem
ACTIVE, DEFAULT_INITIAL_ATTRIBUTES, ISOCODE, NAMEFields 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 TypeMethodDescriptionprotected voidcheckConsistencyActive(Boolean active, String composedTypeCode) protected voidcheckConsistencyIsocode(String newIsoCode, Country country, String composedTypeCode) is overridden in RegionEJB to allow unique code per countryDeprecated.Deprecated.since ages - useGeneratedC2LItem.getIsocode()insteadgetIsoCode(SessionContext ctx) Deprecated.since ages - useGeneratedC2LItem.getIsocode()insteadisActive(SessionContext ctx) Generated method - Getter of theC2LItem.activeattribute.voidsetActive(SessionContext ctx, Boolean active) Sets this item active or passive.voidsetAllNames(SessionContext ctx, Map names) Deprecated.since ages - useGeneratedC2LItem.setAllName(SessionContext, Map)insteadvoidsetIsocode(SessionContext ctx, String value) Generated method - Setter of theC2LItem.isocodeattribute.voidsetIsoCode(SessionContext ctx, String iso) Deprecated.since ages - usesetIsocode(SessionContext, String)insteadvoidsetIsoCode(String iso) Deprecated.since ages - useGeneratedC2LItem.setIsocode(String)insteadtoString()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, setNameMethods inherited from class de.hybris.platform.jalo.GenericItem
createItem, getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods 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, 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, 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, getPartOfRemovedSessionMarker, 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, suppressRelation, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Constructor Details
-
C2LItem
public C2LItem()
-
-
Method Details
-
getAllNames
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.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
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.since ages - useGeneratedC2LItem.getIsocode()insteadReturns the isocode of thisC2LItem.- Returns:
- the isocode of this
C2LItem
-
getIsoCode
Deprecated.since ages - useGeneratedC2LItem.getIsocode()insteadReturns the isocode of thisC2LItem.- Parameters:
ctx- theSessionContextwhich will be used- Returns:
- the isocode of this
C2LItem
-
setIsoCode
@Deprecated(since="ages", forRemoval=false) public void setIsoCode(String iso) throws ConsistencyCheckException Deprecated.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(since="ages", forRemoval=false) public void setIsoCode(SessionContext ctx, 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
Description copied from class:GeneratedC2LItemGenerated method - Setter of theC2LItem.isocodeattribute.- Overrides:
setIsocodein classGeneratedC2LItemvalue- the isocode- Throws:
ConsistencyCheckException
-
isActive
Description copied from class:GeneratedC2LItemGenerated method - Getter of theC2LItem.activeattribute.- Overrides:
isActivein classGeneratedC2LItem- Returns:
- the active
-
checkConsistencyIsocode
protected void checkConsistencyIsocode(String newIsoCode, Country country, String composedTypeCode) throws ConsistencyCheckException is overridden in RegionEJB to allow unique code per country- Throws:
ConsistencyCheckException
-
checkConsistencyActive
protected void checkConsistencyActive(Boolean active, String composedTypeCode) throws ConsistencyCheckException - Throws:
ConsistencyCheckException
-
toString
Returns theStringrepresentation of aC2LItem.The format of the
Stringrepresentation is 'PK of C2LItem'->'ISOCode of C2LItem'. For example 578345030459940344->de
-
GeneratedC2LItem.getAllName(SessionContext)instead