public interface SearchResources
| Modifier and Type | Method and Description |
|---|---|
SearchResult |
search(String query)
Performs a search across all Sheets to which user has access.
|
SearchResult |
search(String query,
EnumSet<SearchInclusion> includes,
SearchLocation location,
Date modifiedSince,
EnumSet<SearchScope> scopes)
Performs a search across all Sheets to which user has access.
|
SearchResult |
searchSheet(long sheetId,
String query)
Performs a search within a sheet.
|
SearchResult search(String query) throws SmartsheetException
Performs a search across all Sheets to which user has access.
It mirrors to the following Smartsheet REST API method: GET /search
query - the query textIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSearchResult search(String query, EnumSet<SearchInclusion> includes, SearchLocation location, Date modifiedSince, EnumSet<SearchScope> scopes) throws SmartsheetException
Performs a search across all Sheets to which user has access.
It mirrors to the following Smartsheet REST API method: GET /search
query - the query textincludes - enum set of inclusionslocation - when specified with a value of "personalWorkspace" limits response to only those
items in the user's WorkspacemodifiedSince - only return items modified since this datescopes - enum set of search filtersIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationSearchResult searchSheet(long sheetId, String query) throws SmartsheetException
Performs a search within a sheet.
It mirrors to the following Smartsheet REST API method: GET /search/sheet/{sheetId}
sheetId - the sheet idquery - the query textIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationCopyright © 2014–2019 Smartsheet. All rights reserved.