mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/persistence/ObservationStoreImpl.java
private void postEvent(final String topic, final Observation observation)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(EVENT_PROP_OBSERVATION_UUID, observation.getUuid());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, observation.getAssetType());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, observation.getAssetUuid().toString());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, observation.getAssetName());
        props.put(EVENT_PROP_SYS_ID, observation.getSystemId());
        props.put(EVENT_PROP_OBSERVATION_TYPE, findObservationSubType(observation));
        props.put(EVENT_PROP_SENSOR_ID, observation.getSensorId());
        props.put(EVENT_PROP_SYS_IN_TEST_MODE, observation.isSystemInTestMode());
        
        postEvent(topic, props);

        postEventWithObs(topic, props, observation);
    }
/**
     * Helper method to wrap base postEvent and create the properties from the observation.
     * 
     * @param topic
     *          the specified event topic
     * @param observation
     *          the specified observation
     */
Helper method to wrap base postEvent and create the properties from the observation.

@param topic
the specified event topic
@param observation
the specified observation
Helper method to wrap base postEvent and create the properties from the observation . @param topic the specified event topic @param observation the specified observation
private void postEvent(final String topic, final Observation observation)
    {
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(EVENT_PROP_OBSERVATION_UUID, observation.getUuid());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_TYPE, observation.getAssetType());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_UUID, observation.getAssetUuid().toString());
        props.put(FactoryDescriptor.EVENT_PROP_OBJ_NAME, observation.getAssetName());
        props.put(EVENT_PROP_SYS_ID, observation.getSystemId());
        props.put(EVENT_PROP_OBSERVATION_TYPE, findObservationSubType(observation));
        props.put(EVENT_PROP_SENSOR_ID, observation.getSensorId());
        props.put(EVENT_PROP_SYS_IN_TEST_MODE, observation.isSystemInTestMode());
        postEvent(topic, props);
        postEventWithObs(topic, props, observation);
    }
private void postEvent ( final String topic , final Observation observation ) { final Map < String , Object > props = new HashMap < String , Object > ( ) ; props . put ( EVENT_PROP_OBSERVATION_UUID , observation . getUuid ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_TYPE , observation . getAssetType ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_UUID , observation . getAssetUuid ( ) . toString ( ) ) ; props . put ( FactoryDescriptor . EVENT_PROP_OBJ_NAME , observation . getAssetName ( ) ) ; props . put ( EVENT_PROP_SYS_ID , observation . getSystemId ( ) ) ; props . put ( EVENT_PROP_OBSERVATION_TYPE , findObservationSubType ( observation ) ) ; props . put ( EVENT_PROP_SENSOR_ID , observation . getSensorId ( ) ) ; props . put ( EVENT_PROP_SYS_IN_TEST_MODE , observation . isSystemInTestMode ( ) ) ; postEvent ( topic , props ) ; postEventWithObs ( topic , props , observation ) ; }
Helper method to wrap base postEvent and create the properties from the observation.
Helper method to wrap base postEvent and create the properties from the observation .