Package de.hybris.platform.jalo.type
Class AbstractNonChangeableAttributeAccess
- java.lang.Object
-
- de.hybris.platform.jalo.type.AbstractNonChangeableAttributeAccess
-
- All Implemented Interfaces:
AttributeAccess
- Direct Known Subclasses:
ConstantAttributeAccess
public abstract class AbstractNonChangeableAttributeAccess extends java.lang.Object implements AttributeAccess
Base class for read-only attributes. Any call to setValue will throw an JaloInvalidParameterException which indicates that the attribute is not changeable.Subclasses only need to implement
setValue
yet.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNonChangeableAttributeAccess(java.lang.String qualifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setValue(SessionContext ctx, Item item, java.lang.Object value)
Stores the attribute data for a given item.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.jalo.type.AttributeAccess
getValue
-
-
-
-
Method Detail
-
setValue
public void setValue(SessionContext ctx, Item item, java.lang.Object value) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
Description copied from interface:AttributeAccess
Stores the attribute data for a given item.- Specified by:
setValue
in interfaceAttributeAccess
- Parameters:
ctx
- the current session context - e.g. specifies the session languageitem
- the item to store data forvalue
- the value to store- Throws:
JaloTypeException
- in case the attribute type does not allow storing this valueJaloInvalidParameterException
- in case the value is not compatible with this attributeJaloSecurityException
- in case there are security constraints which do not allow this value to be writtenJaloBusinessException
- any other error
-
-