Class JaloPropertyNotVisibleInModelAccessor
java.lang.Object
de.hybris.platform.platformbackoffice.accessors.JaloPropertyNotVisibleInModelAccessor
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.expression.PropertyAccessor
public class JaloPropertyNotVisibleInModelAccessor
extends Object
implements org.springframework.expression.PropertyAccessor, org.springframework.core.Ordered
Property accessor for jalo attributes (attributes with model generate="false")
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRead(org.springframework.expression.EvaluationContext evaluationContext, Object currentObject, String attribute) booleancanWrite(org.springframework.expression.EvaluationContext evaluationContext, Object object, String qualifier) protected ObjectgetModelFromSource(Object object) intgetOrder()Class[]protected booleanhasReadPermission(Object object, String attributeName) protected booleanhasWritePermission(Object object, String attributeName) protected booleanisAttributeWritable(Object object, String qualifier) protected booleanisSupportedAttribute(Object currentObject, String attribute) org.springframework.expression.TypedValueread(org.springframework.expression.EvaluationContext evaluationContext, Object target, String attributeName) voidsetModelService(ModelService modelService) voidsetObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade) voidsetOrder(int order) voidsetPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) voidsetSupportedJaloAttributes(Map<String, Set<Class>> supportedJaloAttributes) Map which represents which attributes should be read/write using JaloPropertyNotVisibleInModelAccessor.voidsetTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade) voidwrite(org.springframework.expression.EvaluationContext evaluationContext, Object target, String attributeName, Object attributeValue)
-
Constructor Details
-
JaloPropertyNotVisibleInModelAccessor
public JaloPropertyNotVisibleInModelAccessor()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
setModelService
-
setTypeFacade
public void setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade) -
setPermissionFacade
public void setPermissionFacade(com.hybris.cockpitng.dataaccess.facades.permissions.PermissionFacade permissionFacade) -
setObjectFacade
public void setObjectFacade(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade) -
getSupportedJaloAttributes
-
setSupportedJaloAttributes
Map which represents which attributes should be read/write using JaloPropertyNotVisibleInModelAccessor. Key of the map is attribute name, and values are set of classes where this attribute exists.- Parameters:
supportedJaloAttributes-
-
getSpecificTargetClasses
- Specified by:
getSpecificTargetClassesin interfaceorg.springframework.expression.PropertyAccessor
-
canRead
public boolean canRead(org.springframework.expression.EvaluationContext evaluationContext, Object currentObject, String attribute) throws org.springframework.expression.AccessException - Specified by:
canReadin interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
isSupportedAttribute
-
read
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext evaluationContext, Object target, String attributeName) throws org.springframework.expression.AccessException - Specified by:
readin interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
getModelFromSource
-
canWrite
public boolean canWrite(org.springframework.expression.EvaluationContext evaluationContext, Object object, String qualifier) throws org.springframework.expression.AccessException - Specified by:
canWritein interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
isAttributeWritable
-
hasReadPermission
-
hasWritePermission
-
write
public void write(org.springframework.expression.EvaluationContext evaluationContext, Object target, String attributeName, Object attributeValue) throws org.springframework.expression.AccessException - Specified by:
writein interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-