public abstract class AbstractDocumentBackedFileSystemItem extends AbstractFileSystemItem
DocumentModel
backed implementation of a FileSystemItem
.DocumentBackedFileItem
,
DocumentBackedFolderItem
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected String |
docId |
protected String |
docPath |
protected String |
docTitle |
protected String |
repositoryName
Backing
DocumentModel attributes |
canDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, folder, id, lastContributor, lastModificationDate, name, parentId, path, principal, userName
Modifier | Constructor and Description |
---|---|
protected |
AbstractDocumentBackedFileSystemItem() |
protected |
AbstractDocumentBackedFileSystemItem(String factoryName,
DocumentModel doc) |
protected |
AbstractDocumentBackedFileSystemItem(String factoryName,
DocumentModel doc,
boolean relaxSyncRootConstraint) |
protected |
AbstractDocumentBackedFileSystemItem(String factoryName,
FolderItem parentItem,
DocumentModel doc,
boolean relaxSyncRootConstraint) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMove(FolderItem dest) |
protected String |
computeId(String docId) |
void |
delete() |
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) |
FileSystemItem |
move(FolderItem dest) |
protected String[] |
parseFileSystemId(String id) |
protected void |
setId(String id) |
protected void |
updateLastModificationDate(DocumentModel doc) |
compareTo, equals, getCanDelete, getCanRename, getCreationDate, getCreator, getFileSystemItemAdapterService, getId, getLastContributor, getLastModificationDate, getName, getParentId, getPath, getUserName, hashCode, isFolder, rename, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setLastContributor, setLastModificationDate, setName, setParentId, setPath, setUserName, toString
protected String repositoryName
DocumentModel
attributesprotected AbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc)
protected AbstractDocumentBackedFileSystemItem(String factoryName, DocumentModel doc, boolean relaxSyncRootConstraint)
protected AbstractDocumentBackedFileSystemItem(String factoryName, FolderItem parentItem, DocumentModel doc, boolean relaxSyncRootConstraint)
protected AbstractDocumentBackedFileSystemItem()
protected boolean handleCollectionMember(DocumentModel doc, CoreSession session, boolean relaxSyncRootConstraint)
public void delete()
delete
in interface FileSystemItem
delete
in class AbstractFileSystemItem
public boolean canMove(FolderItem dest)
canMove
in interface FileSystemItem
canMove
in class AbstractFileSystemItem
public FileSystemItem move(FolderItem dest)
move
in interface FileSystemItem
move
in class AbstractFileSystemItem
protected String getRepositoryName()
protected String getDocPath()
protected DocumentModel getDocument(CoreSession session)
protected DocumentModel getDocumentById(String docId, CoreSession session)
protected void updateLastModificationDate(DocumentModel doc)
protected TrashService getTrashService()
protected void setId(String id)
setId
in class AbstractFileSystemItem
protected String[] parseFileSystemId(String id)
Copyright © 2015 Nuxeo SA. All rights reserved.