Interface FolderService
- All Superinterfaces:
- com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
- FolderServiceImpl
@RemoteServiceRelativePath("folder")
public interface FolderService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Folder Service. This service allows r/w
 operations on folders.
- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionvoidapplyGridLayout(long folderId) Replicates the folder's grid layout to all the subtreevoidapplyMetadata(long parentId) Applies all extended attributes to a sub-treevoidapplyOCR(long parentId) Applies all OCR settings to a sub-treevoidapplyStore(long parentId) Applies the store setting to a sub-treevoidapplyTags(long parentId) Applies all tags to a sub-treevoidapplyTemplate(long folderId, long templateId, boolean inheritSecurity) Applies a template to a foldercomputeStats(long folderId) Counts the docs and subfolders of a given parentvoidcopyFolders(List<Long> folderIds, long targetId, boolean foldersOnly, String securityOption, GUIFolder model) Copies a folder under a target folderCreates a new foldercreateAlias(long parentId, long foldRef) Creates a new folder aliasvoidDeletes the folders and the subtreesvoiddeleteFromTrash(List<Long> ids) Deletes a selection of folders from trashgetAllowedPermissions(List<Long> folderIds) Gets the allowed permissions on a set of folders in regards of the current usergetFolder(long folderId, boolean computePath, boolean computeDocs, boolean computeSubfolders) Gets the Folder initializing the permissions.inheritACL(long folderId, long rightsFolderId) Inherits the ACL of another folderLoads the folders templatesvoidMerges some folders to a target foldervoidMoves some folders under a target foldervoidpaste(List<Long> docIds, long folderId, String action, boolean links, boolean notes, boolean security) Pastes documents into the target foldervoidpasteAsAlias(List<Long> docIds, long folderId, String type) Read the uploaded image and converts it into Base64voidRenames the given foldervoidRestores a given folderSaves the folder in the DBvoidApplies all security settings to foldervoidsaveTemplates(List<GUIValue> templates) Saves the passed folder templatesvoidsetFolderPagination(long folderId, Integer startRecord, Integer pageSize) Sets the pagination informations for the visualization of the folders tree
- 
Method Details- 
saveSaves the folder in the DB- Parameters:
- folder- The folder to save
- Returns:
- The saved folder
- Throws:
- ServerException- an error happened in the server application
 
- 
createCreates a new folder- Parameters:
- newFolder- The folder to be created
- inheritSecurity- True if the new folder has to inherit the security policies from the parent
- Returns:
- The saved folder
- Throws:
- ServerException- an error happened in the server application
 
- 
createAliasCreates a new folder alias- Parameters:
- parentId- The folder in which the alias must be created
- foldRef- The original folder
- Returns:
- The created alias
- Throws:
- ServerException- an error happened in the server application
 
- 
renameRenames the given folder- Parameters:
- folderId- identifier of the folder
- name- the new folder's name
- Throws:
- ServerException- an error happened in the server application
 
- 
saveACLApplies all security settings to folder- Parameters:
- folder- The folder that contains the new security settings
- subfolders- If true, the current security settings will be applied to the sub-folders
- Throws:
- ServerException- an error happened in the server application
 
- 
inheritACLInherits the ACL of another folder- Parameters:
- folderId- The folder that has to be updated
- rightsFolderId- the folder that defines the rights
- Returns:
- The updated Folder
- Throws:
- ServerException- an error happened in the server application
 
- 
applyMetadataApplies all extended attributes to a sub-tree- Parameters:
- parentId- The parent folder containing the metadata
- Throws:
- ServerException- an error happened in the server application
 
- 
applyTagsApplies all tags to a sub-tree- Parameters:
- parentId- The parent folder containing the tags
- Throws:
- ServerException- an error happened in the server application
 
- 
applyStoreApplies the store setting to a sub-tree- Parameters:
- parentId- The parent folder containing the tags
- Throws:
- ServerException- an error happened in the server application
 
- 
applyOCRApplies all OCR settings to a sub-tree- Parameters:
- parentId- The parent folder containing the settings
- Throws:
- ServerException- an error happened in the server application
 
