Package de.hybris.platform.jalo
Interface JaloOnlyItem
- All Known Subinterfaces:
JaloOnlySingletonItem
- All Known Implementing Classes:
CachedPromotionNullAction,CachedPromotionOrderAddFreeGiftAction,CachedPromotionOrderAdjustTotalAction,CachedPromotionOrderChangeDeliveryModeAction,CachedPromotionOrderEntryAdjustAction,CachedPromotionOrderEntryConsumed,CachedPromotionResult,ConfigProxyItem,GeneratedMultiAddressInMemoryCart,InMemoryCart,InMemoryCartEntry,JaloOnlyItemHelper,LDAPConfigProxyItem,MultiAddressInMemoryCart,ViewResultItem
public interface JaloOnlyItem
Interface for all items which do only exists in jalo layer and are not backed by an entity bean.
To allow applications transparent use of such items multiple (fixed) values must be provided.
-
Method Summary
Modifier and TypeMethodDescriptiondoGetAttribute(SessionContext ctx, String attrQualifier) Should get the value of the given attribute if noAttributeAccesshas been registered for it.voiddoSetAttribute(SessionContext ctx, String attrQualifier, Object value) Should set the value of the given attribute if noAttributeAccesshas been registered for it.Should provide the composed type of this item.Should provide a fixed creation time for this item.Should provide a modification time for this item.Should provide a fixed PK for this item.voidCalled when a jalo only item is removed.
-
Method Details
-
removeJaloOnly
Called when a jalo only item is removed. This is the place to do any cleanup if necessary.- Throws:
ConsistencyCheckException- to signal that this item removal failed
-
providePK
PK providePK()Should provide a fixed PK for this item.- Returns:
- PK of this item
-
provideCreationTime
Date provideCreationTime()Should provide a fixed creation time for this item.- Returns:
- creation time date of this item
-
provideModificationTime
Date provideModificationTime()Should provide a modification time for this item.- Returns:
- modification time date of this item
-
provideComposedType
ComposedType provideComposedType()Should provide the composed type of this item.- Returns:
- ComposedType of this item
-
doGetAttribute
Object doGetAttribute(SessionContext ctx, String attrQualifier) throws JaloInvalidParameterException, JaloSecurityException Should get the value of the given attribute if noAttributeAccesshas been registered for it. Otherwise the value is read from the access instance.- Parameters:
ctx- the session contextattrQualifier- the qualifier of the requested attribute- Returns:
- the attribute value
- Throws:
JaloInvalidParameterException- in case no value could be read for this attributeJaloSecurityException
-
doSetAttribute
void doSetAttribute(SessionContext ctx, String attrQualifier, Object value) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException Should set the value of the given attribute if noAttributeAccesshas been registered for it. Otherwise the value is read from the access instance.- Parameters:
ctx- the session contextattrQualifier- the qualifier of the requested attributevalue- the new attribute value- Throws:
JaloInvalidParameterException- in case the value could not be written for this attributeJaloSecurityException- in case the session user is not allowed to write this attributeJaloBusinessException- in case any other error occured
-