public class DocumentBackedFileItem extends AbstractDocumentBackedFileSystemItem implements FileItem
DocumentModel backed implementation of a FileItem.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canUpdate |
protected String |
digest |
protected String |
digestAlgorithm |
protected String |
downloadURL |
protected VersioningFileSystemItemFactory |
factory |
docId, docPath, docTitle, repositoryNamecanDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, folder, id, lastContributor, lastModificationDate, name, parentId, path, principal, userName| Modifier | Constructor and Description |
|---|---|
protected |
DocumentBackedFileItem() |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
DocumentModel doc) |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
DocumentModel doc,
boolean relaxSyncRootConstraint) |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
FolderItem parentItem,
DocumentModel doc) |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
FolderItem parentItem,
DocumentModel doc,
boolean relaxSyncRootConstraint) |
| Modifier and Type | Method and Description |
|---|---|
Blob |
getBlob() |
protected Blob |
getBlob(BlobHolder blobHolder) |
protected Blob |
getBlob(DocumentModel doc) |
protected BlobHolder |
getBlobHolder(DocumentModel doc) |
boolean |
getCanUpdate() |
String |
getDigest() |
String |
getDigestAlgorithm() |
String |
getDownloadURL() |
protected String |
getFileName(Blob blob,
String docTitle) |
protected NuxeoDriveManager |
getNuxeoDriveManager() |
protected void |
initialize(VersioningFileSystemItemFactory factory,
DocumentModel doc) |
void |
rename(String name) |
void |
setBlob(Blob blob) |
protected void |
setCanUpdate(boolean canUpdate) |
protected void |
setDigest(String digest) |
protected void |
setDigestAlgorithm(String digestAlgorithm) |
protected void |
setDownloadURL(String downloadURL) |
protected void |
updateDigest(Blob blob) |
protected void |
updateDocTitleIfNeeded(DocumentModel doc,
String name) |
protected void |
updateDownloadURL() |
canMove, computeId, delete, getDocId, getDocPath, getDocument, getDocumentById, getRepositoryName, getTrashService, handleCollectionMember, move, parseFileSystemId, setId, updateLastModificationDatecompareTo, equals, getCanDelete, getCanRename, getCreationDate, getCreator, getFileSystemItemAdapterService, getId, getLastContributor, getLastModificationDate, getName, getParentId, getPath, getUserName, hashCode, isFolder, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setLastContributor, setLastModificationDate, setName, setParentId, setPath, setUserName, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanMove, delete, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getName, getParentId, getPath, isFolder, movecompareToprotected String downloadURL
protected String digestAlgorithm
protected boolean canUpdate
protected VersioningFileSystemItemFactory factory
public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, DocumentModel doc)
public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint)
public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc)
public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint)
protected DocumentBackedFileItem()
public void rename(String name)
rename in interface FileSystemItemrename in class AbstractFileSystemItempublic String getDownloadURL()
getDownloadURL in interface FileItempublic String getDigestAlgorithm()
getDigestAlgorithm in interface FileItempublic boolean getCanUpdate()
getCanUpdate in interface FileItemprotected final void initialize(VersioningFileSystemItemFactory factory, DocumentModel doc)
protected BlobHolder getBlobHolder(DocumentModel doc)
protected Blob getBlob(BlobHolder blobHolder)
protected Blob getBlob(DocumentModel doc)
protected String getFileName(Blob blob, String docTitle)
protected void updateDocTitleIfNeeded(DocumentModel doc, String name)
protected void updateDownloadURL()
protected void updateDigest(Blob blob)
protected NuxeoDriveManager getNuxeoDriveManager()
protected void setDownloadURL(String downloadURL)
protected void setDigestAlgorithm(String digestAlgorithm)
protected void setCanUpdate(boolean canUpdate)
Copyright © 2016 Nuxeo SA. All rights reserved.