You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,6 +49,16 @@ public List<ScanSummary> getMostRecentSummary() throws GetMostRecentSummaryExcep
46
49
};
47
50
}
48
51
52
+
/**
53
+
* Retrieves scan summaries for a specific file by sending a request to the SUMMARY_FILE endpoint.
54
+
*
55
+
* @param fileId The ID of the file for which to retrieve scan summaries.
56
+
* @return A list of ScanSummary objects associated with the specified file ID if the request is successful.
57
+
* @throws GetSummaryForFileException If the attempt to retrieve scan summaries for the specified file fails due to various reasons such as invalid credentials, no scan summaries found, invalid file ID, or server error.
58
+
* @throws ExecutionException If an error occurs during the asynchronous execution of the request.
59
+
* @throws InterruptedException If the thread executing the request is interrupted.
60
+
* @throws JsonProcessingException If an error occurs while processing JSON data.
@@ -60,6 +73,34 @@ public List<ScanSummary> getSummaryForFile(long fileId) throws GetSummaryForFile
60
73
};
61
74
}
62
75
76
+
/**
77
+
* Searches for files based on a query string by sending a request to the SUMMARY_FILE_SEARCH endpoint.
78
+
*
79
+
* @param queryString The search query string used to find files.
80
+
* @param ascending A boolean indicating whether the search results should be sorted in ascending order.
81
+
* @return A list of File objects that match the search criteria if the request is successful.
82
+
* @throws GetSearchFilesException If the attempt to search for files fails due to various reasons such as invalid credentials, invalid search parameters, or server error.
83
+
* @throws ExecutionException If an error occurs during the asynchronous execution of the request.
84
+
* @throws InterruptedException If the thread executing the request is interrupted.
85
+
* @throws JsonProcessingException If an error occurs while processing JSON data.
0 commit comments