/** * Remove realm with given name from cache. * @param realmName * @exception NoSuchRealmException */ public static synchronized void unloadInstance(String configName, String realmName) throws NoSuchRealmException { //make sure instance exist //getInstance(configName, realmName); RealmsManager mgr = getRealmsManager(); if (mgr != null) { mgr.removeFromLoadedRealms(configName, realmName); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } _logger.log(Level.INFO, "Realm " + realmName + " successfully deleted."); }
/** * Remove realm with given name from cache. * @param realmName * @exception NoSuchRealmException */ public static synchronized void unloadInstance(String configName, String realmName) throws NoSuchRealmException { //make sure instance exist //getInstance(configName, realmName); RealmsManager mgr = getRealmsManager(); if (mgr != null) { mgr.removeFromLoadedRealms(configName, realmName); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } _logger.log(Level.INFO, SecurityLoggerInfo.realmDeleted, realmName); }
/** * Remove realm with given name from cache. * @param realmName * @exception NoSuchRealmException */ public static synchronized void unloadInstance(String realmName) throws NoSuchRealmException { //make sure instance exist getInstance(realmName); RealmsManager mgr = getRealmsManager(); if (mgr != null) { mgr.removeFromLoadedRealms(realmName); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } _logger.log(Level.INFO, "Realm " + realmName + " successfully deleted."); }
/** * Auth realm updated (attributes change). * It is called whenever a AuthRealmEvent with action of * AuthRealmEvent.ACTION_UPDATE is received. * @throws AdminEventListenerException when the listener is unable to * process the event. */ public void authRealmUpdated(AuthRealm instance) { try { realmsManager.removeFromLoadedRealms(instance.getName()); createRealm(instance); } catch (Exception ex) { throw new RuntimeException(ex); } }
/** * Remove realm with given name from cache. * @param realmName * @exception NoSuchRealmException */ public static synchronized void unloadInstance(String realmName) throws NoSuchRealmException { //make sure instance exist getInstance(realmName); RealmsManager mgr = getRealmsManager(); if (mgr != null) { mgr.removeFromLoadedRealms(realmName); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } _logger.log(Level.INFO, SecurityLoggerInfo.realmDeleted, realmName); }
public void removeFromLoadedRealms(String realmName) { Realm r = removeFromLoadedRealms(config.getName(), realmName); if (r != null) { probeProvider.realmRemovedEvent(realmName); } }
public void removeFromLoadedRealms(String realmName) { Realm r = removeFromLoadedRealms(config.getName(), realmName); if (r != null) { probeProvider.realmRemovedEvent(realmName); } }
/** * Auth realm updated (attributes change). * It is called whenever a AuthRealmEvent with action of * AuthRealmEvent.ACTION_UPDATE is received. * @throws AdminEventListenerException when the listener is unable to * process the event. */ public void authRealmUpdated(AuthRealm instance) { try { realmsManager.removeFromLoadedRealms(instance.getName()); createRealm(instance); } catch (Exception ex) { throw new RuntimeException(ex); } }
/** * Auth realm updated (attributes change). * It is called whenever a AuthRealmEvent with action of * AuthRealmEvent.ACTION_UPDATE is received. * @throws AdminEventListenerException when the listener is unable to * process the event. */ public void authRealmUpdated(Config config, AuthRealm instance) { try { realmsManager.removeFromLoadedRealms(config.getName(),instance.getName()); createRealm(config, instance); } catch (Exception ex) { throw new RuntimeException(ex); } }
/** * Auth realm updated (attributes change). * It is called whenever a AuthRealmEvent with action of * AuthRealmEvent.ACTION_UPDATE is received. * @throws AdminEventListenerException when the listener is unable to * process the event. */ public void authRealmUpdated(Config config, AuthRealm instance) { try { realmsManager.removeFromLoadedRealms(config.getName(),instance.getName()); createRealm(config, instance); } catch (Exception ex) { throw new RuntimeException(ex); } }
/** * Remove realm with given name from cache. * @param realmName * @exception NoSuchRealmException */ public static void unloadInstance(String realmName) throws NoSuchRealmException { //make sure instance exist getInstance(realmName); Habitat habitat = Globals.getDefaultHabitat(); RealmsManager mgr = habitat.getComponent(RealmsManager.class); if (mgr != null) { mgr.removeFromLoadedRealms(realmName); } else { throw new RuntimeException("Unable to locate RealmsManager Service"); } }