Package de.hybris.platform.jalo.config
Class ConfigProxyItem
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.config.ConfigProxyItem
-
- All Implemented Interfaces:
JaloOnlyItem,JaloOnlySingletonItem,java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
LDAPConfigProxyItem
public class ConfigProxyItem extends Item implements JaloOnlySingletonItem
A singleton used to manage config properties. Uses ConfigItem iternally to read/store config properties.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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.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 ConfigProxyItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanbooleanValue(java.lang.String value)ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)Returns an instance of this class.java.lang.ObjectdoGetAttribute(SessionContext ctx, java.lang.String qualifier)Should get the value of the given attribute if noAttributeAccesshas been registered for it.voiddoSetAttribute(SessionContext ctx, java.lang.String qualifier, java.lang.Object value)Should set the value of the given attribute if noAttributeAccesshas been registered for it.protected java.lang.StringgetExternalQualifier(java.lang.String qualifier)intgetInt(java.lang.String qualifier, int def)protected java.io.SerializablegetPersistentValue(java.lang.String qualifier)protected java.lang.StringgetTransientValue(java.lang.String qualifier)java.lang.ObjectgetValue(SessionContext ctx, java.lang.String qualifier)java.lang.ObjectgetValue(java.lang.String qualifier)static java.lang.IntegerintegerValue(java.lang.String value)static java.lang.LonglongValue(java.lang.String value)ComposedTypeprovideComposedType()Should provide the composed type of this item.java.util.DateprovideCreationTime()Should provide a fixed creation time for this item.java.util.DateprovideModificationTime()Should provide a modification time for this item.PKprovidePK()Should provide a fixed PK for this item.voidremoveJaloOnly()no-opprotected voidsetPersistentValue(java.lang.String qualifier, java.lang.String value)protected voidsetTransientValue(java.lang.String qualifier, java.lang.String value)voidsetValue(SessionContext ctx, java.lang.String qualifier, java.lang.Object value)voidsetValue(java.lang.String qualifier, java.lang.Object value)protected booleanstoreInDatabase(java.lang.String qualifier)-
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, createNonClassAccessor, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getDefaultAttributeModes, getImplementation, 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, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Method Detail
-
providePK
public PK providePK()
Description copied from interface:JaloOnlyItemShould provide a fixed PK for this item.- Specified by:
providePKin interfaceJaloOnlyItem- Returns:
- PK of this item
-
provideComposedType
public ComposedType provideComposedType()
Description copied from interface:JaloOnlyItemShould provide the composed type of this item.- Specified by:
provideComposedTypein interfaceJaloOnlyItem- Returns:
- ComposedType of this item
-
createItem
public Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Returns an instance of this class.- Specified by:
createItemin classItem- Parameters:
ctx- 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 )- Returns:
- the new item instance
- Throws:
JaloBusinessException- indicates an error during creation - any changes will be rollbacked
-
removeJaloOnly
public void removeJaloOnly() throws ConsistencyCheckExceptionno-op- Specified by:
removeJaloOnlyin interfaceJaloOnlyItem- Throws:
ConsistencyCheckException- to signal that this item removal failed
-
provideCreationTime
public java.util.Date provideCreationTime()
Description copied from interface:JaloOnlyItemShould provide a fixed creation time for this item.- Specified by:
provideCreationTimein interfaceJaloOnlyItem- Returns:
- creation time date of this item
-
provideModificationTime
public java.util.Date provideModificationTime()
Description copied from interface:JaloOnlyItemShould provide a modification time for this item.- Specified by:
provideModificationTimein interfaceJaloOnlyItem- Returns:
- modification time date of this item
-
doGetAttribute
public java.lang.Object doGetAttribute(SessionContext ctx, java.lang.String qualifier)
Description copied from interface:JaloOnlyItemShould get the value of the given attribute if noAttributeAccesshas been registered for it. Otherwise the value is read from the access instance.- Specified by:
doGetAttributein interfaceJaloOnlyItem- Parameters:
ctx- the session contextqualifier- the qualifier of the requested attribute- Returns:
- the attribute value
-
getInt
public int getInt(java.lang.String qualifier, int def)
-
getValue
public java.lang.Object getValue(java.lang.String qualifier)
-
getValue
public java.lang.Object getValue(SessionContext ctx, java.lang.String qualifier)
-
doSetAttribute
public void doSetAttribute(SessionContext ctx, java.lang.String qualifier, java.lang.Object value) throws JaloBusinessException
Description copied from interface:JaloOnlyItemShould set the value of the given attribute if noAttributeAccesshas been registered for it. Otherwise the value is read from the access instance.- Specified by:
doSetAttributein interfaceJaloOnlyItem- Parameters:
ctx- the session contextqualifier- the qualifier of the requested attributevalue- the new attribute value- Throws:
JaloSecurityException- in case the session user is not allowed to write this attributeJaloBusinessException- in case any other error occured
-
setValue
public void setValue(java.lang.String qualifier, java.lang.Object value)
-
setValue
public void setValue(SessionContext ctx, java.lang.String qualifier, java.lang.Object value)
-
setTransientValue
protected void setTransientValue(java.lang.String qualifier, java.lang.String value)
-
getTransientValue
protected java.lang.String getTransientValue(java.lang.String qualifier)
-
setPersistentValue
protected void setPersistentValue(java.lang.String qualifier, java.lang.String value)
-
getPersistentValue
protected java.io.Serializable getPersistentValue(java.lang.String qualifier)
-
storeInDatabase
protected boolean storeInDatabase(java.lang.String qualifier)
- Returns:
- true if the attribute should be stored in database
-
getExternalQualifier
protected java.lang.String getExternalQualifier(java.lang.String qualifier)
- Returns:
- the external qualifier of this attribute which is used to get/set the attribute via
Config
-
booleanValue
public static boolean booleanValue(java.lang.String value)
-
integerValue
public static java.lang.Integer integerValue(java.lang.String value)
-
longValue
public static java.lang.Long longValue(java.lang.String value)
-
-