Package org.nuxeo.drive.adapter.impl
Class DocumentBackedFileItem
java.lang.Object
org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
org.nuxeo.drive.adapter.impl.DocumentBackedFileItem
- All Implemented Interfaces:
Comparable<FileSystemItem>,FileItem,FileSystemItem
public class DocumentBackedFileItem
extends AbstractDocumentBackedFileSystemItem
implements FileItem
DocumentModel backed implementation of a FileItem.- Author:
- Antoine Taillefer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Stringprotected Stringprotected FileSystemItemFactoryprotected Stringprotected longFields inherited from class org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
docId, docPath, docTitle, PERMISSION_CHECK_OPTIMIZED_PROPERTY, repositoryNameFields inherited from class org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
canDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, FILE_SYSTEM_ITEM_PATH_SEPARATOR, folder, id, lastContributor, lastModificationDate, lockInfo, name, parentId, path, principal, userName -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc) DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint) DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc) DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint) DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBlob()protected BlobgetBlob(BlobHolder blobHolder) protected BlobgetBlob(DocumentModel doc) protected BlobHolderbooleanprotected StringgetFileName(Blob blob, String docTitle) protected NuxeoDriveManagerlonggetSize()inthashCode()protected final voidinitialize(FileSystemItemFactory factory, DocumentModel doc) voidvoidprotected voidsetCanUpdate(boolean canUpdate) protected voidprotected voidsetDigestAlgorithm(String digestAlgorithm) protected voidsetDownloadURL(String downloadURL) voidsetOldDigest(String oldDigest) protected voidsetSize(long size) protected voidupdateDigest(Blob blob) protected voidupdateDocTitleIfNeeded(DocumentModel doc, String name) protected voidprotected voidupdateSize(Blob blob) Methods inherited from class org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
canMove, computeId, delete, getDocId, getDocPath, getDocument, getDocumentById, getRepositoryName, getTrashService, handleCollectionMember, move, parseFileSystemId, setId, updateLastModificationDateMethods inherited from class org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
compareTo, getCanDelete, getCanRename, getCreationDate, getCreator, getFileSystemItemAdapterService, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, getUserName, isFolder, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setLastContributor, setLastModificationDate, setLockInfo, setName, setParentId, setPath, setUserName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.nuxeo.drive.adapter.FileSystemItem
canMove, delete, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFolder, move
-
Field Details
-
downloadURL
-
digestAlgorithm
-
digest
-
size
protected long size- Since:
- 11.1
-
oldDigest
-
canUpdate
protected boolean canUpdate -
factory
-
-
Constructor Details
-
DocumentBackedFileItem
-
DocumentBackedFileItem
public DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint) -
DocumentBackedFileItem
public DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) -
DocumentBackedFileItem
public DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc) -
DocumentBackedFileItem
public DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint) -
DocumentBackedFileItem
public DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) -
DocumentBackedFileItem
protected DocumentBackedFileItem()
-
-
Method Details
-
rename
- Specified by:
renamein interfaceFileSystemItem
-
getBlob
-
getDownloadURL
- Specified by:
getDownloadURLin interfaceFileItem
-
getDigestAlgorithm
- Specified by:
getDigestAlgorithmin interfaceFileItem
-
getDigest
-
getOldDigest
- Specified by:
getOldDigestin interfaceFileItem
-
getCanUpdate
public boolean getCanUpdate()- Specified by:
getCanUpdatein interfaceFileItem
-
getSize
public long getSize() -
setBlob
-
equals
- Overrides:
equalsin classAbstractDocumentBackedFileSystemItem
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractDocumentBackedFileSystemItem
-
initialize
-
getBlobHolder
-
getBlob
-
getBlob
-
getFileName
-
updateDocTitleIfNeeded
-
updateDownloadURL
protected void updateDownloadURL() -
updateDigest
-
updateSize
- Since:
- 11.1
-
getNuxeoDriveManager
-
setDownloadURL
-
setDigestAlgorithm
-
setDigest
-
setOldDigest
-
setCanUpdate
protected void setCanUpdate(boolean canUpdate) -
setSize
protected void setSize(long size) - Since:
- 11.1
-