Examples of GlobalWarning


Examples of com.adito.core.GlobalWarning

        if (!bundle.canEnable()) {
            throw new Exception("Bundle cannot be enabled.");
        }
        ExtensionStore.getInstance().enableExtension(id);
        if(bundle.isContainsPlugin()) {
          GlobalWarningManager.getInstance().addMultipleGlobalWarning(new GlobalWarning(GlobalWarning.MANAGEMENT_USERS, new BundleActionMessage("extensions",
                            "extensionStore.message.stateChangeRestartRequired"), DismissType.DISMISS_FOR_USER));
        } else {
            bundle.activate();
        }
        ActionMessages messages = new ActionMessages();
View Full Code Here

Examples of com.adito.core.GlobalWarning

                    if (expiresOn.before(now) && expiryInDays > 0) {
                        scheme.getServletSession().setAttribute(Constants.PASSWORD_CHANGE_REASON_MESSAGE,
                                        new ActionMessage("passwordChange.expired"));
                    } else if (warningOn.before(now) && warningInDays > 0) {
                        long daysToExpiry = ((expiresOn.getTimeInMillis() - now.getTimeInMillis()) + 86399999l) / 86400000l;
                        GlobalWarningManager.getInstance().addToSession(new GlobalWarning(scheme.getServletSession(), new BundleActionMessage("navigation",
                            "globalWarning.passwordNearExpiry", new Long(daysToExpiry))));

                    }
                } else if (scheme.getUser().requiresPasswordChange()) {
                    scheme.getServletSession().setAttribute(Constants.PASSWORD_CHANGE_REASON_MESSAGE,
View Full Code Here

Examples of com.adito.core.GlobalWarning

            }

            public synchronized void cleared(Serializable arg0) {
                if (storageCounter == cacheSize && !addedWarning) {
                    BundleActionMessage message = new BundleActionMessage(messageBundle, cacheFullText, String.valueOf(cacheSize));
                    GlobalWarningManager.getInstance().addMultipleGlobalWarning(new GlobalWarning(GlobalWarning.MANAGEMENT_USERS, message, DismissType.DISMISS_FOR_USER));
                    addedWarning = true;
                }
                storageCounter--;
            }
View Full Code Here

Examples of com.adito.core.GlobalWarning

            }
           
            if (!tunnelFailures.isEmpty()) {
                tunnelFailures.add(0, new BundleActionMessage("tunnels", "error.tunnels.autostart", tunnelFailures.size()));
                for (BundleActionMessage actionMessage : tunnelFailures) {
                    GlobalWarning globalWarning = new GlobalWarning(session.getHttpSession(), actionMessage);
                    GlobalWarningManager.getInstance().addToSession(globalWarning);
                }
            }
        } catch (Exception e) {
            log.error("Failed to start auto-start tunnels", e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.