Class DefaultConfigUploadAuExtension

java.lang.Object
com.hybris.backoffice.config.zk.au.DefaultConfigUploadAuExtension
All Implemented Interfaces:
org.zkoss.zk.au.http.AuExtension

public class DefaultConfigUploadAuExtension extends Object implements org.zkoss.zk.au.http.AuExtension
  • Field Details

  • Constructor Details

    • DefaultConfigUploadAuExtension

      public DefaultConfigUploadAuExtension()
  • Method Details

    • init

      public void init(org.zkoss.zk.au.http.DHtmlUpdateServlet servlet)
      Specified by:
      init in interface org.zkoss.zk.au.http.AuExtension
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.zkoss.zk.au.http.AuExtension
    • service

      public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi)
      Specified by:
      service in interface org.zkoss.zk.au.http.AuExtension
    • handleConfigValidate

      protected void handleConfigValidate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • formatConfigValidationResponse

      protected void formatConfigValidationResponse(com.hybris.cockpitng.core.util.jaxb.SchemaValidationStatus status, javax.servlet.http.HttpServletResponse response) throws UnsupportedEncodingException
      Throws:
      UnsupportedEncodingException
    • getInputStream

      protected InputStream getInputStream(javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • getValidationLabelForStatus

      protected String getValidationLabelForStatus(com.hybris.cockpitng.core.util.jaxb.SchemaValidationStatus status)
    • handleConfigUpload

      protected void handleConfigUpload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • fetchConfigFromRequest

      protected String fetchConfigFromRequest(javax.servlet.http.HttpServletRequest request) throws IOException
      Throws:
      IOException
    • storeConfig

      protected void storeConfig(String xml, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • isConfigurationFiltered

      protected boolean isConfigurationFiltered(javax.servlet.http.HttpServletRequest request)
    • handleError

      protected void handleError(javax.servlet.http.HttpServletResponse response, Exception error)
    • shouldValidateCockpitConfig

      protected boolean shouldValidateCockpitConfig(javax.servlet.http.HttpServletRequest request)
    • getCockpitProperties

      protected com.hybris.cockpitng.core.util.CockpitProperties getCockpitProperties(javax.servlet.http.HttpServletRequest request)
    • getCockpitAdminService

      protected com.hybris.cockpitng.admin.CockpitAdminService getCockpitAdminService(javax.servlet.http.HttpServletRequest request)
    • getConfigUnmarshaller

      protected javax.xml.bind.Unmarshaller getConfigUnmarshaller(javax.servlet.http.HttpServletRequest request) throws javax.xml.bind.JAXBException
      Throws:
      javax.xml.bind.JAXBException
    • getConfigWithAppliedChanges

      protected com.hybris.cockpitng.core.config.impl.jaxb.Config getConfigWithAppliedChanges(com.hybris.cockpitng.core.config.impl.jaxb.Config changes, javax.servlet.http.HttpServletRequest request) throws com.hybris.cockpitng.core.config.CockpitConfigurationException
      Throws:
      com.hybris.cockpitng.core.config.CockpitConfigurationException
    • getCockpitConfigurationService

      protected com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationService getCockpitConfigurationService(javax.servlet.http.HttpServletRequest request)
    • getCockpitSessionService

      protected com.hybris.cockpitng.util.CockpitSessionService getCockpitSessionService(javax.servlet.http.HttpServletRequest request)
    • getApplicationContext

      public org.springframework.context.ApplicationContext getApplicationContext(javax.servlet.http.HttpServletRequest request)