getFolderChildren

java.util.Collection<ccc.rest.dto.ResourceSummary> getFolderChildren(java.util.UUID folderId)
                                                                     throws RestException
List all of the folders that are children of the specified parent folder.

 

Parameters:
folderId - The id of the folder.
Returns:
The list of child folders.
Throws:
RestException - If the method fails

getChildrenPaged

ccc.rest.dto.DtoCollection<ccc.rest.dto.ResourceSummary> getChildrenPaged(java.util.UUID folderId,
                                                                          java.lang.String sort,
                                                                          ccc.types.SortOrder sortOrder,
                                                                          int pageNo,
                                                                          int pageSize)
                                                                          throws RestException
List paged set of the children of the specified folder.

 

Parameters:
folderId - The id of the folder.
sort - The column to sort.
sortOrder - The sort order (ASC/DESC).
pageNo - The page to display.
pageSize - The number of results per page.
Returns:
The list of child resource for paging.
Throws:
RestException - If the method fails

getChildren

java.util.Collection<ccc.rest.dto.ResourceSummary> getChildren(java.util.UUID folderId)
                                                               throws RestException
List all of the children of the specified folder.

 

Parameters:
folderId - The folder.
Returns:
The folder's of children.
Throws:
RestException - If the method fails

getAccessibleChildren

java.util.Collection<ccc.rest.dto.ResourceSummary> getAccessibleChildren(java.util.UUID folderId)
                                                                         throws RestException
List all of the children of the specified folder which are accessible to current user.

 

Parameters:
folderId - The folder.
Returns:
The folder's of children.
Throws:
RestException - If the method fails

getChildrenManualOrder

java.util.Collection<ccc.rest.dto.ResourceSummary> getChildrenManualOrder(java.util.UUID folderId)
                                                                          throws RestException
List all of the children of the specified folder in manual order.

 

Parameters:
folderId - The folder.
Returns:
The folder's of children.
Throws:
RestException - If the method fails

nameExistsInFolder

java.lang.Boolean nameExistsInFolder(java.util.UUID folderId,
                                     java.lang.String name)
                                     throws RestException
Query whether given folder has a resource with given name.

 

Parameters:
folderId - The id of the folder to check.
name - The name of the resource.
Returns:
Returns true in case folder has a resource with given name, false otherwise.
Throws:
RestException - If the method fails

roots

java.util.Collection<ccc.rest.dto.ResourceSummary> roots()
List the root folders available.

 

Returns:
A collection of resource summaries - one for each root folder.

createFolder

ccc.rest.dto.ResourceSummary createFolder(ccc.rest.dto.FolderDto folder)
                                          throws RestException
Create a folder with the specified name.

 

Parameters:
folder - Details of the new folder.
Returns:
A resource summary describing the new folder.
Throws:
RestException - If the method fails.

updateFolder

void updateFolder(java.util.UUID folderId,
                  ccc.rest.dto.FolderDelta delta)
                  throws RestException
Update the specified folder.

 

Parameters:
folderId - The id of the folder to update.
delta - The updated details of the folder.
Throws:
RestException - If the method fails.