public class FolderServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements FolderService
| Constructor and Description |
|---|
FolderServiceImpl() |
| 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 subtree)
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
|
static GUIFolder |
getFolder(String sid,
long folderId) |
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
|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void applyRights(String sid, GUIFolder folder, boolean subtree) throws InvalidSessionException
FolderServiceapplyRights in interface FolderServicesid - The session IDfolder - The folder that contains the new security settingssubtree - If true, the current security settings will be applied
to the sub-foldersInvalidSessionExceptionpublic void applyMetadata(String sid, long parentId) throws InvalidSessionException
FolderServiceapplyMetadata in interface FolderServicesid - The session IDparentId - The parent folder containing the metadataInvalidSessionExceptionpublic void delete(String sid, long folderId) throws InvalidSessionException
FolderServicedelete in interface FolderServiceInvalidSessionExceptionpublic static GUIFolder getFolder(String sid, long folderId) throws InvalidSessionException
InvalidSessionExceptionpublic GUIFolder getFolder(String sid, long folderId, boolean computePath) throws InvalidSessionException
FolderServicegetFolder in interface FolderServicefolderId - The folder identifierInvalidSessionExceptionpublic void move(String sid, long folderId, long targetId) throws InvalidSessionException
FolderServicemove in interface FolderServiceInvalidSessionExceptionpublic void rename(String sid, long folderId, String name) throws InvalidSessionException
FolderServicerename in interface FolderServiceInvalidSessionExceptionpublic GUIFolder save(String sid, GUIFolder folder) throws InvalidSessionException
FolderServicesave in interface FolderServicefolder - The folder to saveInvalidSessionExceptionpublic GUIFolder create(String sid, GUIFolder newFolder, boolean inheritSecurity) throws InvalidSessionException
FolderServicecreate in interface FolderServicenewFolder - The folder to be createdinheritSecurity - True if the new folder has to inherit the security
policies from the parentInvalidSessionExceptionpublic void paste(String sid, long[] docIds, long folderId, String action) throws InvalidSessionException
FolderServicepaste in interface FolderServicedocIds - The documents identifiers.folderId - The target folder identifier.action - The action selectee (Clipboard#COPY or Clipboard#COPY).InvalidSessionExceptionpublic void pasteAsAlias(String sid, long[] docIds, long folderId) throws InvalidSessionException
FolderServicepasteAsAlias in interface FolderServicedocIds - The documents alias identifiers.folderId - The target folder identifier.InvalidSessionExceptionpublic GUIValuePair[] loadTemplates(String sid) throws InvalidSessionException
FolderServiceloadTemplates in interface FolderServiceInvalidSessionExceptionpublic void saveTemplates(String sid, GUIValuePair[] templates) throws InvalidSessionException
FolderServicesaveTemplates in interface FolderServiceInvalidSessionExceptionpublic void applyTemplate(String sid, long folderId, long templateId) throws InvalidSessionException
FolderServiceapplyTemplate in interface FolderServiceInvalidSessionExceptionpublic void restore(String sid, long folderId, long parentId) throws InvalidSessionException
FolderServicerestore in interface FolderServiceInvalidSessionExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.