mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/advanced/configuration/SystemConfigurationMgrImpl.java
private void handleConfigInfoResponse(final int controllerId, final GetConfigurationInfoResponseData dataMessage)
    {
        final List<ConfigurationInfoType> configList = dataMessage.getConfigurationsList();
        
        for (ConfigurationInfoType config: configList)
        {            
            //Check if configuration has a factory PID.
            if (config.hasFactoryPid())
            {
                tryAddFactoryConfigModel(controllerId, config);
            }
            else
            {
                tryAddConfigModel(controllerId, config);
            } 
        }
        
        //Build the config model updated event.
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, controllerId);
        if (configList.size() == 1)
        {
            final ConfigurationInfoType config = configList.get(0);
            props.put(ConfigurationEventConstants.EVENT_PROP_PID, config.getPid());
            if (config.hasFactoryPid())
            {
                props.put(ConfigurationEventConstants.EVENT_PROP_FACTORY_PID, config.getFactoryPid());
            }
        }
        final Event configModelUpdated = new Event(TOPIC_CONFIG_MODEL_UPDATED, props);
        //Post the configuration model updated event.
        m_EventAdmin.postEvent(configModelUpdated);
    }
/**
     * Method that handles a configuration info response message.
     * 
     * @param controllerId
     *          ID of the controller the response pertains to.
     * @param dataMessage
     *          Message that contains the configuration info response data.
     */
Method that handles a configuration info response message.

@param controllerId
ID of the controller the response pertains to.
@param dataMessage
Message that contains the configuration info response data.
Method that handles a configuration info response message . @param controllerId ID of the controller the response pertains to . @param dataMessage Message that contains the configuration info response data .
private void handleConfigInfoResponse(final int controllerId, final GetConfigurationInfoResponseData dataMessage)
    {
        final List<ConfigurationInfoType> configList = dataMessage.getConfigurationsList();
        for (ConfigurationInfoType config: configList)
        {            
            if (config.hasFactoryPid())
            {
                tryAddFactoryConfigModel(controllerId, config);
            }
            else
            {
                tryAddConfigModel(controllerId, config);
            } 
        }
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(SharedPropertyConstants.EVENT_PROP_CONTROLLER_ID, controllerId);
        if (configList.size() == 1)
        {
            final ConfigurationInfoType config = configList.get(0);
            props.put(ConfigurationEventConstants.EVENT_PROP_PID, config.getPid());
            if (config.hasFactoryPid())
            {
                props.put(ConfigurationEventConstants.EVENT_PROP_FACTORY_PID, config.getFactoryPid());
            }
        }
        final Event configModelUpdated = new Event(TOPIC_CONFIG_MODEL_UPDATED, props);
        m_EventAdmin.postEvent(configModelUpdated);
    }
private void handleConfigInfoResponse ( final int controllerId , final GetConfigurationInfoResponseData dataMessage ) { final List < ConfigurationInfoType > configList = dataMessage . getConfigurationsList ( ) ; for ( ConfigurationInfoType config : configList ) { if ( config . hasFactoryPid ( ) ) { tryAddFactoryConfigModel ( controllerId , config ) ; } else { tryAddConfigModel ( controllerId , config ) ; } } final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( SharedPropertyConstants . EVENT_PROP_CONTROLLER_ID , controllerId ) ; if ( configList . size ( ) == 1 ) { final ConfigurationInfoType config = configList . get ( 0 ) ; props . put ( ConfigurationEventConstants . EVENT_PROP_PID , config . getPid ( ) ) ; if ( config . hasFactoryPid ( ) ) { props . put ( ConfigurationEventConstants . EVENT_PROP_FACTORY_PID , config . getFactoryPid ( ) ) ; } } final Event configModelUpdated = new Event ( TOPIC_CONFIG_MODEL_UPDATED , props ) ; m_EventAdmin . postEvent ( configModelUpdated ) ; }
Method that handles a configuration info response message.
Method that handles a configuration info response message .
//Check if configuration has a factory PID. //Build the config model updated event. //Post the configuration model updated event.