|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.jaxrs.JaxrsCollection
ccc.api.jaxrs.FoldersImpl
public class FoldersImpl
Implementation of the Folders
interface.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Folders |
---|
NAME |
Constructor Summary | |
---|---|
FoldersImpl(Folders delegate)
Constructor. |
Method Summary | |
---|---|
ResourceSummary |
create(Folder folder)
Create a folder with the specified name. |
ResourceSummary |
createFolder(java.util.UUID parentId,
java.lang.String name,
java.lang.String title,
boolean publish)
Create a folder with the specified name and title. |
ResourceSummary |
createRoot(java.lang.String name)
Create a root folder with the specified name. |
PagedCollection<ResourceSummary> |
getAccessibleChildren(java.util.UUID folderId)
List all of the children of the specified folder which are accessible to current user. |
java.lang.Boolean |
nameExistsInFolder(java.util.UUID folderId,
java.lang.String name)
Query whether given folder has a resource with given name. |
PagedCollection<ResourceSummary> |
roots()
List the root folders available. |
void |
update(java.util.UUID folderId,
Folder delta)
Update the specified folder. |
Methods inherited from class ccc.api.jaxrs.JaxrsCollection |
---|
convertException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FoldersImpl(Folders delegate)
delegate
- The folders implementation delegated to.Method Detail |
---|
public PagedCollection<ResourceSummary> getAccessibleChildren(java.util.UUID folderId)
getAccessibleChildren
in interface Folders
folderId
- The folder.
public java.lang.Boolean nameExistsInFolder(java.util.UUID folderId, java.lang.String name)
nameExistsInFolder
in interface Folders
folderId
- The id of the folder to check.name
- The name of the resource.
public PagedCollection<ResourceSummary> roots()
roots
in interface Folders
public ResourceSummary create(Folder folder)
create
in interface Folders
folder
- Details of the new folder.
public void update(java.util.UUID folderId, Folder delta)
update
in interface Folders
folderId
- The id of the folder to update.delta
- The updated details of the folder.public ResourceSummary createFolder(java.util.UUID parentId, java.lang.String name, java.lang.String title, boolean publish)
createFolder
in interface Folders
parentId
- The folder in which the new folder should be created.name
- The name of the new folder.title
- The title of the folder.publish
- True if the title should be published, false otherwise.
public ResourceSummary createRoot(java.lang.String name)
createRoot
in interface Folders
name
- The name of the root folder.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |