mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/advanced/configuration/SystemConfigurationMgrImpl.java
private void handleRemoveConfigurationEvent(final int controllerId, final String pid, 
            final String factoryPid)
    {   
        //Factory PID will be null when the configuration is not a factory configuration instance.
        if (factoryPid == null)
        {        
            m_ControllerConfigList.get(controllerId).remove(pid);
        }
        else
        {            
            if (m_ControllerConfigList.get(controllerId).containsKey(factoryPid)) 
            {
                m_ControllerConfigList.get(controllerId).get(factoryPid).getFactoryConfigurations().remove(pid);
            }
        }
        
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, controllerId);
        props.put(ConfigurationEventConstants.EVENT_PROP_PID, pid);
        props.put(ConfigurationEventConstants.EVENT_PROP_FACTORY_PID, factoryPid);
        final Event configModelUpdated = new Event(TOPIC_CONFIG_MODEL_UPDATED, props);
        //Post the configuration model updated event.
        m_EventAdmin.postEvent(configModelUpdated);
    }
/**
     * Method that handles a remove configuration event.
     * 
     * @param controllerId
     *          ID of the controller the event pertains to.
     * @param pid
     *          PID of the configuration the event pertains to.
     * @param factoryPid
     *          Factory PID of the configurations the event pertains to if it has a factory PID.
     */
Method that handles a remove configuration event.

@param controllerId
ID of the controller the event pertains to.
@param pid
PID of the configuration the event pertains to.
@param factoryPid
Factory PID of the configurations the event pertains to if it has a factory PID.
Method that handles a remove configuration event . @param controllerId ID of the controller the event pertains to . @param pid PID of the configuration the event pertains to . @param factoryPid Factory PID of the configurations the event pertains to if it has a factory PID .
private void handleRemoveConfigurationEvent(final int controllerId, final String pid, 
            final String factoryPid)
    {   
        if (factoryPid == null)
        {        
            m_ControllerConfigList.get(controllerId).remove(pid);
        }
        else
        {            
            if (m_ControllerConfigList.get(controllerId).containsKey(factoryPid)) 
            {
                m_ControllerConfigList.get(controllerId).get(factoryPid).getFactoryConfigurations().remove(pid);
            }
        }
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, controllerId);
        props.put(ConfigurationEventConstants.EVENT_PROP_PID, pid);
        props.put(ConfigurationEventConstants.EVENT_PROP_FACTORY_PID, factoryPid);
        final Event configModelUpdated = new Event(TOPIC_CONFIG_MODEL_UPDATED, props);
        m_EventAdmin.postEvent(configModelUpdated);
    }
private void handleRemoveConfigurationEvent ( final int controllerId , final String pid , final String factoryPid ) { if ( factoryPid == null ) { m_ControllerConfigList . get ( controllerId ) . remove ( pid ) ; } else { if ( m_ControllerConfigList . get ( controllerId ) . containsKey ( factoryPid ) ) { m_ControllerConfigList . get ( controllerId ) . get ( factoryPid ) . getFactoryConfigurations ( ) . remove ( pid ) ; } } final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( SharedPropertyConstants . EVENT_PROP_CONTROLLER_ID , controllerId ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_PID , pid ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_FACTORY_PID , factoryPid ) ; final Event configModelUpdated = new Event ( TOPIC_CONFIG_MODEL_UPDATED , props ) ; m_EventAdmin . postEvent ( configModelUpdated ) ; }
Method that handles a remove configuration event.
Method that handles a remove configuration event .
//Factory PID will be null when the configuration is not a factory configuration instance. //Post the configuration model updated event.