mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/observation/ObservationMgrImpl.java
private ObservationQuery createObservationQuery()
    {
        final FactoryBaseModel model = assetDisplay.getSelectedFactoryObject();
        final ObservationQuery query = m_ObservationStore.newQuery();

        if (model != null)
        {
            query.withAssetUuid(model.getUuid());
        }

        if (m_IsFilterByDate)
        {
            //missing date will be notified on filter tab
            if (m_StartDate == null || m_EndDate == null || m_EndDate.before(m_StartDate))
            {
                return null;
            }
            
            final Date endDate = DateTimeConverterUtil.roundToEndOfSecond(m_EndDate);
            query.withTimeCreatedRange(m_StartDate, endDate);
        }
        return query;
    }
/**
     * Method which returns a {@link ObservationQuery} based on the given query criteria.
     
     * @return 
     *  the {@link ObservationQuery} object based on the set filters or null if the filters given are not properly set
     */
Method which returns a  ObservationQuery based on the given query criteria.
@return
the  ObservationQuery object based on the set filters or null if the filters given are not properly set
Method which returns a ObservationQuery based on the given query criteria . @return the ObservationQuery object based on the set filters or null if the filters given are not properly set
private ObservationQuery createObservationQuery()
    {
        final FactoryBaseModel model = assetDisplay.getSelectedFactoryObject();
        final ObservationQuery query = m_ObservationStore.newQuery();
        if (model != null)
        {
            query.withAssetUuid(model.getUuid());
        }
        if (m_IsFilterByDate)
        {
            if (m_StartDate == null || m_EndDate == null || m_EndDate.before(m_StartDate))
            {
                return null;
            }
            final Date endDate = DateTimeConverterUtil.roundToEndOfSecond(m_EndDate);
            query.withTimeCreatedRange(m_StartDate, endDate);
        }
        return query;
    }
private ObservationQuery createObservationQuery ( ) { final FactoryBaseModel model = assetDisplay . getSelectedFactoryObject ( ) ; final ObservationQuery query = m_ObservationStore . newQuery ( ) ; if ( model != null ) { query . withAssetUuid ( model . getUuid ( ) ) ; } if ( m_IsFilterByDate ) { if ( m_StartDate == null || m_EndDate == null || m_EndDate . before ( m_StartDate ) ) { return null ; } final Date endDate = DateTimeConverterUtil . roundToEndOfSecond ( m_EndDate ) ; query . withTimeCreatedRange ( m_StartDate , endDate ) ; } return query ; }
Method which returns a {@link ObservationQuery} based on the given query criteria.
Method which returns a { @link ObservationQuery } based on the given query criteria .
//missing date will be notified on filter tab