Class DocumentFileServiceImpl
java.lang.Object
org.exoplatform.documents.service.DocumentFileServiceImpl
- All Implemented Interfaces:
org.exoplatform.documents.service.DocumentFileService
public class DocumentFileServiceImpl
extends Object
implements org.exoplatform.documents.service.DocumentFileService
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentFileServiceImpl(org.exoplatform.documents.storage.DocumentFileStorage documentFileStorage, org.exoplatform.documents.storage.JCRDeleteFileStorage jcrDeleteFileStorage, org.exoplatform.services.security.Authenticator authenticator, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.services.security.IdentityRegistry identityRegistry, org.exoplatform.services.listener.ListenerService listenerService, io.meeds.analytics.api.service.AnalyticsService analyticsService, org.exoplatform.services.thumbnail.ImageThumbnailService imageThumbnailService, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService) -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.documents.model.DocumentsSizeaddDocumentsSizeStat(long ownerId, long userIdentityId) booleanapplyTranscriptionSpeakerSuggestion(String documentId, org.exoplatform.documents.model.TranscriptionSpeakerSuggestion suggestion, long transcriptUpdated, long aclIdentity) booleanbooleancanAddDocument(String spaceId, String currentUserName) voidcancelBulkAction(String actionId, String userName) booleancanImport(org.exoplatform.services.security.Identity identity) voidcheckUploadConflict(String folderId, String name, org.exoplatform.documents.constant.UploadConflictAction conflictAction, long authenticatedUserId) booleanclearTranscriptionState(String documentId) voidcompleteTranscription(String documentId, String transcription, String segments, org.exoplatform.documents.model.TranscriptionState state) org.exoplatform.documents.model.AbstractNodecopyDocument(String nodeId, String destintionNodeId, long authenticatedUserId) intorg.exoplatform.documents.model.AbstractNodecreateDocumentFromTemplate(long ownerId, String folderId, String folderPath, String title, String documentType, long authenticatedUserId) org.exoplatform.documents.model.AbstractNodecreateDocumentFromTemplateDocument(long ownerId, String templateDocumentId, String destinationFolderId, String title, long authenticatedUserId) org.exoplatform.documents.model.AbstractNodecreateFolder(long ownerId, String folderId, String folderPath, String name, long authenticatedUserId) org.exoplatform.documents.model.AbstractNodecreateFolderPath(String folderId, List<String> titles, long authenticatedUserId) org.exoplatform.documents.model.FileVersioncreateNewVersion(String nodeId, String aclIdentity, InputStream newContent) voidcreateShortcut(String documentId, String destPath, String aclIdentity, String conflictAction) org.exoplatform.commons.file.model.FileItemcreateThumbnail(String fileType, io.meeds.portal.thumbnail.model.FileContent file, String userName, int width, int height) voiddeleteDocument(String folderPath, String documentId, boolean favorite, long delay, long authenticatedUserId) voiddeleteDocumentPermanently(String documentPath) voiddeleteDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> documents, long authenticatedUserId) voiddeleteDocumentsPermanently(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, long userIdentityId) voiddownloadDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> documents, long authenticatedUserId) org.exoplatform.documents.model.AbstractNodeduplicateDocument(long ownerId, String fileId, String prefixClone, long authenticatedUserId) org.exoplatform.services.security.IdentitygetAclUserIdentity(String username) getAudioTranscription(String documentId) getAudioTranscription(String documentId, long aclIdentity) List<org.exoplatform.documents.model.AbstractNode> getBiggestDocuments(long ownerId, org.exoplatform.social.core.identity.model.Identity userIdentity, int offset, int limit) List<org.exoplatform.documents.model.BreadCrumbItem> getBreadcrumb(long ownerId, String folderId, String folderPath, long authenticatedUserId) List<org.exoplatform.documents.model.TrashElementNode> getDeletedDocuments(org.exoplatform.documents.model.TrashElementNodeFilter filter) org.exoplatform.documents.model.DocumentAudiencegetDocumentAudience(String documentId) org.exoplatform.documents.model.AbstractNodegetDocumentById(String documentId) org.exoplatform.documents.model.AbstractNodegetDocumentById(String documentId, String aclIdentity) getDocumentCategoryIds(long spaceIdentityId, String userName) getDocumentCategoryIds(String documentId) io.meeds.portal.thumbnail.model.FileContentgetDocumentContent(String documentId, String aclIdentity) List<? extends org.exoplatform.documents.model.AbstractNode> getDocumentItems(org.exoplatform.documents.constant.FileListingType listingType, org.exoplatform.documents.model.DocumentNodeFilter filter, int offset, int limit, long userIdentityId, boolean showHiddenFiles) getDocumentPathInDrive(String documentId, long ownerId, long authenticatedUserId) getDocumentSpaceGroupId(String documentId) org.exoplatform.documents.model.DocumentsSizegetDocumentsSizeStat(long ownerId, long userIdentityId) byte[]getDownloadZipBytes(int actionId, String userName) getFavoriteFileIds(org.exoplatform.documents.model.DocumentNodeFilter filter, int offset, int limit, long userIdentityId) getFileContentAsStream(String docId, long userIdentityId) getFileContentAsText(String docId) List<org.exoplatform.documents.model.FileNode> getFilesTimeline(org.exoplatform.documents.model.DocumentTimelineFilter filter, int offset, int limit, long userIdentityId) org.exoplatform.documents.model.DocumentTextContentgetFileTextContent(String documentId) org.exoplatform.documents.model.DocumentTextPagegetFileTextPage(String documentId, long offset, int maxChars) List<org.exoplatform.documents.model.FileVersion> getFileVersions(String fileNodeId, String aclIdentity) List<org.exoplatform.documents.model.AbstractNode> getFolderChildNodes(org.exoplatform.documents.model.DocumentFolderFilter filter, int offset, int limit, long userIdentityId) List<org.exoplatform.documents.model.FullTreeItem> getFullTreeData(long ownerId, String folderId, String destinationFolderPath, long authenticatedUserId, boolean withChildren, boolean showHidden) org.exoplatform.documents.model.DocumentGroupsSizegetGroupDocumentsCount(org.exoplatform.documents.model.DocumentTimelineFilter filter, long userIdentityId) io.meeds.portal.thumbnail.model.FileContentgetImageThumbnailContent(String fileType, String documentId, String userName, int width, int height) getNewName(long ownerId, String folderId, String folderPath, String name) org.exoplatform.documents.model.FolderNodegetPersonalRootFolder(org.exoplatform.services.security.Identity userAclIdentity) longgetRootFolderOwnerId(String documentId) org.exoplatform.documents.model.FolderNodegetSpaceRootFolder(long spaceId, org.exoplatform.services.security.Identity userAclIdentity) getTranscriptionChapters(String documentId, long aclIdentity) getTranscriptionSegments(String documentId) getTranscriptionSegments(String documentId, long aclIdentity) getTranscriptionSpeakers(String documentId, long aclIdentity) List<org.exoplatform.documents.model.TranscriptionSpeakerSuggestion> getTranscriptionSpeakerSuggestions(String documentId, long aclIdentity) org.exoplatform.documents.model.TranscriptionStategetTranscriptionState(String documentId) org.exoplatform.documents.model.TranscriptionStategetTranscriptionState(String documentId, long aclIdentity) booleanhasEditPermissionOnDocument(String nodeId, long userIdentityId) booleanhasEditPermissionOnDocument(String nodeId, org.exoplatform.services.security.Identity aclIdentity) voidimportFiles(String ownerId, String folderId, String folderPath, String uploadId, String conflict, org.exoplatform.services.security.Identity identity, long authenticatedUserId) booleanmarkTranscriptionQueued(String documentId) voidmoveDocument(long ownerId, String fileId, String destPath, long authenticatedUserId, String conflictAction) voidmoveDocuments(int actionId, long ownerId, List<org.exoplatform.documents.model.AbstractNode> documents, String destPath, long userIdentityId) voidnotifyMember(String documentId, long destId) voidremoveTranscriptionSpeakerSuggestion(String documentId, String speaker, long aclIdentity) voidrenameDocument(long ownerId, String documentID, String name, long authenticatedUserId) voidrestoreDocumentFromTrash(String trashNodePath) voidrestoreDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, long userIdentityId) org.exoplatform.documents.model.FileVersionrestoreVersion(String versionId, String aclIdentity) booleansaveTranscriptionChapters(String documentId, String chapters, long transcriptUpdated) booleansaveTranscriptionSpeakerSuggestions(String documentId, List<org.exoplatform.documents.model.TranscriptionSpeakerSuggestion> suggestions, long transcriptUpdated) org.exoplatform.documents.model.AbstractNodesaveUploadedDocument(String folderId, String uploadId, String name, org.exoplatform.documents.constant.UploadConflictAction conflictAction, long authenticatedUserId) List<org.exoplatform.documents.model.FileNode> List<org.exoplatform.documents.model.FileNode> search(org.exoplatform.documents.model.DocumentTimelineFilter filter, org.exoplatform.services.security.Identity identity, int offset, int limit) voidsetDocumentVisibility(long ownerId, String documentID, Boolean hidden, long authenticatedUserId) voidsetTranscriptionSpeaker(String documentId, String speaker, String identityId, long aclIdentity) voidshareDocument(String documentId, long destId, long authenticatedUserId, boolean notifyMember) voidsynchronizeSpacePermissions(org.exoplatform.social.core.space.model.Space space) voidsynchronizeSpacePermissions(org.exoplatform.social.core.space.model.Space space, boolean targetRedactionalMode) voidundoDeleteDocument(String documentId, long authenticatedUserId) voidunShareDocument(String documentId, long destId) voidupdateAudioTranscription(String documentId, String transcription) voidupdateAudioTranscription(String documentId, String transcription, long aclIdentity) voidupdateDocumentDescription(long ownerId, String documentID, String description, long aclIdentity) voidupdatePermissions(String documentId, org.exoplatform.documents.model.NodePermission nodePermissionEntity, long authenticatedUserId) voidupdateTranscriptionState(String documentId, org.exoplatform.documents.model.TranscriptionState state) org.exoplatform.documents.model.FileVersionupdateVersionSummary(String originFileId, String versionId, String summary, String aclIdentity) voidvalidateUploadedContent(String fileName, String mimeType, byte[] content) voidvalidateUploadedFile(String fileName, String mimeType, Path file)
-
Constructor Details
-
DocumentFileServiceImpl
public DocumentFileServiceImpl(org.exoplatform.documents.storage.DocumentFileStorage documentFileStorage, org.exoplatform.documents.storage.JCRDeleteFileStorage jcrDeleteFileStorage, org.exoplatform.services.security.Authenticator authenticator, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.services.security.IdentityRegistry identityRegistry, org.exoplatform.services.listener.ListenerService listenerService, io.meeds.analytics.api.service.AnalyticsService analyticsService, org.exoplatform.services.thumbnail.ImageThumbnailService imageThumbnailService, org.exoplatform.services.jcr.RepositoryService repositoryService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.ext.app.SessionProviderService sessionProviderService)
-
-
Method Details
-
getSpaceRootFolder
public org.exoplatform.documents.model.FolderNode getSpaceRootFolder(long spaceId, org.exoplatform.services.security.Identity userAclIdentity) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
getSpaceRootFolderin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
getPersonalRootFolder
public org.exoplatform.documents.model.FolderNode getPersonalRootFolder(org.exoplatform.services.security.Identity userAclIdentity) - Specified by:
getPersonalRootFolderin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getRootFolderOwnerId
- Specified by:
getRootFolderOwnerIdin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getFileContentAsText
-
getFileTextContent
- Specified by:
getFileTextContentin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getFileTextPage
public org.exoplatform.documents.model.DocumentTextPage getFileTextPage(String documentId, long offset, int maxChars) - Specified by:
getFileTextPagein interfaceorg.exoplatform.documents.service.DocumentFileService
-
getFileContentAsStream
- Specified by:
getFileContentAsStreamin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getDocumentItems
public List<? extends org.exoplatform.documents.model.AbstractNode> getDocumentItems(org.exoplatform.documents.constant.FileListingType listingType, org.exoplatform.documents.model.DocumentNodeFilter filter, int offset, int limit, long userIdentityId, boolean showHiddenFiles) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getDocumentItemsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getFavoriteFileIds
public List<String> getFavoriteFileIds(org.exoplatform.documents.model.DocumentNodeFilter filter, int offset, int limit, long userIdentityId) throws IllegalAccessException - Specified by:
getFavoriteFileIdsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
search
-
search
public List<org.exoplatform.documents.model.FileNode> search(org.exoplatform.documents.model.DocumentTimelineFilter filter, org.exoplatform.services.security.Identity identity, int offset, int limit) - Specified by:
searchin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getFilesTimeline
public List<org.exoplatform.documents.model.FileNode> getFilesTimeline(org.exoplatform.documents.model.DocumentTimelineFilter filter, int offset, int limit, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getFilesTimelinein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getBiggestDocuments
public List<org.exoplatform.documents.model.AbstractNode> getBiggestDocuments(long ownerId, org.exoplatform.social.core.identity.model.Identity userIdentity, int offset, int limit) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getBiggestDocumentsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getGroupDocumentsCount
public org.exoplatform.documents.model.DocumentGroupsSize getGroupDocumentsCount(org.exoplatform.documents.model.DocumentTimelineFilter filter, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getGroupDocumentsCountin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getFolderChildNodes
public List<org.exoplatform.documents.model.AbstractNode> getFolderChildNodes(org.exoplatform.documents.model.DocumentFolderFilter filter, int offset, int limit, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getFolderChildNodesin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getBreadcrumb
public List<org.exoplatform.documents.model.BreadCrumbItem> getBreadcrumb(long ownerId, String folderId, String folderPath, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getBreadcrumbin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getFullTreeData
public List<org.exoplatform.documents.model.FullTreeItem> getFullTreeData(long ownerId, String folderId, String destinationFolderPath, long authenticatedUserId, boolean withChildren, boolean showHidden) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getFullTreeDatain interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
duplicateDocument
public org.exoplatform.documents.model.AbstractNode duplicateDocument(long ownerId, String fileId, String prefixClone, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
duplicateDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
copyDocument
public org.exoplatform.documents.model.AbstractNode copyDocument(String nodeId, String destintionNodeId, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
copyDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
createDocumentFromTemplateDocument
public org.exoplatform.documents.model.AbstractNode createDocumentFromTemplateDocument(long ownerId, String templateDocumentId, String destinationFolderId, String title, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, org.exoplatform.commons.ObjectAlreadyExistsException - Specified by:
createDocumentFromTemplateDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionorg.exoplatform.commons.ObjectAlreadyExistsException
-
moveDocument
public void moveDocument(long ownerId, String fileId, String destPath, long authenticatedUserId, String conflictAction) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, org.exoplatform.commons.ObjectAlreadyExistsException - Specified by:
moveDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionorg.exoplatform.commons.ObjectAlreadyExistsException
-
createFolder
public org.exoplatform.documents.model.AbstractNode createFolder(long ownerId, String folderId, String folderPath, String name, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
createFolderin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
createFolderPath
public org.exoplatform.documents.model.AbstractNode createFolderPath(String folderId, List<String> titles, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
createFolderPathin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
createDocumentFromTemplate
public org.exoplatform.documents.model.AbstractNode createDocumentFromTemplate(long ownerId, String folderId, String folderPath, String title, String documentType, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, org.exoplatform.commons.ObjectAlreadyExistsException - Specified by:
createDocumentFromTemplatein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionorg.exoplatform.commons.ObjectAlreadyExistsException
-
validateUploadedContent
-
validateUploadedFile
-
checkUploadConflict
public void checkUploadConflict(String folderId, String name, org.exoplatform.documents.constant.UploadConflictAction conflictAction, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
checkUploadConflictin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
saveUploadedDocument
public org.exoplatform.documents.model.AbstractNode saveUploadedDocument(String folderId, String uploadId, String name, org.exoplatform.documents.constant.UploadConflictAction conflictAction, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
saveUploadedDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getNewName
public String getNewName(long ownerId, String folderId, String folderPath, String name) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getNewNamein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
renameDocument
public void renameDocument(long ownerId, String documentID, String name, long authenticatedUserId) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
renameDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
deleteDocument
public void deleteDocument(String folderPath, String documentId, boolean favorite, long delay, long authenticatedUserId) throws IllegalAccessException - Specified by:
deleteDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
undoDeleteDocument
- Specified by:
undoDeleteDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService
-
deleteDocuments
public void deleteDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> documents, long authenticatedUserId) throws IllegalAccessException - Specified by:
deleteDocumentsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
downloadDocuments
public void downloadDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> documents, long authenticatedUserId) throws IllegalAccessException - Specified by:
downloadDocumentsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
updatePermissions
public void updatePermissions(String documentId, org.exoplatform.documents.model.NodePermission nodePermissionEntity, long authenticatedUserId) throws IllegalAccessException - Specified by:
updatePermissionsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
notifyMember
- Specified by:
notifyMemberin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
canAccess
- Specified by:
canAccessin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getAclUserIdentity
public org.exoplatform.services.security.Identity getAclUserIdentity(String username) throws IllegalAccessException - Specified by:
getAclUserIdentityin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
updateDocumentDescription
public void updateDocumentDescription(long ownerId, String documentID, String description, long aclIdentity) throws IllegalStateException, IllegalAccessException, javax.jcr.RepositoryException - Specified by:
updateDocumentDescriptionin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalStateExceptionIllegalAccessExceptionjavax.jcr.RepositoryException
-
updateAudioTranscription
public void updateAudioTranscription(String documentId, String transcription, long aclIdentity) throws IllegalAccessException - Specified by:
updateAudioTranscriptionin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
updateAudioTranscription
-
getAudioTranscription
public String getAudioTranscription(String documentId, long aclIdentity) throws IllegalAccessException - Specified by:
getAudioTranscriptionin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
getAudioTranscription
-
getTranscriptionState
public org.exoplatform.documents.model.TranscriptionState getTranscriptionState(String documentId, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getTranscriptionStatein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getTranscriptionState
public org.exoplatform.documents.model.TranscriptionState getTranscriptionState(String documentId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getTranscriptionStatein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
updateTranscriptionState
public void updateTranscriptionState(String documentId, org.exoplatform.documents.model.TranscriptionState state) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
updateTranscriptionStatein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
markTranscriptionQueued
public boolean markTranscriptionQueued(String documentId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
markTranscriptionQueuedin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
clearTranscriptionState
public boolean clearTranscriptionState(String documentId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
clearTranscriptionStatein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
completeTranscription
public void completeTranscription(String documentId, String transcription, String segments, org.exoplatform.documents.model.TranscriptionState state) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
completeTranscriptionin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getTranscriptionSegments
public String getTranscriptionSegments(String documentId, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getTranscriptionSegmentsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getTranscriptionSegments
-
saveTranscriptionChapters
public boolean saveTranscriptionChapters(String documentId, String chapters, long transcriptUpdated) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
saveTranscriptionChaptersin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getTranscriptionChapters
public String getTranscriptionChapters(String documentId, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getTranscriptionChaptersin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getTranscriptionSpeakers
public Map<String,String> getTranscriptionSpeakers(String documentId, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getTranscriptionSpeakersin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
setTranscriptionSpeaker
public void setTranscriptionSpeaker(String documentId, String speaker, String identityId, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
setTranscriptionSpeakerin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getDocumentAudience
public org.exoplatform.documents.model.DocumentAudience getDocumentAudience(String documentId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getDocumentAudiencein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
saveTranscriptionSpeakerSuggestions
public boolean saveTranscriptionSpeakerSuggestions(String documentId, List<org.exoplatform.documents.model.TranscriptionSpeakerSuggestion> suggestions, long transcriptUpdated) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
saveTranscriptionSpeakerSuggestionsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getTranscriptionSpeakerSuggestions
public List<org.exoplatform.documents.model.TranscriptionSpeakerSuggestion> getTranscriptionSpeakerSuggestions(String documentId, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getTranscriptionSpeakerSuggestionsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
removeTranscriptionSpeakerSuggestion
public void removeTranscriptionSpeakerSuggestion(String documentId, String speaker, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
removeTranscriptionSpeakerSuggestionin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
applyTranscriptionSpeakerSuggestion
public boolean applyTranscriptionSpeakerSuggestion(String documentId, org.exoplatform.documents.model.TranscriptionSpeakerSuggestion suggestion, long transcriptUpdated, long aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
applyTranscriptionSpeakerSuggestionin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
createShortcut
public void createShortcut(String documentId, String destPath, String aclIdentity, String conflictAction) throws IllegalAccessException, org.exoplatform.commons.ObjectAlreadyExistsException - Specified by:
createShortcutin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.ObjectAlreadyExistsException
-
getFileVersions
-
updateVersionSummary
-
restoreVersion
-
canAddDocument
-
getDownloadZipBytes
- Specified by:
getDownloadZipBytesin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IOException
-
cancelBulkAction
- Specified by:
cancelBulkActionin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IOException
-
createNewVersion
public org.exoplatform.documents.model.FileVersion createNewVersion(String nodeId, String aclIdentity, InputStream newContent) - Specified by:
createNewVersionin interfaceorg.exoplatform.documents.service.DocumentFileService
-
moveDocuments
public void moveDocuments(int actionId, long ownerId, List<org.exoplatform.documents.model.AbstractNode> documents, String destPath, long userIdentityId) throws IllegalAccessException - Specified by:
moveDocumentsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
canImport
public boolean canImport(org.exoplatform.services.security.Identity identity) - Specified by:
canImportin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getDocumentsSizeStat
public org.exoplatform.documents.model.DocumentsSize getDocumentsSizeStat(long ownerId, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getDocumentsSizeStatin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
addDocumentsSizeStat
public org.exoplatform.documents.model.DocumentsSize addDocumentsSizeStat(long ownerId, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
addDocumentsSizeStatin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
hasEditPermissionOnDocument
public boolean hasEditPermissionOnDocument(String nodeId, long userIdentityId) throws IllegalAccessException - Specified by:
hasEditPermissionOnDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
hasEditPermissionOnDocument
public boolean hasEditPermissionOnDocument(String nodeId, org.exoplatform.services.security.Identity aclIdentity) - Specified by:
hasEditPermissionOnDocumentin interfaceorg.exoplatform.documents.service.DocumentFileService
-
importFiles
public void importFiles(String ownerId, String folderId, String folderPath, String uploadId, String conflict, org.exoplatform.services.security.Identity identity, long authenticatedUserId) throws Exception - Specified by:
importFilesin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
Exception
-
getDeletedDocuments
public List<org.exoplatform.documents.model.TrashElementNode> getDeletedDocuments(org.exoplatform.documents.model.TrashElementNodeFilter filter) throws javax.jcr.RepositoryException - Specified by:
getDeletedDocumentsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
javax.jcr.RepositoryException
-
countDeletedDocuments
public int countDeletedDocuments()- Specified by:
countDeletedDocumentsin interfaceorg.exoplatform.documents.service.DocumentFileService
-
restoreDocumentFromTrash
- Specified by:
restoreDocumentFromTrashin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
javax.jcr.RepositoryException
-
deleteDocumentPermanently
public void deleteDocumentPermanently(String documentPath) throws org.exoplatform.commons.exception.ObjectNotFoundException, javax.jcr.RepositoryException - Specified by:
deleteDocumentPermanentlyin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionjavax.jcr.RepositoryException
-
deleteDocumentsPermanently
public void deleteDocumentsPermanently(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, long userIdentityId) throws IllegalAccessException - Specified by:
deleteDocumentsPermanentlyin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
restoreDocuments
public void restoreDocuments(int actionId, List<org.exoplatform.documents.model.AbstractNode> trashElementNodes, long userIdentityId) throws IllegalAccessException - Specified by:
restoreDocumentsin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessException
-
getDocumentById
public org.exoplatform.documents.model.AbstractNode getDocumentById(String documentId, String aclIdentity) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getDocumentByIdin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getDocumentContent
public io.meeds.portal.thumbnail.model.FileContent getDocumentContent(String documentId, String aclIdentity) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getDocumentContentin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getImageThumbnailContent
-
createThumbnail
public org.exoplatform.commons.file.model.FileItem createThumbnail(String fileType, io.meeds.portal.thumbnail.model.FileContent file, String userName, int width, int height) throws Exception - Specified by:
createThumbnailin interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
Exception
-
getDocumentById
- Specified by:
getDocumentByIdin interfaceorg.exoplatform.documents.service.DocumentFileService
-
getDocumentSpaceGroupId
-
getDocumentPathInDrive
public String getDocumentPathInDrive(String documentId, long ownerId, long authenticatedUserId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
getDocumentPathInDrivein interfaceorg.exoplatform.documents.service.DocumentFileService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
setDocumentVisibility
-
getDocumentCategoryIds
-
getDocumentCategoryIds
-
synchronizeSpacePermissions
public void synchronizeSpacePermissions(org.exoplatform.social.core.space.model.Space space) - Specified by:
synchronizeSpacePermissionsin interfaceorg.exoplatform.documents.service.DocumentFileService
-
synchronizeSpacePermissions
public void synchronizeSpacePermissions(org.exoplatform.social.core.space.model.Space space, boolean targetRedactionalMode)
-