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
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected Calendar
protected String
protected String
Internal attributesstatic final String
static final String
protected boolean
protected String
FileSystemItem
attributesprotected String
protected Calendar
protected Lock
protected String
protected String
protected String
protected NuxeoPrincipal
protected String
Needed for JSON serialization/deserialization since we don't serialize the principal -
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AbstractFileSystemItem
(String factoryName, NuxeoPrincipal principal, boolean relaxSyncRootConstraint) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(FileSystemItem other) boolean
boolean
boolean
protected FileSystemItemAdapterService
getId()
Gets a unique id generated server-side.getName()
Gets the name displayed in the file system.Gets the parentFileSystemItem
id.getPath()
A concatenation of ancestor ids with '/' as prefix and separator.int
hashCode()
boolean
isFolder()
protected void
setCanDelete
(boolean canDelete) protected void
setCanRename
(boolean canRename) protected void
setCreationDate
(Calendar creationDate) protected void
setCreator
(String creator) protected void
setFolder
(boolean isFolder) protected void
protected void
setLastContributor
(String lastContributor) protected void
setLastModificationDate
(Calendar lastModificationDate) protected void
setLockInfo
(Lock lockInfo) protected void
protected void
setParentId
(String parentId) protected void
protected void
setUserName
(String userName) 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
canMove, delete, move, rename
-
Field Details
-
FILE_SYSTEM_ITEM_ID_SEPARATOR
- See Also:
-
FILE_SYSTEM_ITEM_PATH_SEPARATOR
- See Also:
-
id
FileSystemItem
attributes -
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:FileSystemItem
Gets a unique id generated server-side.- Specified by:
getId
in interfaceFileSystemItem
-
getPath
Description copied from interface:FileSystemItem
A concatenation of ancestor ids with '/' as prefix and separator.- Specified by:
getPath
in interfaceFileSystemItem
-
getParentId
Description copied from interface:FileSystemItem
Gets the parentFileSystemItem
id.- Specified by:
getParentId
in interfaceFileSystemItem
-
getName
Description copied from interface:FileSystemItem
Gets the name displayed in the file system.- Specified by:
getName
in interfaceFileSystemItem
-
isFolder
public boolean isFolder()- Specified by:
isFolder
in interfaceFileSystemItem
-
getCreator
- Specified by:
getCreator
in interfaceFileSystemItem
-
getLastContributor
- Specified by:
getLastContributor
in interfaceFileSystemItem
-
getCreationDate
- Specified by:
getCreationDate
in interfaceFileSystemItem
-
getLastModificationDate
- Specified by:
getLastModificationDate
in interfaceFileSystemItem
-
getCanRename
public boolean getCanRename()- Specified by:
getCanRename
in interfaceFileSystemItem
-
getCanDelete
public boolean getCanDelete()- Specified by:
getCanDelete
in interfaceFileSystemItem
-
getLockInfo
- Specified by:
getLockInfo
in interfaceFileSystemItem
-
getUserName
-
compareTo
- Specified by:
compareTo
in 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
-