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 metadataException
void delete(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- The folder idException
void rename(String sid, long folderId, String name) throws Exception
sid
- Session identifierfolderId
- The folder idname
- The new folder nameException
void update(String sid, WSFolder folder) throws Exception
sid
- Session identifierfolder
- The folders metadata(please compile the ID)Exception
void move(String sid, long folderId, long parentId) throws Exception
sid
- Session identifierfolderId
- The folder idparentId
- The folder id of the new parent folderException
WSFolder getFolder(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- The folder idException
WSFolder getRootFolder(String sid) throws Exception
sid
- Session identifierException
WSFolder getDefaultWorkspace(String sid) throws Exception
sid
- Session identifierException
boolean isReadable(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- The folder idException
boolean isWriteable(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- The folder idException
boolean isGranted(String sid, long folderId, int permission) throws Exception
sid
- Session identifierfolderId
- The folder idpermission
- The permission representationException
WSFolder[] listChildren(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- Exception
WSFolder[] getPath(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- The target folder idException
void 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.Exception
void 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.Exception
Right[] getGrantedUsers(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- Folder idException
Right[] getGrantedGroups(String sid, long folderId) throws Exception
sid
- Session identifierfolderId
- Folder idException
WSFolder createPath(String sid, long parentId, String path) throws Exception
sid
- Session identifierparentId
- The parent folderpath
- The folder path(for example /Default/dog/cat/mouse)Exception
WSFolder findByPath(String sid, String path) throws Exception
sid
- Session identifierpath
- The folder path(for example /Default/dog/cat/mouse)Exception
Copyright © 2008-2014 Logical Objects. All Rights Reserved.