Package org.nuxeo.drive.adapter.impl
Class AbstractDocumentBackedFileSystemItem
java.lang.Object
org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
org.nuxeo.drive.adapter.impl.AbstractDocumentBackedFileSystemItem
- All Implemented Interfaces:
Comparable<FileSystemItem>
,FileSystemItem
- Direct Known Subclasses:
DocumentBackedFileItem
,DocumentBackedFolderItem
DocumentModel
backed implementation of a FileSystemItem
.- Author:
- Antoine Taillefer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected static final String
protected String
BackingDocumentModel
attributesFields 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
protected
AbstractDocumentBackedFileSystemItem
(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint) protected
AbstractDocumentBackedFileSystemItem
(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) protected
AbstractDocumentBackedFileSystemItem
(String factoryName, DocumentModel doc) protected
AbstractDocumentBackedFileSystemItem
(String factoryName, DocumentModel doc, boolean relaxSyncRootConstraint) protected
AbstractDocumentBackedFileSystemItem
(String factoryName, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canMove
(FolderItem dest) protected final String
void
delete()
boolean
protected String
getDocId()
protected String
protected DocumentModel
getDocument
(CoreSession session) protected DocumentModel
getDocumentById
(String docId, CoreSession session) protected String
protected TrashService
protected boolean
handleCollectionMember
(DocumentModel doc, CoreSession session, boolean relaxSyncRootConstraint, boolean getLockInfo) int
hashCode()
move
(FolderItem dest) protected String[]
protected void
protected void
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 org.nuxeo.drive.adapter.FileSystemItem
rename
-
Field Details
-
PERMISSION_CHECK_OPTIMIZED_PROPERTY
- See Also:
-
repositoryName
BackingDocumentModel
attributes -
docId
-
docPath
-
docTitle
-
-
Constructor Details
-
AbstractDocumentBackedFileSystemItem
-
AbstractDocumentBackedFileSystemItem
protected AbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc, boolean relaxSyncRootConstraint) -
AbstractDocumentBackedFileSystemItem
protected AbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) -
AbstractDocumentBackedFileSystemItem
protected AbstractDocumentBackedFileSystemItem(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint) -
AbstractDocumentBackedFileSystemItem
protected AbstractDocumentBackedFileSystemItem(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) -
AbstractDocumentBackedFileSystemItem
protected AbstractDocumentBackedFileSystemItem()
-
-
Method Details
-
handleCollectionMember
protected boolean handleCollectionMember(DocumentModel doc, CoreSession session, boolean relaxSyncRootConstraint, boolean getLockInfo) -
delete
public void delete() -
canMove
-
move
-
equals
- Overrides:
equals
in classAbstractFileSystemItem
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractFileSystemItem
-
computeId
-
getRepositoryName
-
getDocId
-
getDocPath
-
getDocument
-
getDocumentById
-
updateLastModificationDate
-
getTrashService
-
parseFileSystemId
-
setId
- Overrides:
setId
in classAbstractFileSystemItem
-