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 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidsetValue(SessionContext ctx, Item item, 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, waitMethods inherited from interface de.hybris.platform.jalo.type.AttributeAccess
getValue
-
Constructor Details
-
AbstractNonChangeableAttributeAccess
-
-
Method Details
-
setValue
public void setValue(SessionContext ctx, Item item, Object value) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException, JaloBusinessException Description copied from interface:AttributeAccessStores the attribute data for a given item.- Specified by:
setValuein 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
-