private boolean realmsAlreadyLoaded(String cfgName) { Enumeration<String> en = getRealmNames(cfgName); return (en != null && en.hasMoreElements()) ? true : false; }
private boolean realmsAlreadyLoaded(String cfgName) { Enumeration<String> en = getRealmNames(cfgName); return (en != null && en.hasMoreElements()) ? true : false; }
/** * Returns the names of accessible realms. * @return set of realm names */ public Enumeration<String> getRealmNames() { return getRealmNames(config.getName()); }
/** * Returns the names of accessible realms. * @return set of realm names */ public Enumeration<String> getRealmNames() { return getRealmNames(config.getName()); }
/** * Returns the names of accessible realms. * @return set of realm names */ public static synchronized Enumeration getRealmNames() { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr.getRealmNames(); } throw new RuntimeException("Unable to locate RealmsManager Service"); }
/** * Returns the names of accessible realms. * @return set of realm names */ public static synchronized Enumeration getRealmNames() { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr.getRealmNames(); } throw new RuntimeException("Unable to locate RealmsManager Service"); }
/** * Returns the names of accessible realms. * @return set of realm names */ public static Enumeration getRealmNames() { Habitat habitat = Globals.getDefaultHabitat(); RealmsManager mgr = habitat.getComponent(RealmsManager.class); if (mgr != null) { return mgr.getRealmNames(); } throw new RuntimeException("Unable to locate RealmsManager Service"); }
private String[] _getRealmNames() { final List<String> items = ListUtil.newList( getRealmsManager().getRealmNames() ); return CollectionUtil.toArray(items, String.class); }