mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/advanced/configuration/ControllerConfigurationMgrImpl.java
private synchronized ModifiableConfigMetatypeModel tryCreateOrUpdateModelAsync(
            final int controllerId, final String pid)
    {
        final UnmodifiableConfigMetatypeModel configuration = configWrapper
                .getConfigurationByPidAsync(controllerId, pid);
        if (configuration == null)
        {
            m_ModifiableConfigMetatypeMap.remove(pid);
            return null;
        }
        else
        {
            final ModifiableConfigMetatypeModel returnModel = new ModifiableConfigMetatypeModel(configuration.getPid());
            //Add properties to the config model.
            for (UnmodifiablePropertyModel property: configuration.getProperties())
            {
                //make a copy of the values that have been returned by the application
                //scoped bean
                final ModifiablePropertyModel modProp = new 
                        ConfigPropModelImpl((ConfigPropModelImpl)property);
                
                returnModel.getProperties().add(modProp);
            }
            //Add configuration model to map.
            m_ModifiableConfigMetatypeMap.put(pid, returnModel);
            return returnModel;
        }
    }
/**
     * Method used to create or update the configuration model to be displayed.
     * 
     *@param controllerId
     *          ID of the controller that contains the configuration.
     * @param pid
     *          PID of the service to create a configuration model for.
     * @return
     *          The {@link ModifiableConfigMetatypeModel} that represents the configuration being requested. May return
     *          null if there is no information available for the configuration being requested.
     */
Method used to create or update the configuration model to be displayed.

@param controllerId
ID of the controller that contains the configuration.
@param pid
PID of the service to create a configuration model for.
@return
The  ModifiableConfigMetatypeModel that represents the configuration being requested. May return
null if there is no information available for the configuration being requested.
Method used to create or update the configuration model to be displayed . @param controllerId ID of the controller that contains the configuration . @param pid PID of the service to create a configuration model for . @return The ModifiableConfigMetatypeModel that represents the configuration being requested . May return null if there is no information available for the configuration being requested .
private synchronized ModifiableConfigMetatypeModel tryCreateOrUpdateModelAsync(
            final int controllerId, final String pid)
    {
        final UnmodifiableConfigMetatypeModel configuration = configWrapper
                .getConfigurationByPidAsync(controllerId, pid);
        if (configuration == null)
        {
            m_ModifiableConfigMetatypeMap.remove(pid);
            return null;
        }
        else
        {
            final ModifiableConfigMetatypeModel returnModel = new ModifiableConfigMetatypeModel(configuration.getPid());
            for (UnmodifiablePropertyModel property: configuration.getProperties())
            {
                final ModifiablePropertyModel modProp = new 
                        ConfigPropModelImpl((ConfigPropModelImpl)property);
                returnModel.getProperties().add(modProp);
            }
            m_ModifiableConfigMetatypeMap.put(pid, returnModel);
            return returnModel;
        }
    }
private synchronized ModifiableConfigMetatypeModel tryCreateOrUpdateModelAsync ( final int controllerId , final String pid ) { final UnmodifiableConfigMetatypeModel configuration = configWrapper . getConfigurationByPidAsync ( controllerId , pid ) ; if ( configuration == null ) { m_ModifiableConfigMetatypeMap . remove ( pid ) ; return null ; } else { final ModifiableConfigMetatypeModel returnModel = new ModifiableConfigMetatypeModel ( configuration . getPid ( ) ) ; for ( UnmodifiablePropertyModel property : configuration . getProperties ( ) ) { final ModifiablePropertyModel modProp = new ConfigPropModelImpl ( ( ConfigPropModelImpl ) property ) ; returnModel . getProperties ( ) . add ( modProp ) ; } m_ModifiableConfigMetatypeMap . put ( pid , returnModel ) ; return returnModel ; } }
Method used to create or update the configuration model to be displayed.
Method used to create or update the configuration model to be displayed .
//Add properties to the config model. //make a copy of the values that have been returned by the application //scoped bean //Add configuration model to map.