mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/asset/AssetMgrImpl.java
private void processAssetNamespaceEvent(final Event event, final String topic, final int systemId, 
            final AssetModel model)
    {
        switch (topic)
        {
            case Asset.TOPIC_DATA_CAPTURED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                createAssetEvent(TOPIC_ASSET_OBSERVATION_UPDATED, model, new HashMap<String, Object>());
                //capture data requests do not require an observation is sent
                if (event.containsProperty(Asset.EVENT_PROP_ASSET_OBSERVATION_UUID))
                {
                    //post notice
                    m_GrowlMessageUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Asset captured data!", 
                        String.format("An asset from controller 0x%08x captured data. The observation UUID is %s.", 
                            systemId, ((UUID)event.getProperty(Asset.EVENT_PROP_ASSET_OBSERVATION_UUID)).toString()));
                }
                break;
            }
            case Asset.TOPIC_STATUS_CHANGED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                final SummaryStatusEnum assetSum = 
                        SummaryStatusEnum.valueOf((String)event.getProperty(Asset.EVENT_PROP_ASSET_STATUS_SUMMARY));
                final String summaryDescription = (String)event.getProperty(
                        Asset.EVENT_PROP_ASSET_STATUS_DESCRIPTION);
                
                model.setSummary(assetSum);
                model.setSummaryDescription(summaryDescription);

                postSummaryStatusUpdate(model);
                break;
            }
            default:
            {
                processAssetActivatonEvents(topic, model);
            }
        }
    }
/**
     * Process an Asset namespace event.
     * @param event
     *      the event to process data from
     * @param topic
     *      the topic of the event
     * @param systemId
     *     the system ID from which the response message originated
     * @param model
     *      the model to update
     */
Process an Asset namespace event.
@param event
the event to process data from
@param topic
the topic of the event
@param systemId
the system ID from which the response message originated
@param model
the model to update
Process an Asset namespace event . @param event the event to process data from @param topic the topic of the event @param systemId the system ID from which the response message originated @param model the model to update
private void processAssetNamespaceEvent(final Event event, final String topic, final int systemId, 
            final AssetModel model)
    {
        switch (topic)
        {
            case Asset.TOPIC_DATA_CAPTURED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                createAssetEvent(TOPIC_ASSET_OBSERVATION_UPDATED, model, new HashMap<String, Object>());
                if (event.containsProperty(Asset.EVENT_PROP_ASSET_OBSERVATION_UUID))
                {
                    m_GrowlMessageUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, "Asset captured data!", 
                        String.format("An asset from controller 0x%08x captured data. The observation UUID is %s.", 
                            systemId, ((UUID)event.getProperty(Asset.EVENT_PROP_ASSET_OBSERVATION_UUID)).toString()));
                }
                break;
            }
            case Asset.TOPIC_STATUS_CHANGED + RemoteConstants.REMOTE_TOPIC_SUFFIX:
            {
                final SummaryStatusEnum assetSum = 
                        SummaryStatusEnum.valueOf((String)event.getProperty(Asset.EVENT_PROP_ASSET_STATUS_SUMMARY));
                final String summaryDescription = (String)event.getProperty(
                        Asset.EVENT_PROP_ASSET_STATUS_DESCRIPTION);
                model.setSummary(assetSum);
                model.setSummaryDescription(summaryDescription);
                postSummaryStatusUpdate(model);
                break;
            }
            default:
            {
                processAssetActivatonEvents(topic, model);
            }
        }
    }
private void processAssetNamespaceEvent ( final Event event , final String topic , final int systemId , final AssetModel model ) { switch ( topic ) { case Asset . TOPIC_DATA_CAPTURED + RemoteConstants . REMOTE_TOPIC_SUFFIX : { createAssetEvent ( TOPIC_ASSET_OBSERVATION_UPDATED , model , new HashMap < String , Object > ( ) ) ; if ( event . containsProperty ( Asset . EVENT_PROP_ASSET_OBSERVATION_UUID ) ) { m_GrowlMessageUtil . createGlobalFacesMessage ( FacesMessage . SEVERITY_INFO , "Asset captured data!" , String . format ( "An asset from controller 0x%08x captured data. The observation UUID is %s." , systemId , ( ( UUID ) event . getProperty ( Asset . EVENT_PROP_ASSET_OBSERVATION_UUID ) ) . toString ( ) ) ) ; } break ; } case Asset . TOPIC_STATUS_CHANGED + RemoteConstants . REMOTE_TOPIC_SUFFIX : { final SummaryStatusEnum assetSum = SummaryStatusEnum . valueOf ( ( String ) event . getProperty ( Asset . EVENT_PROP_ASSET_STATUS_SUMMARY ) ) ; final String summaryDescription = ( String ) event . getProperty ( Asset . EVENT_PROP_ASSET_STATUS_DESCRIPTION ) ; model . setSummary ( assetSum ) ; model . setSummaryDescription ( summaryDescription ) ; postSummaryStatusUpdate ( model ) ; break ; } default : { processAssetActivatonEvents ( topic , model ) ; } } }
Process an Asset namespace event.
Process an Asset namespace event .
//capture data requests do not require an observation is sent //post notice