Class ClassificationPropertyAccessor
java.lang.Object
de.hybris.platform.platformbackoffice.classification.ClassificationPropertyAccessor
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.expression.PropertyAccessor
public class ClassificationPropertyAccessor
extends Object
implements org.springframework.expression.PropertyAccessor, org.springframework.core.Ordered
-
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 target, String qualifier) booleancanWrite(org.springframework.expression.EvaluationContext evaluationContext, Object target, String qualifier) protected FeaturegetFeatureByCode(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, String qualifier) intgetOrder()Class[]protected booleanisClassificationAttributeCorrect(String qualifier) protected voidorg.springframework.expression.TypedValueread(org.springframework.expression.EvaluationContext evaluationContext, Object target, String qualifier) protected FeaturereadModifiedFeature(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, String qualifier) voidsetClassificationService(ClassificationService classificationService) voidsetOrder(int order) protected org.springframework.expression.TypedValuewrapCurrentValue(Object currentValue) voidwrite(org.springframework.expression.EvaluationContext evaluationContext, Object target, String qualifier, Object newValue)
-
Constructor Details
-
ClassificationPropertyAccessor
public ClassificationPropertyAccessor()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
getSpecificTargetClasses
- Specified by:
getSpecificTargetClassesin interfaceorg.springframework.expression.PropertyAccessor
-
canRead
public boolean canRead(org.springframework.expression.EvaluationContext evaluationContext, Object target, String qualifier) throws org.springframework.expression.AccessException - Specified by:
canReadin interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
isClassificationAttributeCorrect
- Parameters:
qualifier-- Returns:
- true if the qualifier represents a possibly valid classification attribute
-
read
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext evaluationContext, Object target, String qualifier) throws org.springframework.expression.AccessException - Specified by:
readin interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
getFeatureByCode
protected Feature getFeatureByCode(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, String qualifier) -
readModifiedFeature
protected Feature readModifiedFeature(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, String qualifier) -
wrapCurrentValue
-
canWrite
public boolean canWrite(org.springframework.expression.EvaluationContext evaluationContext, Object target, String qualifier) throws org.springframework.expression.AccessException - Specified by:
canWritein interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
write
public void write(org.springframework.expression.EvaluationContext evaluationContext, Object target, String qualifier, Object newValue) throws org.springframework.expression.AccessException - Specified by:
writein interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
markDirty
-
setClassificationService
-