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 FileSystemItemFactory |
factory |
docId, docPath, docTitle, PERMISSION_CHECK_OPTIMIZED_PROPERTY, repositoryName
canDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, folder, id, lastContributor, lastModificationDate, lockInfo, name, parentId, path, principal, userName
Modifier | Constructor and Description |
---|---|
protected |
DocumentBackedFileItem() |
|
DocumentBackedFileItem(FileSystemItemFactory factory,
DocumentModel doc) |
|
DocumentBackedFileItem(FileSystemItemFactory factory,
DocumentModel doc,
boolean relaxSyncRootConstraint) |
|
DocumentBackedFileItem(FileSystemItemFactory factory,
DocumentModel doc,
boolean relaxSyncRootConstraint,
boolean getLockInfo) |
|
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(VersioningFileSystemItemFactory factory,
DocumentModel doc)
Deprecated.
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
drive level, the
VersioningFileSystemItemFactory is not used anymore |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
DocumentModel doc,
boolean relaxSyncRootConstraint)
Deprecated.
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
drive level, the
VersioningFileSystemItemFactory is not used anymore |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
DocumentModel doc,
boolean relaxSyncRootConstraint,
boolean getLockInfo)
Deprecated.
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
drive level, the
VersioningFileSystemItemFactory is not used anymore |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
FolderItem parentItem,
DocumentModel doc)
Deprecated.
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
drive level, the
VersioningFileSystemItemFactory is not used anymore |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
FolderItem parentItem,
DocumentModel doc,
boolean relaxSyncRootConstraint)
Deprecated.
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
drive level, the
VersioningFileSystemItemFactory is not used anymore |
|
DocumentBackedFileItem(VersioningFileSystemItemFactory factory,
FolderItem parentItem,
DocumentModel doc,
boolean relaxSyncRootConstraint,
boolean getLockInfo)
Deprecated.
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
drive level, the
VersioningFileSystemItemFactory is not used anymore |
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(FileSystemItemFactory factory,
DocumentModel doc) |
protected void |
initialize(VersioningFileSystemItemFactory factory,
DocumentModel doc)
Deprecated.
since 9.1 versioning policy is now handled at versioning service level, as versioning is removed at
drive level, the
VersioningFileSystemItemFactory is not used anymore |
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, getLockInfo, getName, getParentId, getPath, getUserName, hashCode, isFolder, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setLastContributor, setLastModificationDate, setLockInfo, setName, setParentId, setPath, setUserName, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canMove, delete, getCanDelete, getCanRename, getCreationDate, getCreator, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, isFolder, move
compareTo
protected String downloadURL
protected String digestAlgorithm
protected boolean canUpdate
protected FileSystemItemFactory factory
public DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc)
public DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint)
public DocumentBackedFileItem(FileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo)
public DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc)
public DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint)
public DocumentBackedFileItem(FileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo)
@Deprecated public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, DocumentModel doc)
VersioningFileSystemItemFactory
is not used anymore@Deprecated public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint)
VersioningFileSystemItemFactory
is not used anymore@Deprecated public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo)
VersioningFileSystemItemFactory
is not used anymore@Deprecated public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc)
VersioningFileSystemItemFactory
is not used anymore@Deprecated public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint)
VersioningFileSystemItemFactory
is not used anymore@Deprecated public DocumentBackedFileItem(VersioningFileSystemItemFactory factory, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo)
VersioningFileSystemItemFactory
is not used anymoreprotected 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
@Deprecated protected final void initialize(VersioningFileSystemItemFactory factory, DocumentModel doc)
VersioningFileSystemItemFactory
is not used anymoreprotected final void initialize(FileSystemItemFactory 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 © 2018 Nuxeo. All rights reserved.