@RemoteServiceRelativePath(value="folder")
public interface FolderService
extends com.google.gwt.user.client.rpc.RemoteService
Modifier and Type | Method and Description |
---|---|
void |
applyMetadata(String sid,
long parentId)
Applies all extendedAttributes to a sub-tree
|
void |
applyRights(String sid,
GUIFolder folder,
boolean subfolders)
Applies all security settings to folder
|
void |
applyTemplate(String sid,
long folderId,
long templateId)
Applies a template to a folder
|
GUIFolder |
create(String sid,
GUIFolder newFolder,
boolean inheritSecurity)
Creates a new folder
|
void |
delete(String sid,
long folderId)
Deletes the folder and the subtree
|
GUIFolder |
getFolder(String sid,
long folderId,
boolean computePath)
Gets the Folder initializing the permissions.
|
GUIValuePair[] |
loadTemplates(String sid)
Loads the folders templates
|
void |
move(String sid,
long folderId,
long targetId)
Moves a folder under a target folder
|
void |
paste(String sid,
long[] docIds,
long folderId,
String action)
Pastes documents into the target folder.
|
void |
pasteAsAlias(String sid,
long[] docIds,
long folderId)
Pastes documents alias into the target folder.
|
void |
rename(String sid,
long folderId,
String name)
Renames the given folder
|
void |
restore(String sid,
long folderId,
long parentId)
Restores a given folder
|
GUIFolder |
save(String sid,
GUIFolder folder)
Saves the folder in the DB
|
void |
saveTemplates(String sid,
GUIValuePair[] templates)
Saves the passed folder templates
|
GUIFolder save(String sid, GUIFolder folder) throws InvalidSessionException
folder
- The folder to saveInvalidSessionException
GUIFolder create(String sid, GUIFolder newFolder, boolean inheritSecurity) throws InvalidSessionException
newFolder
- The folder to be createdinheritSecurity
- True if the new folder has to inherit the security
policies from the parentInvalidSessionException
void rename(String sid, long folderId, String name) throws InvalidSessionException
InvalidSessionException
void applyRights(String sid, GUIFolder folder, boolean subfolders) throws InvalidSessionException
sid
- The session IDfolder
- The folder that contains the new security settingssubfolders
- If true, the current security settings will be applied
to the sub-foldersInvalidSessionException
void applyMetadata(String sid, long parentId) throws InvalidSessionException
sid
- The session IDparentId
- The parent folder containing the metadataInvalidSessionException
GUIFolder getFolder(String sid, long folderId, boolean computePath) throws InvalidSessionException
folderId
- The folder identifierboolean
- True if the complete path must be retrievedInvalidSessionException
void delete(String sid, long folderId) throws InvalidSessionException
InvalidSessionException
void restore(String sid, long folderId, long parentId) throws InvalidSessionException
InvalidSessionException
void move(String sid, long folderId, long targetId) throws InvalidSessionException
InvalidSessionException
void paste(String sid, long[] docIds, long folderId, String action) throws InvalidSessionException
docIds
- The documents identifiers.folderId
- The target folder identifier.action
- The action selectee (Clipboard#COPY or Clipboard#COPY).InvalidSessionException
void pasteAsAlias(String sid, long[] docIds, long folderId) throws InvalidSessionException
docIds
- The documents alias identifiers.folderId
- The target folder identifier.InvalidSessionException
GUIValuePair[] loadTemplates(String sid) throws InvalidSessionException
InvalidSessionException
void saveTemplates(String sid, GUIValuePair[] templates) throws InvalidSessionException
InvalidSessionException
void applyTemplate(String sid, long folderId, long templateId) throws InvalidSessionException
InvalidSessionException
Copyright © 2008-2014 Logical Objects. All Rights Reserved.