/** * 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; }
/** * 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(); }