public interface GroupResources
This interface provides methods to access Group resources
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
Group |
createGroup(Group group)
Create a
Group. |
void |
deleteGroup(long groupId)
Delete a
Group. |
Group |
getGroup(long groupId)
Get a
Group. |
PagedResult<Group> |
listGroups(PaginationParameters parameters)
List all group.
|
GroupMemberResources |
memberResources()
Represents the GroupMemberResources.
|
Group |
updateGroup(Group group)
Update a
Group. |
PagedResult<Group> listGroups(PaginationParameters parameters) throws SmartsheetException
List all group.
It mirrors to the following Smartsheet REST API method: GET /groups
parameters - the paging parameters objectGroups. Note that the groups do not contain the membership details. You must get each group individually for group memebership.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 operationGroup getGroup(long groupId) throws SmartsheetException
Get a Group.
It mirrors to the following Smartsheet REST API method: GET /group/{id}
groupId - the Group idGroup (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null)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 operationGroup createGroup(Group group) throws SmartsheetException
Create a Group. Use Group.CreateGroupBuilder to create the model for a new Group
It mirrors to the following Smartsheet REST API method: POST /groups
group - the Group to create. Use Group.CreateGroupBuilder to create this model.GroupIllegalArgumentException - 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 operationGroup updateGroup(Group group) throws SmartsheetException
Update a Group. Use Group.CreateGroupBuilder to create the model for a new Group
It mirrors to the following Smartsheet REST API method: PUT /group/{groupId}
group - the Group to create. Use Group.CreateGroupBuilder to create this model.GroupIllegalArgumentException - 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 deleteGroup(long groupId)
throws SmartsheetException
Delete a Group.
It mirrors to the following Smartsheet REST API method: DELETE /group/{groupId}
groupId - the id of the Group to delete.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 operationGroupMemberResources memberResources() throws SmartsheetException
Represents the GroupMemberResources.
It will be initialized in constructor and will not change afterwards.
SmartsheetException - if there is any other error during the operationCopyright © 2014–2019 Smartsheet. All rights reserved.