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, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void applyRights(String sid, GUIFolder folder, boolean subtree) throws InvalidSessionException
FolderService
applyRights
in interface FolderService
sid
- The session IDfolder
- The folder that contains the new security settingssubtree
- If true, the current security settings will be applied
to the sub-foldersInvalidSessionException
public void applyMetadata(String sid, long parentId) throws InvalidSessionException
FolderService
applyMetadata
in interface FolderService
sid
- The session IDparentId
- The parent folder containing the metadataInvalidSessionException
public void delete(String sid, long folderId) throws InvalidSessionException
FolderService
delete
in interface FolderService
InvalidSessionException
public static GUIFolder getFolder(String sid, long folderId) throws InvalidSessionException
InvalidSessionException
public GUIFolder getFolder(String sid, long folderId, boolean computePath) throws InvalidSessionException
FolderService
getFolder
in interface FolderService
folderId
- The folder identifierInvalidSessionException
public void move(String sid, long folderId, long targetId) throws InvalidSessionException
FolderService
move
in interface FolderService
InvalidSessionException
public void rename(String sid, long folderId, String name) throws InvalidSessionException
FolderService
rename
in interface FolderService
InvalidSessionException
public GUIFolder save(String sid, GUIFolder folder) throws InvalidSessionException
FolderService
save
in interface FolderService
folder
- The folder to saveInvalidSessionException
public GUIFolder create(String sid, GUIFolder newFolder, boolean inheritSecurity) throws InvalidSessionException
FolderService
create
in interface FolderService
newFolder
- The folder to be createdinheritSecurity
- True if the new folder has to inherit the security
policies from the parentInvalidSessionException
public void paste(String sid, long[] docIds, long folderId, String action) throws InvalidSessionException
FolderService
paste
in interface FolderService
docIds
- The documents identifiers.folderId
- The target folder identifier.action
- The action selectee (Clipboard#COPY or Clipboard#COPY).InvalidSessionException
public void pasteAsAlias(String sid, long[] docIds, long folderId) throws InvalidSessionException
FolderService
pasteAsAlias
in interface FolderService
docIds
- The documents alias identifiers.folderId
- The target folder identifier.InvalidSessionException
public GUIValuePair[] loadTemplates(String sid) throws InvalidSessionException
FolderService
loadTemplates
in interface FolderService
InvalidSessionException
public void saveTemplates(String sid, GUIValuePair[] templates) throws InvalidSessionException
FolderService
saveTemplates
in interface FolderService
InvalidSessionException
public void applyTemplate(String sid, long folderId, long templateId) throws InvalidSessionException
FolderService
applyTemplate
in interface FolderService
InvalidSessionException
public void restore(String sid, long folderId, long parentId) throws InvalidSessionException
FolderService
restore
in interface FolderService
InvalidSessionException
Copyright © 2008-2014 Logical Objects. All Rights Reserved.