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
DocumentModel
backed implementation of aFileSystemItem
.- Author:
- Antoine Taillefer
- See Also:
DocumentBackedFileItem
,DocumentBackedFolderItem
-
-
Field Summary
Fields Modifier and Type Field Description protected String
docId
protected String
docPath
protected String
docTitle
protected static String
PERMISSION_CHECK_OPTIMIZED_PROPERTY
protected String
repositoryName
BackingDocumentModel
attributes-
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 protected
AbstractDocumentBackedFileSystemItem()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canMove(FolderItem dest)
protected String
computeId(String docId)
void
delete()
boolean
equals(Object obj)
protected String
getDocId()
protected String
getDocPath()
protected DocumentModel
getDocument(CoreSession session)
protected DocumentModel
getDocumentById(String docId, CoreSession session)
protected String
getRepositoryName()
protected TrashService
getTrashService()
protected boolean
handleCollectionMember(DocumentModel doc, CoreSession session, boolean relaxSyncRootConstraint, boolean getLockInfo)
int
hashCode()
FileSystemItem
move(FolderItem dest)
protected String[]
parseFileSystemId(String id)
protected void
setId(String id)
protected void
updateLastModificationDate(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
BackingDocumentModel
attributes
-
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:
equals
in classAbstractFileSystemItem
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
setId
in classAbstractFileSystemItem
-
-