mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/comms/CommsMgrImpl.java
private void processDeleteLayerHelper(final Event event)
    {
        // pull out event properties
        final java.util.UUID uuid = java.util.UUID.fromString((String)event.
                getProperty(FactoryDescriptor.EVENT_PROP_OBJ_UUID));
        final int systemId = (Integer)event.getProperty(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID);        
        final String baseType = (String)event.getProperty(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE);        
        
        final List<? extends FactoryBaseModel> layerList = findListByType(convertBaseTypeToCommType(baseType), 
                systemId);
        final FactoryBaseModel model = findLayer(uuid, layerList);
        if (model != null)
        {
            layerList.remove(model);
        }
    }
/**
     * Helper method used to reduce the cyclomatic complexity of the caller method.  Specifically, method
     * finds model containing layer that was remotely deleted and effectively deletes the local layer 
     * instance by setting it to null.
     * @param event
     *      properties of the event
     */
Helper method used to reduce the cyclomatic complexity of the caller method.  Specifically, method
finds model containing layer that was remotely deleted and effectively deletes the local layer
instance by setting it to null.
@param event
properties of the event
Helper method used to reduce the cyclomatic complexity of the caller method . Specifically method finds model containing layer that was remotely deleted and effectively deletes the local layer instance by setting it to null . @param event properties of the event
private void processDeleteLayerHelper(final Event event)
    {
        final java.util.UUID uuid = java.util.UUID.fromString((String)event.
                getProperty(FactoryDescriptor.EVENT_PROP_OBJ_UUID));
        final int systemId = (Integer)event.getProperty(RemoteConstants.REMOTE_EVENT_PROP_CONTROLLER_ID);        
        final String baseType = (String)event.getProperty(FactoryDescriptor.EVENT_PROP_OBJ_BASE_TYPE);        
        final List<? extends FactoryBaseModel> layerList = findListByType(convertBaseTypeToCommType(baseType), 
                systemId);
        final FactoryBaseModel model = findLayer(uuid, layerList);
        if (model != null)
        {
            layerList.remove(model);
        }
    }
private void processDeleteLayerHelper ( final Event event ) { final java . util . UUID uuid = java . util . UUID . fromString ( ( String ) event . getProperty ( FactoryDescriptor . EVENT_PROP_OBJ_UUID ) ) ; final int systemId = ( Integer ) event . getProperty ( RemoteConstants . REMOTE_EVENT_PROP_CONTROLLER_ID ) ; final String baseType = ( String ) event . getProperty ( FactoryDescriptor . EVENT_PROP_OBJ_BASE_TYPE ) ; final List < ? extends FactoryBaseModel > layerList = findListByType ( convertBaseTypeToCommType ( baseType ) , systemId ) ; final FactoryBaseModel model = findLayer ( uuid , layerList ) ; if ( model != null ) { layerList . remove ( model ) ; } }
Helper method used to reduce the cyclomatic complexity of the caller method.
Helper method used to reduce the cyclomatic complexity of the caller method .
// pull out event properties