List of usage examples for com.vaadin.server CustomizedSystemMessages CustomizedSystemMessages
CustomizedSystemMessages
From source file:com.freebox.engeneering.application.web.common.ApplicationMessagesProvider.java
License:Apache License
@Override public SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo) { final CustomizedSystemMessages customizedSystemMessages = new CustomizedSystemMessages(); customizedSystemMessages.setSessionExpiredNotificationEnabled(false); customizedSystemMessages.setOutOfSyncNotificationEnabled(false); customizedSystemMessages.setAuthenticationErrorNotificationEnabled(false); customizedSystemMessages.setCommunicationErrorNotificationEnabled(false); customizedSystemMessages.setCookiesDisabledNotificationEnabled(false); return customizedSystemMessages; }
From source file:com.haulmont.cuba.web.sys.CubaVaadinServletService.java
License:Apache License
public CubaVaadinServletService(VaadinServlet servlet, DeploymentConfiguration deploymentConfiguration) throws ServiceException { super(servlet, deploymentConfiguration); Configuration configuration = AppBeans.get(Configuration.NAME); webConfig = configuration.getConfig(WebConfig.class); webAuthConfig = configuration.getConfig(WebAuthConfig.class); testMode = configuration.getConfig(GlobalConfig.class).getTestMode(); ServletContext sc = servlet.getServletContext(); String resourcesTimestamp = sc.getInitParameter("webResourcesTs"); if (StringUtils.isNotEmpty(resourcesTimestamp)) { this.webResourceTimestamp = resourcesTimestamp; } else {/*w w w . ja v a 2s .c o m*/ this.webResourceTimestamp = "DEBUG"; } addSessionInitListener(event -> { WrappedSession wrappedSession = event.getSession().getSession(); wrappedSession.setMaxInactiveInterval(webConfig.getHttpSessionExpirationTimeoutSec()); HttpSession httpSession = wrappedSession instanceof WrappedHttpSession ? ((WrappedHttpSession) wrappedSession).getHttpSession() : null; log.debug("HttpSession {} initialized, timeout={}sec", httpSession, wrappedSession.getMaxInactiveInterval()); }); addSessionDestroyListener(event -> { WrappedSession wrappedSession = event.getSession().getSession(); HttpSession httpSession = wrappedSession instanceof WrappedHttpSession ? ((WrappedHttpSession) wrappedSession).getHttpSession() : null; log.debug("HttpSession destroyed: {}", httpSession); App app = event.getSession().getAttribute(App.class); if (app != null) { app.cleanupBackgroundTasks(); } }); setSystemMessagesProvider(systemMessagesInfo -> { Locale locale = systemMessagesInfo.getLocale(); CustomizedSystemMessages msgs = new CustomizedSystemMessages(); if (AppContext.isStarted()) { try { Messages messages = AppBeans.get(Messages.NAME); msgs.setInternalErrorCaption(messages.getMainMessage("internalErrorCaption", locale)); msgs.setInternalErrorMessage(messages.getMainMessage("internalErrorMessage", locale)); msgs.setCommunicationErrorCaption(messages.getMainMessage("communicationErrorCaption", locale)); msgs.setCommunicationErrorMessage(messages.getMainMessage("communicationErrorMessage", locale)); msgs.setSessionExpiredCaption(messages.getMainMessage("sessionExpiredErrorCaption", locale)); msgs.setSessionExpiredMessage(messages.getMainMessage("sessionExpiredErrorMessage", locale)); } catch (Exception e) { log.error("Unable to set system messages", e); throw new RuntimeException("Unable to set system messages. " + "It usually happens when the middleware web application is not responding due to " + "errors on start. See logs for details.", e); } } String redirectUri; if (RequestContext.get() != null) { HttpServletRequest request = RequestContext.get().getRequest(); redirectUri = StringUtils.replace(request.getRequestURI(), "/UIDL", ""); } else { String webContext = AppContext.getProperty("cuba.webContextName"); redirectUri = "/" + webContext; } msgs.setInternalErrorURL(redirectUri + "?restartApp"); return msgs; }); }
From source file:com.klwork.explorer.web.DefaultSpringSystemMessagesProvider.java
License:Apache License
@Override public SystemMessages getSystemMessages(Locale locale) { CustomizedSystemMessages systemMessages = new CustomizedSystemMessages(); String message;/*ww w.ja va 2 s . c om*/ message = messageSource.getMessage("vaadin.sessionExpired.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setSessionExpiredCaption(message); } message = messageSource.getMessage("vaadin.sessionExpired.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setSessionExpiredMessage(message); } message = messageSource.getMessage("vaadin.sessionExpired.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setSessionExpiredURL(message); } message = messageSource.getMessage("vaadin.sessionExpired.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setSessionExpiredNotificationEnabled(notificationEnabled); } message = messageSource.getMessage("vaadin.communicationError.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCommunicationErrorCaption(message); } message = messageSource.getMessage("vaadin.communicationError.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCommunicationErrorMessage(message); } message = messageSource.getMessage("vaadin.communicationError.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCommunicationErrorURL(message); } message = messageSource.getMessage("vaadin.communicationError.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setCommunicationErrorNotificationEnabled(notificationEnabled); } message = messageSource.getMessage("vaadin.authenticationError.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setAuthenticationErrorCaption(message); } message = messageSource.getMessage("vaadin.authenticationError.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setAuthenticationErrorMessage(message); } message = messageSource.getMessage("vaadin.authenticationError.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setAuthenticationErrorURL(message); } message = messageSource.getMessage("vaadin.authenticationError.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setAuthenticationErrorNotificationEnabled(notificationEnabled); } message = messageSource.getMessage("vaadin.internalError.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setInternalErrorCaption(message); } message = messageSource.getMessage("vaadin.internalError.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setInternalErrorMessage(message); } message = messageSource.getMessage("vaadin.internalError.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setInternalErrorURL(message); } message = messageSource.getMessage("vaadin.internalError.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setInternalErrorNotificationEnabled(notificationEnabled); } message = messageSource.getMessage("vaadin.outOfSync.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setOutOfSyncCaption(message); } message = messageSource.getMessage("vaadin.outOfSync.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setOutOfSyncMessage(message); } message = messageSource.getMessage("vaadin.outOfSync.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setOutOfSyncURL(message); } message = messageSource.getMessage("vaadin.outOfSync.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setOutOfSyncNotificationEnabled(notificationEnabled); } message = messageSource.getMessage("vaadin.cookiesDisabled.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCookiesDisabledCaption(message); } message = messageSource.getMessage("vaadin.cookiesDisabled.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCookiesDisabledMessage(message); } message = messageSource.getMessage("vaadin.cookiesDisabled.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCookiesDisabledURL(message); } message = messageSource.getMessage("vaadin.cookiesDisabled.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setCookiesDisabledNotificationEnabled(notificationEnabled); } return systemMessages; }
From source file:de.catma.servlet.CatmaApplicationServlet.java
License:Open Source License
@Override protected void servletInitialized() throws ServletException { super.servletInitialized(); getService().addSessionInitListener(new SessionInitListener() { @Override/*from w w w .j av a 2 s .co m*/ public void sessionInit(SessionInitEvent event) throws ServiceException { event.getSession().addBootstrapListener(new CatmaBootstrapListener()); } }); getService().setSystemMessagesProvider(new SystemMessagesProvider() { @Override public SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo) { CustomizedSystemMessages messages = new CustomizedSystemMessages(); try { String problemRedirectURL = RepositoryPropertyKey.BaseURL .getValue(RepositoryPropertyKey.BaseURL.getDefaultValue()); messages.setAuthenticationErrorURL(problemRedirectURL); messages.setInternalErrorURL(problemRedirectURL); messages.setSessionExpiredURL(problemRedirectURL); messages.setCommunicationErrorURL(problemRedirectURL); messages.setCookiesDisabledURL(problemRedirectURL); } catch (Exception e) { e.printStackTrace(); } return messages; } }); }
From source file:fr.amapj.view.engine.ui.ValoThemeSessionInitListener.java
License:Open Source License
@Override public void sessionInit(final SessionInitEvent event) throws ServiceException { event.getService().setSystemMessagesProvider(new SystemMessagesProvider() { @Override/* ww w .j a v a 2 s.co m*/ public SystemMessages getSystemMessages(final SystemMessagesInfo systemMessagesInfo) { CustomizedSystemMessages csm = new CustomizedSystemMessages(); csm.setSessionExpiredNotificationEnabled(false); return csm; } }); event.getSession().addBootstrapListener(new BootstrapListener() { @Override public void modifyBootstrapPage(final BootstrapPageResponse response) { final Element head = response.getDocument().head(); head.appendElement("meta").attr("name", "viewport").attr("content", "width=device-width, initial-scale=1"); head.appendElement("meta").attr("name", "apple-mobile-web-app-capable").attr("content", "yes"); head.appendElement("meta").attr("name", "apple-mobile-web-app-status-bar-style").attr("content", "black"); } @Override public void modifyBootstrapFragment(final BootstrapFragmentResponse response) { // TODO Auto-generated method stub } }); }
From source file:org.eclipse.hawkbit.ui.LocalizedSystemMessagesProvider.java
License:Open Source License
private SystemMessages getLocalizedSystemMessages(final VaadinMessageSource i18n, final Locale local) { final CustomizedSystemMessages messages = new CustomizedSystemMessages(); final Locale desiredLocale = HawkbitCommonUtil.getLocaleToBeUsed(uiProperties.getLocalization(), local); messages.setSessionExpiredCaption(/*from w w w . j a v a2s . c o m*/ i18n.getMessage(desiredLocale, UIMessageIdProvider.VAADIN_SYSTEM_SESSIONEXPIRED_CAPTION)); messages.setSessionExpiredMessage( i18n.getMessage(desiredLocale, UIMessageIdProvider.VAADIN_SYSTEM_SESSIONEXPIRED_MESSAGE)); messages.setCommunicationErrorCaption( i18n.getMessage(desiredLocale, UIMessageIdProvider.VAADIN_SYSTEM_COMMUNICATIONERROR_CAPTION)); messages.setCommunicationErrorMessage( i18n.getMessage(desiredLocale, UIMessageIdProvider.VAADIN_SYSTEM_COMMUNICATIONERROR_MESSAGE)); messages.setInternalErrorCaption( i18n.getMessage(desiredLocale, UIMessageIdProvider.VAADIN_SYSTEM_INTERNALERROR_CAPTION)); messages.setInternalErrorMessage( i18n.getMessage(desiredLocale, UIMessageIdProvider.VAADIN_SYSTEM_INTERNALERROR_MESSAGE)); return messages; }
From source file:org.freakz.hokan_ng_springboot.bot.Application.java
License:Apache License
/** * Provide custom system messages to make sure the application is reloaded when the session expires. *///from ww w. ja v a 2s .c om @Bean SystemMessagesProvider systemMessagesProvider() { return new SystemMessagesProvider() { @Override public SystemMessages getSystemMessages(SystemMessagesInfo systemMessagesInfo) { CustomizedSystemMessages systemMessages = new CustomizedSystemMessages(); systemMessages.setSessionExpiredNotificationEnabled(false); return systemMessages; } }; }
From source file:org.jumpmind.metl.ui.init.AppSessionInitListener.java
License:Open Source License
@Override public void sessionInit(final SessionInitEvent event) throws ServiceException { event.getService().setSystemMessagesProvider(new SystemMessagesProvider() { private static final long serialVersionUID = 1L; @Override// w w w. j a v a 2 s .com public SystemMessages getSystemMessages(final SystemMessagesInfo systemMessagesInfo) { CustomizedSystemMessages csm = new CustomizedSystemMessages(); csm.setSessionExpiredNotificationEnabled(false); return csm; } }); event.getSession().addBootstrapListener(new BootstrapListener() { private static final long serialVersionUID = 1L; @Override public void modifyBootstrapPage(final BootstrapPageResponse response) { final Element head = response.getDocument().head(); head.appendElement("meta").attr("name", "viewport").attr("content", "width=device-width, initial-scale=1"); head.appendElement("meta").attr("name", "apple-mobile-web-app-capable").attr("content", "yes"); head.appendElement("meta").attr("name", "apple-mobile-web-app-status-bar-style").attr("content", "black"); } @Override public void modifyBootstrapFragment(final BootstrapFragmentResponse response) { // TODO Auto-generated method stub } }); }
From source file:org.opencms.main.CmsUIServlet.java
License:Open Source License
/** * Returns a system messages instance for the given locale.<p> * * @param locale the locale/*from w ww . j a va 2 s .c om*/ * * @return the system messages */ private SystemMessages createSystemMessages(Locale locale) { CmsMessages messages = Messages.get().getBundle(locale); CustomizedSystemMessages systemMessages = new CustomizedSystemMessages(); systemMessages .setCommunicationErrorCaption(messages.key(Messages.GUI_SYSTEM_COMMUNICATION_ERROR_CAPTION_0)); systemMessages .setCommunicationErrorMessage(messages.key(Messages.GUI_SYSTEM_COMMUNICATION_ERROR_MESSAGE_0)); systemMessages.setCommunicationErrorNotificationEnabled(true); systemMessages .setAuthenticationErrorCaption(messages.key(Messages.GUI_SYSTEM_AUTHENTICATION_ERROR_CAPTION_0)); systemMessages .setAuthenticationErrorMessage(messages.key(Messages.GUI_SYSTEM_AUTHENTICATION_ERROR_MESSAGE_0)); systemMessages.setAuthenticationErrorNotificationEnabled(true); systemMessages.setSessionExpiredCaption(messages.key(Messages.GUI_SYSTEM_SESSION_EXPIRED_ERROR_CAPTION_0)); systemMessages.setSessionExpiredMessage(messages.key(Messages.GUI_SYSTEM_SESSION_EXPIRED_ERROR_MESSAGE_0)); systemMessages.setSessionExpiredNotificationEnabled(true); systemMessages.setInternalErrorCaption(messages.key(Messages.GUI_SYSTEM_INTERNAL_ERROR_CAPTION_0)); systemMessages.setInternalErrorMessage(messages.key(Messages.GUI_SYSTEM_INTERNAL_ERROR_MESSAGE_0)); systemMessages.setInternalErrorNotificationEnabled(true); return systemMessages; }
From source file:pl.exsio.frameset.vaadin.bootstrap.spring.DefaultSpringSystemMessagesProvider.java
License:Open Source License
@Override public SystemMessages getSystemMessages(Locale locale) { CustomizedSystemMessages systemMessages = new CustomizedSystemMessages(); String message;/*w ww . jav a 2 s .c o m*/ message = this.messageSource.getMessage("vaadin.sessionExpired.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setSessionExpiredCaption(message); } message = this.messageSource.getMessage("vaadin.sessionExpired.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setSessionExpiredMessage(message); } message = this.messageSource.getMessage("vaadin.sessionExpired.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setSessionExpiredURL(message); } message = this.messageSource.getMessage("vaadin.sessionExpired.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setSessionExpiredNotificationEnabled(notificationEnabled); } message = this.messageSource.getMessage("vaadin.communicationError.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCommunicationErrorCaption(message); } message = this.messageSource.getMessage("vaadin.communicationError.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCommunicationErrorMessage(message); } message = this.messageSource.getMessage("vaadin.communicationError.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCommunicationErrorURL(message); } message = this.messageSource.getMessage("vaadin.communicationError.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setCommunicationErrorNotificationEnabled(notificationEnabled); } message = this.messageSource.getMessage("vaadin.authenticationError.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setAuthenticationErrorCaption(message); } message = this.messageSource.getMessage("vaadin.authenticationError.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setAuthenticationErrorMessage(message); } message = this.messageSource.getMessage("vaadin.authenticationError.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setAuthenticationErrorURL(message); } message = this.messageSource.getMessage("vaadin.authenticationError.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setAuthenticationErrorNotificationEnabled(notificationEnabled); } message = this.messageSource.getMessage("vaadin.internalError.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setInternalErrorCaption(message); } message = this.messageSource.getMessage("vaadin.internalError.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setInternalErrorMessage(message); } message = this.messageSource.getMessage("vaadin.internalError.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setInternalErrorURL(message); } message = this.messageSource.getMessage("vaadin.internalError.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setInternalErrorNotificationEnabled(notificationEnabled); } message = this.messageSource.getMessage("vaadin.outOfSync.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setOutOfSyncCaption(message); } message = this.messageSource.getMessage("vaadin.outOfSync.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setOutOfSyncMessage(message); } message = this.messageSource.getMessage("vaadin.outOfSync.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setOutOfSyncURL(message); } message = this.messageSource.getMessage("vaadin.outOfSync.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setOutOfSyncNotificationEnabled(notificationEnabled); } message = this.messageSource.getMessage("vaadin.cookiesDisabled.Caption", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCookiesDisabledCaption(message); } message = this.messageSource.getMessage("vaadin.cookiesDisabled.Message", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCookiesDisabledMessage(message); } message = this.messageSource.getMessage("vaadin.cookiesDisabled.URL", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { systemMessages.setCookiesDisabledURL(message); } message = this.messageSource.getMessage("vaadin.cookiesDisabled.NotificationEnabled", null, MESSAGE_NOT_FOUND, locale); if (!message.equals(MESSAGE_NOT_FOUND)) { boolean notificationEnabled = (message.equalsIgnoreCase("true") || message.equalsIgnoreCase("1")); systemMessages.setCookiesDisabledNotificationEnabled(notificationEnabled); } return systemMessages; }