/** * Checks if the given realm name is loaded/valid. * @param String name of the realm to check. * @return true if realm present, false otherwise. */ public static boolean isValidRealm(String configName, String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr.isValidRealm(configName, name); } throw new RuntimeException("Unable to locate RealmsManager Service"); }
/** * Checks if the given realm name is loaded/valid. * @param String name of the realm to check. * @return true if realm present, false otherwise. */ public static boolean isValidRealm(String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr.isValidRealm(name); } throw new RuntimeException("Unable to locate RealmsManager Service"); }
/** * Checks if the given realm name is loaded/valid. * @param String name of the realm to check. * @return true if realm present, false otherwise. */ public static boolean isValidRealm(String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr.isValidRealm(name); } throw new RuntimeException("Unable to locate RealmsManager Service"); }
/** * Checks if the given realm name is loaded/valid. * @param String name of the realm to check. * @return true if realm present, false otherwise. */ public static boolean isValidRealm(String configName, String name) { RealmsManager mgr = getRealmsManager(); if (mgr != null) { return mgr.isValidRealm(configName, name); } throw new RuntimeException("Unable to locate RealmsManager Service"); }
/** * Checks if the given realm name is loaded/valid. * @param String name of the realm to check. * @return true if realm present, false otherwise. */ public static boolean isValidRealm(String name) { Habitat habitat = Globals.getDefaultHabitat(); RealmsManager mgr = habitat.getComponent(RealmsManager.class); if (mgr != null) { return mgr.isValidRealm(name); } throw new RuntimeException("Unable to locate RealmsManager Service"); }