Esempio n. 1
0
 /**
  * Check if result times should be added
  *
  * @param request GetDataAvailability request
  * @return <code>true</code>, if result times should be added
  */
 private boolean isIncludeResultTime(GetDataAvailabilityRequest request) {
   if (request.isSetExtensions()) {
     return request.getExtensions().isBooleanExtensionSet(INCLUDE_RESULT_TIMES)
         || hasPhenomenonTimeFilter(request.getExtensions());
   }
   return false;
 }
Esempio n. 2
0
 /**
  * Check if optional count should be added
  *
  * @param request GetDataAvailability request
  * @return <code>true</code>, if optional count should be added
  */
 private boolean isShowCount(GetDataAvailabilityRequest request) {
   if (request.isSetExtensions()) {
     return request.getExtensions().isBooleanExtensionSet(SHOW_COUNT);
   }
   return isForceValueCount();
 }