Package de.hybris.platform.jalo.type
Class PropertyAccess
- java.lang.Object
-
- de.hybris.platform.jalo.type.PropertyAccess
-
- All Implemented Interfaces:
AttributeAccess
- Direct Known Subclasses:
LocalizableFeatureAccess
public class PropertyAccess extends java.lang.Object implements AttributeAccess
Default feature access for properties. This one is used whenever there is no static field feature access field is declared for a feature which modifiers contains theAttributeDescriptor.PROPERTY
flag.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
qualifier
-
Constructor Summary
Constructors Constructor Description PropertyAccess(java.lang.String qualifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getValue(SessionContext ctx, Item item)
Retrieves the attribute data from a given item.void
setValue(SessionContext ctx, Item item, java.lang.Object value)
Stores the attribute data for a given item.
-
-
-
Method Detail
-
setValue
public void setValue(SessionContext ctx, Item item, java.lang.Object value) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException
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 written
-
getValue
public java.lang.Object getValue(SessionContext ctx, Item item) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException
Description copied from interface:AttributeAccess
Retrieves the attribute data from a given item. Primitive data types likeint
are wrapped into their object instances.- Specified by:
getValue
in interfaceAttributeAccess
- 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
-
-