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 Details

    • 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

      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

      Should get the value of the given attribute if no AttributeAccess has been registered for it. Otherwise the value is read from the access instance.
      Parameters:
      ctx - the session context
      attrQualifier - the qualifier of the requested attribute
      Returns:
      the attribute value
      Throws:
      JaloInvalidParameterException - in case no value could be read for this attribute
      JaloSecurityException
    • doSetAttribute

      void doSetAttribute(SessionContext ctx, String attrQualifier, Object value) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
      Should set the value of the given attribute if no AttributeAccess has been registered for it. Otherwise the value is read from the access instance.
      Parameters:
      ctx - the session context
      attrQualifier - the qualifier of the requested attribute
      value - the new attribute value
      Throws:
      JaloInvalidParameterException - in case the value could not be written for this attribute
      JaloSecurityException - in case the session user is not allowed to write this attribute
      JaloBusinessException - in case any other error occured