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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
doGetAttribute(SessionContext ctx, java.lang.String attrQualifier)
Should get the value of the given attribute if noAttributeAccess
has been registered for it.void
doSetAttribute(SessionContext ctx, java.lang.String attrQualifier, java.lang.Object value)
Should set the value of the given attribute if noAttributeAccess
has been registered for it.ComposedType
provideComposedType()
Should provide the composed type of this item.java.util.Date
provideCreationTime()
Should provide a fixed creation time for this item.java.util.Date
provideModificationTime()
Should provide a modification time for this item.PK
providePK()
Should provide a fixed PK for this item.void
removeJaloOnly()
Called when a jalo only item is removed.
-
-
-
Method Detail
-
removeJaloOnly
void removeJaloOnly() throws ConsistencyCheckException
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
java.util.Date provideCreationTime()
Should provide a fixed creation time for this item.- Returns:
- creation time date of this item
-
provideModificationTime
java.util.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
java.lang.Object doGetAttribute(SessionContext ctx, java.lang.String attrQualifier) throws JaloInvalidParameterException, JaloSecurityException
Should get the value of the given attribute if noAttributeAccess
has 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, java.lang.String attrQualifier, java.lang.Object value) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
Should set the value of the given attribute if noAttributeAccess
has 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
-
-