public class ReflectionAttributeAccess extends Object implements AttributeAccess
| Constructor and Description |
|---|
ReflectionAttributeAccess(String label,
de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod getter,
de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod allGetter,
de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod setter,
de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod allSetter,
boolean localized,
boolean writable,
boolean initialWritable) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
adjustPermissions() |
static AttributeAccess |
createReflectionAccess(Tenant t,
Class itemClass,
AttributeDescriptor ad) |
Method |
getAllGetter() |
Method |
getAllSetter() |
Method |
getGetter() |
String |
getInfo() |
Method |
getSetter() |
Object |
getValue(SessionContext ctx,
Item item)
Retrieves the attribute data from a given item.
|
void |
setValue(SessionContext ctx,
Item item,
Object value)
Stores the attribute data for a given item.
|
String |
toString() |
public ReflectionAttributeAccess(String label, de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod getter, de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod allGetter, de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod setter, de.hybris.platform.jalo.type.ReflectionAttributeAccess.AttributeMethod allSetter, boolean localized, boolean writable, boolean initialWritable)
public static final AttributeAccess createReflectionAccess(Tenant t, Class itemClass, AttributeDescriptor ad)
public Method getGetter()
public Method getSetter()
public Method getAllGetter()
public Method getAllSetter()
public String getInfo()
protected void adjustPermissions()
public Object getValue(SessionContext ctx, Item item) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException
AttributeAccessint are wrapped into their
object instances.getValue in interface AttributeAccessctx - the current session context - e.g. specifies the session languageitem - the item to get data fromJaloTypeException - 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 valuepublic void setValue(SessionContext ctx, Item item, Object value) throws JaloTypeException, JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
AttributeAccesssetValue in interface AttributeAccessctx - the current session context - e.g. specifies the session languageitem - the item to store data forvalue - the value to storeJaloTypeException - 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 errorCopyright © 2017 SAP SE. All Rights Reserved.