Class BaseController

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String DEFAULT_FIELD_SET  
      protected static java.lang.String FULL_FIELD_SET  
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper()  
      protected de.hybris.platform.servicelayer.i18n.I18NService getI18nService()  
      protected org.springframework.context.MessageSource getMessageSource()  
      protected ErrorListWsDTO handleErrorInternal​(java.lang.String type, java.lang.String message)  
      ErrorListWsDTO handleModelNotFoundException​(java.lang.Exception ex)  
      protected java.lang.String sanitize​(java.lang.String input)  
      void setDataMapper​(de.hybris.platform.webservicescommons.mapping.DataMapper dataMapper)  
      void setI18nService​(de.hybris.platform.servicelayer.i18n.I18NService i18nService)  
      void setMessageSource​(org.springframework.context.MessageSource messageSource)  
      protected void validate​(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_FIELD_SET

        protected static final java.lang.String DEFAULT_FIELD_SET
        See Also:
        Constant Field Values
    • Constructor Detail

      • BaseController

        public BaseController()
    • Method Detail

      • sanitize

        protected java.lang.String sanitize​(java.lang.String input)
      • handleModelNotFoundException

        @ResponseStatus(BAD_REQUEST)
        @ResponseBody
        @ExceptionHandler(de.hybris.platform.servicelayer.exceptions.ModelNotFoundException.class)
        public ErrorListWsDTO handleModelNotFoundException​(java.lang.Exception ex)
      • validate

        protected void validate​(java.lang.Object object,
                                java.lang.String objectName,
                                org.springframework.validation.Validator validator)
      • handleErrorInternal

        protected ErrorListWsDTO handleErrorInternal​(java.lang.String type,
                                                     java.lang.String message)
      • getDataMapper

        protected de.hybris.platform.webservicescommons.mapping.DataMapper getDataMapper()
      • setDataMapper

        public void setDataMapper​(de.hybris.platform.webservicescommons.mapping.DataMapper dataMapper)
      • getI18nService

        protected de.hybris.platform.servicelayer.i18n.I18NService getI18nService()
      • setI18nService

        public void setI18nService​(de.hybris.platform.servicelayer.i18n.I18NService i18nService)
      • getMessageSource

        protected org.springframework.context.MessageSource getMessageSource()
      • setMessageSource

        public void setMessageSource​(org.springframework.context.MessageSource messageSource)