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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected static final Stringprotected StringBackingDocumentModelattributesFields 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
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractDocumentBackedFileSystemItem(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint) protectedAbstractDocumentBackedFileSystemItem(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) protectedAbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc) protectedAbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc, boolean relaxSyncRootConstraint) protectedAbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc, boolean relaxSyncRootConstraint, boolean getLockInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanMove(FolderItem dest) protected final Stringvoiddelete()booleanprotected StringgetDocId()protected Stringprotected DocumentModelgetDocument(CoreSession session) protected DocumentModelgetDocumentById(String docId, CoreSession session) protected Stringprotected TrashServiceprotected booleanhandleCollectionMember(DocumentModel doc, CoreSession session, boolean relaxSyncRootConstraint, boolean getLockInfo) inthashCode()move(FolderItem dest) protected String[]protected voidprotected voidMethods 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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.drive.adapter.FileSystemItem
rename
-
Field Details
-
PERMISSION_CHECK_OPTIMIZED_PROPERTY
- See Also:
-
repositoryName
BackingDocumentModelattributes -
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:
equalsin classAbstractFileSystemItem
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractFileSystemItem
-
computeId
-
getRepositoryName
-
getDocId
-
getDocPath
-
getDocument
-
getDocumentById
-
updateLastModificationDate
-
getTrashService
-
parseFileSystemId
-
setId
- Overrides:
setIdin classAbstractFileSystemItem
-