Package de.hybris.platform.jalo.type
Class ConstantAttributeAccess
- java.lang.Object
-
- de.hybris.platform.jalo.type.AbstractNonChangeableAttributeAccess
-
- de.hybris.platform.jalo.type.ConstantAttributeAccess
-
- All Implemented Interfaces:
AttributeAccess
public class ConstantAttributeAccess extends AbstractNonChangeableAttributeAccess
internal use only!
-
-
Constructor Summary
Constructors Constructor Description ConstantAttributeAccess(java.lang.String qualifier, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue(SessionContext ctx, Item item)Retrieves the attribute data from a given item.-
Methods inherited from class de.hybris.platform.jalo.type.AbstractNonChangeableAttributeAccess
setValue
-
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue(SessionContext ctx, Item item) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException
Description copied from interface:AttributeAccessRetrieves the attribute data from a given item. Primitive data types likeintare wrapped into their object instances.- Parameters:
ctx- the current session context - e.g. specifies the session languageitem- the item to get data from- Returns:
- the data value
- Throws:
JaloTypeException- in case the attribute type does not allow reading this valueJaloInvalidParameterException- in some data required for reading the value is missing or not as expected ( like missing session language )JaloSecurityException- in case there are security constraints which do not allow reding this value
-
-