Interface SheetCrossSheetReferenceResources
-
public interface SheetCrossSheetReferenceResources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CrossSheetReference
createCrossSheetReference(long sheetId, CrossSheetReference crossSheetReference)
Create a cross sheet reference in the given sheet.CrossSheetReference
getCrossSheetReference(long sheetId, long crossSheetReferenceId)
Get a cross sheet reference.PagedResult<CrossSheetReference>
listCrossSheetReferences(long sheetId, PaginationParameters pagination)
Get all cross sheet references for this sheet
-
-
-
Method Detail
-
listCrossSheetReferences
PagedResult<CrossSheetReference> listCrossSheetReferences(long sheetId, PaginationParameters pagination) throws SmartsheetException
Get all cross sheet references for this sheet
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/crosssheetreferences
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) 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 operation
- Parameters:
sheetId
- the sheet IDpagination
- the pagination parameters- Returns:
- a list of cross sheet references
- Throws:
SmartsheetException
- the smartsheet exception
-
getCrossSheetReference
CrossSheetReference getCrossSheetReference(long sheetId, long crossSheetReferenceId) throws SmartsheetException
Get a cross sheet reference.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/crosssheetreferences/{crossSheetReferenceId}
- Parameters:
sheetId
- the sheet idcrossSheetReferenceId
- the cross sheet reference id- Returns:
- the cross sheet reference (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
- Throws:
java.lang.IllegalArgumentException
- 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 operation
-
createCrossSheetReference
CrossSheetReference createCrossSheetReference(long sheetId, CrossSheetReference crossSheetReference) throws SmartsheetException
Create a cross sheet reference in the given sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/crosssheetreferences
- Parameters:
sheetId
- the sheet idcrossSheetReference
- the cross sheet reference to create- Returns:
- the created cross sheet reference
- Throws:
java.lang.IllegalArgumentException
- 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 operation
-
-