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 java.lang.Object implements org.springframework.expression.PropertyAccessor, org.springframework.core.Ordered
-
-
Constructor Summary
Constructors Constructor Description ClassificationPropertyAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRead(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)booleancanWrite(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)protected FeaturegetFeatureByCode(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, java.lang.String qualifier)intgetOrder()java.lang.Class[]getSpecificTargetClasses()protected booleanisClassificationAttributeCorrect(java.lang.String qualifier)protected voidmarkDirty(ItemModel target)org.springframework.expression.TypedValueread(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)protected FeaturereadModifiedFeature(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, java.lang.String qualifier)voidsetClassificationService(ClassificationService classificationService)voidsetOrder(int order)protected org.springframework.expression.TypedValuewrapCurrentValue(java.lang.Object currentValue)voidwrite(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier, java.lang.Object newValue)
-
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-
getSpecificTargetClasses
public java.lang.Class[] getSpecificTargetClasses()
- Specified by:
getSpecificTargetClassesin interfaceorg.springframework.expression.PropertyAccessor
-
canRead
public boolean canRead(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier) throws org.springframework.expression.AccessException- Specified by:
canReadin interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
isClassificationAttributeCorrect
protected boolean isClassificationAttributeCorrect(java.lang.String qualifier)
- 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, java.lang.Object target, java.lang.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, java.lang.String qualifier)
-
readModifiedFeature
protected Feature readModifiedFeature(org.springframework.expression.EvaluationContext evaluationContext, ProductModel productModel, java.lang.String qualifier)
-
wrapCurrentValue
protected org.springframework.expression.TypedValue wrapCurrentValue(java.lang.Object currentValue)
-
canWrite
public boolean canWrite(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.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, java.lang.Object target, java.lang.String qualifier, java.lang.Object newValue) throws org.springframework.expression.AccessException- Specified by:
writein interfaceorg.springframework.expression.PropertyAccessor- Throws:
org.springframework.expression.AccessException
-
markDirty
protected void markDirty(ItemModel target)
-
setClassificationService
public void setClassificationService(ClassificationService classificationService)
-
-