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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected StringfetchConfigFromRequest(javax.servlet.http.HttpServletRequest request) protected voidformatConfigValidationResponse(com.hybris.cockpitng.core.util.jaxb.SchemaValidationStatus status, javax.servlet.http.HttpServletResponse response) org.springframework.context.ApplicationContextgetApplicationContext(javax.servlet.http.HttpServletRequest request) protected com.hybris.cockpitng.admin.CockpitAdminServicegetCockpitAdminService(javax.servlet.http.HttpServletRequest request) protected com.hybris.cockpitng.core.config.impl.DefaultCockpitConfigurationServicegetCockpitConfigurationService(javax.servlet.http.HttpServletRequest request) protected com.hybris.cockpitng.core.util.CockpitPropertiesgetCockpitProperties(javax.servlet.http.HttpServletRequest request) protected com.hybris.cockpitng.util.CockpitSessionServicegetCockpitSessionService(javax.servlet.http.HttpServletRequest request) protected javax.xml.bind.UnmarshallergetConfigUnmarshaller(javax.servlet.http.HttpServletRequest request) protected com.hybris.cockpitng.core.config.impl.jaxb.ConfiggetConfigWithAppliedChanges(com.hybris.cockpitng.core.config.impl.jaxb.Config changes, javax.servlet.http.HttpServletRequest request) protected InputStreamgetInputStream(javax.servlet.http.HttpServletRequest request) protected StringgetValidationLabelForStatus(com.hybris.cockpitng.core.util.jaxb.SchemaValidationStatus status) protected voidhandleConfigUpload(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected voidhandleConfigValidate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected voidhandleError(javax.servlet.http.HttpServletResponse response, Exception error) voidinit(org.zkoss.zk.au.http.DHtmlUpdateServlet servlet) protected booleanisConfigurationFiltered(javax.servlet.http.HttpServletRequest request) voidservice(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi) protected booleanshouldValidateCockpitConfig(javax.servlet.http.HttpServletRequest request) protected voidstoreConfig(String xml, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.zk.au.http.AuExtension
charsetSetup
-
Field Details
-
CONFIG_VALIDATE
- See Also:
-
CONFIG_UPLOAD
- See Also:
-
I18N_CONFIG_PERSISTENCE_FAILED_GENERIC_MESSAGE
- See Also:
-
-
Constructor Details
-
DefaultConfigUploadAuExtension
public DefaultConfigUploadAuExtension()
-
-
Method Details
-
init
public void init(org.zkoss.zk.au.http.DHtmlUpdateServlet servlet) - Specified by:
initin interfaceorg.zkoss.zk.au.http.AuExtension
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.zkoss.zk.au.http.AuExtension
-
service
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String pi) - Specified by:
servicein interfaceorg.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
-
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)
-