public interface FolderService
| Modifier and Type | Method and Description |
|---|---|
WSFolder |
create(String sid,
WSFolder folder)
Create a new folder.
|
WSFolder |
createPath(String sid,
long parentId,
String path)
Creates the folder for the specified path.
|
void |
delete(String sid,
long folderId)
Deletes an existing folder with the given identifier.
|
WSFolder |
findByPath(String sid,
String path)
Finds the folder at the specified path
|
WSFolder |
getDefaultWorkspace(String sid)
Gets the Default workspace
|
WSFolder |
getFolder(String sid,
long folderId)
Gets folder metadata of an existing folder with the given identifier.
|
Right[] |
getGrantedGroups(String sid,
long folderId)
Retrieves the list of granted groups for the given folder.
|
Right[] |
getGrantedUsers(String sid,
long folderId)
Retrieves the list of granted users for the given folder.
|
WSFolder[] |
getPath(String sid,
long folderId)
Computes the path from the root to the target folder.
|
WSFolder |
getRootFolder(String sid)
Gets root metadata
|
void |
grantGroup(String sid,
long folderId,
long groupId,
int permissions,
boolean recursive)
Grant group permission to the folder.
|
void |
grantUser(String sid,
long folderId,
long userId,
int permissions,
boolean recursive)
Grant user permission to the folder.
|
boolean |
isGranted(String sid,
long folderId,
int permission)
Test if the current user has a specific permission.
|
boolean |
isReadable(String sid,
long folderId)
Test if a folder identifier is readable.
|
boolean |
isWriteable(String sid,
long folderId)
Test if a folder identifier is writeable.
|
WSFolder[] |
listChildren(String sid,
long folderId)
Lists all direct folders of a parent folder.
|
WSFolder[] |
listWorkspaces(String sid)
Retrieves the list of all workspaces.
|
void |
move(String sid,
long folderId,
long parentId)
Moves an existing folder with the given identifier.
|
void |
rename(String sid,
long folderId,
String name)
Renames an existing folder with the given identifier.
|
void |
update(String sid,
WSFolder folder)
Updates an existing folder.
|
WSFolder create(String sid, WSFolder folder) throws Exception
sid - Session identifierfolder - value object containing the folder's metadataExceptionvoid delete(String sid, long folderId) throws Exception
sid - Session identifierfolderId - The folder idExceptionvoid rename(String sid, long folderId, String name) throws Exception
sid - Session identifierfolderId - The folder idname - The new folder nameExceptionvoid update(String sid, WSFolder folder) throws Exception
sid - Session identifierfolder - The folders metadata(please compile the ID)Exceptionvoid move(String sid, long folderId, long parentId) throws Exception
sid - Session identifierfolderId - The folder idparentId - The folder id of the new parent folderExceptionWSFolder getFolder(String sid, long folderId) throws Exception
sid - Session identifierfolderId - The folder idExceptionWSFolder getRootFolder(String sid) throws Exception
sid - Session identifierExceptionWSFolder getDefaultWorkspace(String sid) throws Exception
sid - Session identifierExceptionboolean isReadable(String sid, long folderId) throws Exception
sid - Session identifierfolderId - The folder idExceptionboolean isWriteable(String sid, long folderId) throws Exception
sid - Session identifierfolderId - The folder idExceptionboolean isGranted(String sid, long folderId, int permission) throws Exception
sid - Session identifierfolderId - The folder idpermission - The permission representationExceptionWSFolder[] listChildren(String sid, long folderId) throws Exception
sid - Session identifierfolderId - ExceptionWSFolder[] getPath(String sid, long folderId) throws Exception
sid - Session identifierfolderId - The target folder idExceptionvoid grantUser(String sid, long folderId, long userId, int permissions, boolean recursive) throws Exception
sid - Session identifierfolderId - Folder iduserId - User Idpermissions - the permission integer representation. If '0', the
user will be not granted to access the folder.recursive - recursion option. If true, the grant operation is
applied also to the subfolders.Exceptionvoid grantGroup(String sid, long folderId, long groupId, int permissions, boolean recursive) throws Exception
sid - Session identifierfolderId - Folder idgroupId - Group Idpermissions - the permission integer representation. If '0', the
group will be not granted to access the folder.recursive - recursion option. If true, the grant operation is
applied also to the subfolders.ExceptionRight[] getGrantedUsers(String sid, long folderId) throws Exception
sid - Session identifierfolderId - Folder idExceptionRight[] getGrantedGroups(String sid, long folderId) throws Exception
sid - Session identifierfolderId - Folder idExceptionWSFolder createPath(String sid, long parentId, String path) throws Exception
sid - Session identifierparentId - The parent folderpath - The folder path(for example /Default/dog/cat/mouse)ExceptionWSFolder findByPath(String sid, String path) throws Exception
sid - Session identifierpath - The folder path(for example /Default/dog/cat/mouse)ExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.