Class LocalizedModelPropertyAccessor
- java.lang.Object
-
- de.hybris.platform.platformbackoffice.accessors.LocalizedModelPropertyAccessor
-
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.expression.PropertyAccessor
public class LocalizedModelPropertyAccessor extends java.lang.Object implements org.springframework.expression.PropertyAccessor, org.springframework.core.Ordered
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.LoggerLOGstatic java.lang.StringUSE_SESSION_LANGUAGE_FOR_LOCALIZED
-
Constructor Summary
Constructors Constructor Description LocalizedModelPropertyAccessor()
-
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 java.util.Collection<java.util.Locale>getLocales(org.springframework.expression.EvaluationContext context)intgetOrder()java.lang.Class[]getSpecificTargetClasses()org.springframework.expression.TypedValueread(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier)voidsetCockpitLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService)voidsetCockpitUserService(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService)voidsetModelService(ModelService modelService)voidsetOrder(int order)voidsetTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)protected voidvalidateWrite(java.lang.Object newValue)voidwrite(org.springframework.expression.EvaluationContext evaluationContext, java.lang.Object target, java.lang.String qualifier, java.lang.Object newValue)
-
-
-
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
-
USE_SESSION_LANGUAGE_FOR_LOCALIZED
public static final java.lang.String USE_SESSION_LANGUAGE_FOR_LOCALIZED
- See Also:
- Constant Field Values
-
-
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
-
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
-
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
-
getLocales
protected java.util.Collection<java.util.Locale> getLocales(org.springframework.expression.EvaluationContext context)
-
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
-
validateWrite
protected void validateWrite(java.lang.Object newValue)
-
setTypeFacade
public void setTypeFacade(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
-
setCockpitLocaleService
public void setCockpitLocaleService(com.hybris.cockpitng.i18n.CockpitLocaleService cockpitLocaleService)
-
setModelService
public void setModelService(ModelService modelService)
-
setCockpitUserService
public void setCockpitUserService(com.hybris.cockpitng.core.user.CockpitUserService cockpitUserService)
-
-