public interface FolderResources
This interface provides methods to access Folder resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
Folder |
copyFolder(long folderId,
ContainerDestination containerDestination,
EnumSet<FolderCopyInclusion> includes,
EnumSet<FolderRemapExclusion> skipRemap)
Creates a copy of the specified Folder.
|
Folder |
createFolder(long parentFolderId,
Folder folder)
Create a folder.
|
void |
deleteFolder(long folderId)
Delete a folder.
|
Folder |
getFolder(long folderId,
EnumSet<SourceInclusion> includes)
Get a folder.
|
PagedResult<Folder> |
listFolders(long parentFolderId,
PaginationParameters parameters)
List child folders of a given folder.
|
Folder |
moveFolder(long folderId,
ContainerDestination containerDestination)
Moves the specified Folder to another location.
|
Folder |
updateFolder(Folder folder)
Update a folder.
|
Folder getFolder(long folderId, EnumSet<SourceInclusion> includes) throws SmartsheetException
Get a folder.
It mirrors to the following Smartsheet REST API method: GET /folder/{id}
folderId - the folder idincludes - the include parametersIllegalArgumentException - 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 operationFolder updateFolder(Folder folder) throws SmartsheetException
Update a folder.
folder - the folder to updateIllegalArgumentException - 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 operationvoid deleteFolder(long folderId)
throws SmartsheetException
Delete a folder.
It mirrors to the following Smartsheet REST API method:
DELETE /folder{id}
folderId - the folder idIllegalArgumentException - 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 operationPagedResult<Folder> listFolders(long parentFolderId, PaginationParameters parameters) throws SmartsheetException
List child folders of a given folder.
It mirrors to the following Smartsheet REST API method: GET /folder/{id}/folders
parentFolderId - the parent folder idparameters - the parameters for paginationIllegalArgumentException - 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 operationFolder createFolder(long parentFolderId, Folder folder) throws SmartsheetException
Create a folder.
It mirrors to the following Smartsheet REST API method:
POST /folder/{id}/folders
parentFolderId - the parent folder idfolder - the folder to createIllegalArgumentException - 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 operationFolder copyFolder(long folderId, ContainerDestination containerDestination, EnumSet<FolderCopyInclusion> includes, EnumSet<FolderRemapExclusion> skipRemap) throws SmartsheetException
folderId - the folder idcontainerDestination - describes the destination containerincludes - optional parameters to includeskipRemap - optional parameters to excludeSmartsheetException - the smartsheet exceptionFolder moveFolder(long folderId, ContainerDestination containerDestination) throws SmartsheetException
folderId - the folder idcontainerDestination - describes the destination containerSmartsheetException - the smartsheet exceptionCopyright © 2014–2017 Smartsheet. All rights reserved.