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
public abstract class AbstractDocumentBackedFileSystemItem extends AbstractFileSystemItem
DocumentModelbacked implementation of aFileSystemItem.- Author:
- Antoine Taillefer
- See Also:
DocumentBackedFileItem,DocumentBackedFolderItem
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdocIdprotected StringdocPathprotected StringdocTitleprotected static StringPERMISSION_CHECK_OPTIMIZED_PROPERTYprotected StringrepositoryNameBackingDocumentModelattributes-
Fields 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
Constructors Modifier Constructor Description protectedAbstractDocumentBackedFileSystemItem()protectedAbstractDocumentBackedFileSystemItem(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanMove(FolderItem dest)protected StringcomputeId(String docId)voiddelete()booleanequals(Object obj)protected StringgetDocId()protected StringgetDocPath()protected DocumentModelgetDocument(CoreSession session)protected DocumentModelgetDocumentById(String docId, CoreSession session)protected StringgetRepositoryName()protected TrashServicegetTrashService()protected booleanhandleCollectionMember(DocumentModel doc, CoreSession session, boolean relaxSyncRootConstraint, boolean getLockInfo)inthashCode()FileSystemItemmove(FolderItem dest)protected String[]parseFileSystemId(String id)protected voidsetId(String id)protected voidupdateLastModificationDate(DocumentModel doc)-
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 Detail
-
PERMISSION_CHECK_OPTIMIZED_PROPERTY
protected static final String PERMISSION_CHECK_OPTIMIZED_PROPERTY
- See Also:
- Constant Field Values
-
repositoryName
protected String repositoryName
BackingDocumentModelattributes
-
docId
protected String docId
-
docPath
protected String docPath
-
docTitle
protected String docTitle
-
-
Constructor Detail
-
AbstractDocumentBackedFileSystemItem
protected AbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc)
-
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 Detail
-
handleCollectionMember
protected boolean handleCollectionMember(DocumentModel doc, CoreSession session, boolean relaxSyncRootConstraint, boolean getLockInfo)
-
delete
public void delete()
-
canMove
public boolean canMove(FolderItem dest)
-
move
public FileSystemItem move(FolderItem dest)
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classAbstractFileSystemItem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractFileSystemItem
-
getRepositoryName
protected String getRepositoryName()
-
getDocId
protected String getDocId()
-
getDocPath
protected String getDocPath()
-
getDocument
protected DocumentModel getDocument(CoreSession session)
-
getDocumentById
protected DocumentModel getDocumentById(String docId, CoreSession session)
-
updateLastModificationDate
protected void updateLastModificationDate(DocumentModel doc)
-
getTrashService
protected TrashService getTrashService()
-
setId
protected void setId(String id)
- Overrides:
setIdin classAbstractFileSystemItem
-
-