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, repositoryName
canDelete, 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, updateLastModificationDate
compareTo, 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canMove, delete, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getName, getParentId, getPath, isFolder, move
compareTo
protected 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 FileSystemItem
rename
in class AbstractFileSystemItem
public String getDownloadURL()
getDownloadURL
in interface FileItem
public String getDigestAlgorithm()
getDigestAlgorithm
in interface FileItem
public boolean getCanUpdate()
getCanUpdate
in interface FileItem
protected 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.