Package org.nuxeo.drive.adapter.impl
Class AbstractFileSystemItem
java.lang.Object
org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
- All Implemented Interfaces:
Comparable<FileSystemItem>,FileSystemItem
- Direct Known Subclasses:
AbstractDocumentBackedFileSystemItem,AbstractVirtualFolderItem,SimpleFileSystemItem
Base class for
FileSystemItem implementations.- Author:
- Antoine Taillefer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected Calendarprotected Stringprotected StringInternal attributesstatic final Stringstatic final Stringprotected booleanprotected StringFileSystemItemattributesprotected Stringprotected Calendarprotected Lockprotected Stringprotected Stringprotected Stringprotected NuxeoPrincipalprotected StringNeeded for JSON serialization/deserialization since we don't serialize the principal -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractFileSystemItem(String factoryName, NuxeoPrincipal principal, boolean relaxSyncRootConstraint) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FileSystemItem other) booleanbooleanbooleanprotected FileSystemItemAdapterServicegetId()Gets a unique id generated server-side.getName()Gets the name displayed in the file system.Gets the parentFileSystemItemid.getPath()A concatenation of ancestor ids with '/' as prefix and separator.inthashCode()booleanisFolder()protected voidsetCanDelete(boolean canDelete) protected voidsetCanRename(boolean canRename) protected voidsetCreationDate(Calendar creationDate) protected voidsetCreator(String creator) protected voidsetFolder(boolean isFolder) protected voidprotected voidsetLastContributor(String lastContributor) protected voidsetLastModificationDate(Calendar lastModificationDate) protected voidsetLockInfo(Lock lockInfo) protected voidprotected voidsetParentId(String parentId) protected voidprotected voidsetUserName(String userName) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.drive.adapter.FileSystemItem
canMove, delete, move, rename
-
Field Details
-
FILE_SYSTEM_ITEM_ID_SEPARATOR
- See Also:
-
FILE_SYSTEM_ITEM_PATH_SEPARATOR
- See Also:
-
id
FileSystemItemattributes -
parentId
-
name
-
folder
protected boolean folder -
creator
-
lastContributor
-
creationDate
-
lastModificationDate
-
canRename
protected boolean canRename -
canDelete
protected boolean canDelete -
lockInfo
-
factoryName
Internal attributes -
path
-
principal
-
userName
Needed for JSON serialization/deserialization since we don't serialize the principal
-
-
Constructor Details
-
AbstractFileSystemItem
protected AbstractFileSystemItem(String factoryName, NuxeoPrincipal principal, boolean relaxSyncRootConstraint) -
AbstractFileSystemItem
protected AbstractFileSystemItem()
-
-
Method Details
-
getId
Description copied from interface:FileSystemItemGets a unique id generated server-side.- Specified by:
getIdin interfaceFileSystemItem
-
getPath
Description copied from interface:FileSystemItemA concatenation of ancestor ids with '/' as prefix and separator.- Specified by:
getPathin interfaceFileSystemItem
-
getParentId
Description copied from interface:FileSystemItemGets the parentFileSystemItemid.- Specified by:
getParentIdin interfaceFileSystemItem
-
getName
Description copied from interface:FileSystemItemGets the name displayed in the file system.- Specified by:
getNamein interfaceFileSystemItem
-
isFolder
public boolean isFolder()- Specified by:
isFolderin interfaceFileSystemItem
-
getCreator
- Specified by:
getCreatorin interfaceFileSystemItem
-
getLastContributor
- Specified by:
getLastContributorin interfaceFileSystemItem
-
getCreationDate
- Specified by:
getCreationDatein interfaceFileSystemItem
-
getLastModificationDate
- Specified by:
getLastModificationDatein interfaceFileSystemItem
-
getCanRename
public boolean getCanRename()- Specified by:
getCanRenamein interfaceFileSystemItem
-
getCanDelete
public boolean getCanDelete()- Specified by:
getCanDeletein interfaceFileSystemItem
-
getLockInfo
- Specified by:
getLockInfoin interfaceFileSystemItem
-
getUserName
-
compareTo
- Specified by:
compareToin interfaceComparable<FileSystemItem>
-
equals
-
hashCode
public int hashCode() -
toString
-
getFileSystemItemAdapterService
-
setId
-
setPath
-
setParentId
-
setName
-
setFolder
protected void setFolder(boolean isFolder) -
setCreator
-
setLastContributor
-
setCreationDate
-
setLastModificationDate
-
setCanRename
protected void setCanRename(boolean canRename) -
setCanDelete
protected void setCanDelete(boolean canDelete) -
setLockInfo
-
setUserName
-