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
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected String
protected String
protected FileSystemItemFactory
protected String
protected long
Fields inherited from class org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
docId, docPath, docTitle, PERMISSION_CHECK_OPTIMIZED_PROPERTY, repositoryName
Fields 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
ModifierConstructorDescriptionprotected
DocumentBackedFileItem
(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 TypeMethodDescriptionboolean
getBlob()
protected Blob
getBlob
(BlobHolder blobHolder) protected Blob
getBlob
(DocumentModel doc) protected BlobHolder
boolean
protected String
getFileName
(Blob blob, String docTitle) protected NuxeoDriveManager
long
getSize()
int
hashCode()
protected final void
initialize
(FileSystemItemFactory factory, DocumentModel doc) void
void
protected void
setCanUpdate
(boolean canUpdate) protected void
protected void
setDigestAlgorithm
(String digestAlgorithm) protected void
setDownloadURL
(String downloadURL) void
setOldDigest
(String oldDigest) protected void
setSize
(long size) protected void
updateDigest
(Blob blob) protected void
updateDocTitleIfNeeded
(DocumentModel doc, String name) protected void
protected void
updateSize
(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, updateLastModificationDate
Methods 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, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods 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:
rename
in interfaceFileSystemItem
-
getBlob
-
getDownloadURL
- Specified by:
getDownloadURL
in interfaceFileItem
-
getDigestAlgorithm
- Specified by:
getDigestAlgorithm
in interfaceFileItem
-
getDigest
-
getOldDigest
- Specified by:
getOldDigest
in interfaceFileItem
-
getCanUpdate
public boolean getCanUpdate()- Specified by:
getCanUpdate
in interfaceFileItem
-
getSize
public long getSize() -
setBlob
-
equals
- Overrides:
equals
in classAbstractDocumentBackedFileSystemItem
-
hashCode
public int hashCode()- Overrides:
hashCode
in 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
-