- 
getFolderGUIFolder getFolder(long folderId, boolean computePath, boolean computeDocs, boolean computeSubfolders) throws ServerException Gets the Folder initializing the permissions.- Parameters:
- folderId- The folder identifier
- computePath- True if the complete path must be retrieved
- computeDocs- True if the number of contained documents must be computed
- computeSubfolders- True if the number of contained subfolders must be computed
- Returns:
- The Folder bean
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteDeletes the folders and the subtrees- Parameters:
- folderIds- identifiers of the folders
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteFromTrashDeletes a selection of folders from trash- Parameters:
- ids- identifiers of the folders
- Throws:
- ServerException- an error happened in the server application
 
- 
restoreRestores a given folder- Parameters:
- folderIds- identifiers of the folders
- targetId- identifier of the folder that will receive the restore
- Throws:
- ServerException- an error happened in the server application
 
- 
moveMoves some folders under a target folder- Parameters:
- folderIds- identifiers of the folders
- targetId- identifier of the folder that will receive the move
- Throws:
- ServerException- an error happened in the server application
 
- 
mergeMerges some folders to a target folder- Parameters:
- folderIds- identifiers of the folders
- targetId- identifier of the folder that will receive the merge
- Throws:
- ServerException- an error happened in the server application
 
- 
copyFoldersvoid copyFolders(List<Long> folderIds, long targetId, boolean foldersOnly, String securityOption, GUIFolder model) throws ServerException Copies a folder under a target folder- Parameters:
- folderIds- identifiers of the folders
- targetId- identifier of the folder that will receive the copy
- foldersOnly- flag to copy just the folders and not the documents
- securityOption- how to setup the security for the new folder'none', 'inherit' or 'replicate'
- model- a model to use for creating the new folder
- Throws:
- ServerException- an error happened in the server application
 
- 
pastevoid paste(List<Long> docIds, long folderId, String action, boolean links, boolean notes, boolean security) throws ServerException Pastes documents into the target folder- Parameters:
- docIds- the documents identifiers
- folderId- the target folder identifier
- action- the selected action(- Clipboard.COPYor- Clipboard.COPY)
- links- if the links must be copied too
- notes- if the notes and annotations must be copied too
- security- if the security settings must be copied too
- Throws:
- ServerException- an error happened in the server application
 
- 
pasteAsAlias- Throws:
- ServerException
 
- 
loadTemplatesLoads the folders templates- Returns:
- the folder templates
- Throws:
- ServerException- an error happened in the server application
 
- 
saveTemplatesSaves the passed folder templates- Parameters:
- templates- the folder templates
- Throws:
- ServerException- an error happened in the server application
 
- 
applyTemplateApplies a template to a folder- Parameters:
- folderId- identifier of the folder to use as root
- templateId- identifier of the template to use
- inheritSecurity- if the new folders mus inherit the security from- folderId
- Throws:
- ServerException- an error happened in the server application
 
- 
computeStatsCounts the docs and subfolders of a given parent- Parameters:
- folderId- identifier of the folder
- Returns:
- the statistics (total number of documents, total number of subfolders, total size
- Throws:
- ServerException- an error happened in the server application
 
- 
setFolderPaginationvoid setFolderPagination(long folderId, Integer startRecord, Integer pageSize) throws ServerException Sets the pagination informations for the visualization of the folders tree- Parameters:
- folderId- ID of the folder
- startRecord- Start rec index
- pageSize- Current page size
- Throws:
- ServerException- an error happened in the server application
 
- 
applyGridLayoutReplicates the folder's grid layout to all the subtree- Parameters:
- folderId- identifier of the root folder whose setting will be replicated
- Throws:
- ServerException- error generated in the server application
 
- 
readImageRead the uploaded image and converts it into Base64- Returns:
- the string conversion of the uploaded image
- Throws:
- ServerException- an error happened in the server application
 
- 
getAllowedPermissionsGets the allowed permissions on a set of folders in regards of the current user- Parameters:
- folderIds- collection of the folders
- Throws:
- ServerException
 
 
-