/** * Asserts that the application framework has been initialized. */ public static void assertInitialized() { Assert.state(isInitialized(), "AppFramework must be initialized"); }
/** * Asserts that the application framework has been initialized. */ public static void assertInitialized() { Assert.state(isInitialized(), "AppFramework must be initialized"); }
/** * Returns a reference to the attribute map used to store persistent references to arbitrary * objects. * * @return Attribute map */ public static Map<String, Object> getAttributes() { return isInitialized() ? getAppFramework().getAttributes() : null; }
/** * Returns the application name. * * @return Application name. */ protected String getAppName() { if (appName == null && FrameworkUtil.isInitialized()) { setAppName(FrameworkUtil.getAppName()); } return appName; }
/** * Returns the application name. * * @return Application name. */ protected String getAppName() { if (appName == null && FrameworkUtil.isInitialized()) { setAppName(FrameworkUtil.getAppName()); } return appName; }
/** * Returns a reference to the attribute map used to store persistent references to arbitrary * objects. * * @return Attribute map */ public static Map<String, Object> getAttributes() { return isInitialized() ? getAppFramework().getAttributes() : null; }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); panel = comp; forced = !FrameworkUtil.isInitialized(); String title; String label; if (!forced) { user = UserContext.getActiveUser(); title = "password.change.dialog.panel.title"; label = "password.change.dialog.label"; } else { user = (IUser) arg.get("user"); title = "password.change.dialog.expired.panel.title"; label = "password.change.dialog.expired.label"; } if (user == null) { doCancel(); } else { lblTitle.setValue(StrUtil.getLabel(title) + " - " + user.getFullName()); lblInfo.setValue(StrUtil.getLabel(label, MESSAGE_PASSWORD_RULES)); } }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); forced = !FrameworkUtil.isInitialized(); String title; String label; if (!forced) { user = UserContext.getActiveUser(); title = "change.password.dialog.panel.title"; label = "change.password.dialog.label"; } else { user = (UserProxy) arg.get("user"); title = "change.password.dialog.expired.panel.title"; label = "change.password.dialog.expired.label"; } if (user == null) { doCancel(); } else { panel.setTitle(Labels.getLabel(title) + " - " + user.getFullName()); lblInfo.setValue(Labels.getLabel(label, new String[] { MESSAGE_PASSWORD_RULES })); } }