Interface ICodeScanStatisticsService
- All Known Implementing Classes:
CodeScanStatisticsService
public interface ICodeScanStatisticsService
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
Result of a code scan statistics query with a search request. -
Method Summary
Modifier and TypeMethodDescriptionGet statistics for a specific code.Get statistics for all scanned codes without any filtering.void
incrementByCode
(String code) Increment the scan count for the given code.search
(CodeScanStatisticsSearchRequest request) Search for code scan statistics using a search request.
-
Method Details
-
incrementByCode
Increment the scan count for the given code.If the code does not exist in the statistics, it will be added.
- Parameters:
code
- The code to increment the scan count for
-
getByCode
Get statistics for a specific code.If the code has item data, the item data will be included in the result, and the
knownCode
flag set to true.- Parameters:
code
- The code to get statistics for- Returns:
- Statistics for the given code, if it exists,
Optional.empty()
otherwise
-
getStatistics
Stream<CodeScanReportResult> getStatistics()Get statistics for all scanned codes without any filtering.Any item code which has item data will have the item data included in the result, and the
knownCode
flag set to true.- Returns:
- List of statistics for all scanned codes
-
search
Search for code scan statistics using a search request.- Parameters:
request
- The search request containing the search parameters- Returns:
- The result of the search containing a stream of
CodeScanReportResult
and the total count of items in the result, ignoring the offset and limit
-