public interface FavoriteResources
| Modifier and Type | Method and Description |
|---|---|
List<Favorite> |
addFavorites(List<Favorite> favorites)
Adds one or more items to the user’s list of Favorite items.
|
PagedResult<Favorite> |
listFavorites(PaginationParameters parameters)
Gets a list of all of the user’s Favorite items.
|
void |
removeFavorites(FavoriteType favoriteType,
Set<Long> objectIds)
Deletes a list of favorites (all of the same type)
|
List<Favorite> addFavorites(List<Favorite> favorites) throws SmartsheetException
Adds one or more items to the user’s list of Favorite items.
It mirrors to the following Smartsheet REST API method: POST /favorites
Exceptions: IllegalArgumentException : if any argument is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ResourceNotFoundException : if the resource can not be found ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) SmartsheetRestException : if there is any other REST API related error occurred during the operation SmartsheetException : if there is any other error occurred during the operationfavorites - the list of favorites object limited to the following attributes: *
objectId * typeSmartsheetException - the smartsheet exceptionPagedResult<Favorite> listFavorites(PaginationParameters parameters) throws SmartsheetException
Gets a list of all of the user’s Favorite items.
It mirrors to the following Smartsheet REST API method: GET /favorites
Exceptions: IllegalArgumentException : if any argument is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ResourceNotFoundException : if the resource can not be found ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) SmartsheetRestException : if there is any other REST API related error occurred during the operation SmartsheetException : if there is any other error occurred during the operationparameters - pagination parametersSmartsheetException - the smartsheet exceptionvoid removeFavorites(FavoriteType favoriteType, Set<Long> objectIds) throws SmartsheetException
Deletes a list of favorites (all of the same type)
It mirrors to the following Smartsheet REST API method: DELETE /favorites
Exceptions: IllegalArgumentException : if any argument is null InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ResourceNotFoundException : if the resource can not be found ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting) SmartsheetRestException : if there is any other REST API related error occurred during the operation SmartsheetException : if there is any other error occurred during the operationfavoriteType - the favorite typeobjectIds - a single Favorite object ID or an array of Favorite object IDsSmartsheetException - the smartsheet exceptionCopyright © 2014–2019 Smartsheet. All rights reserved.