Package org.nuxeo.drive.adapter
Interface FileSystemItem
-
- All Superinterfaces:
Comparable<FileSystemItem>
- All Known Subinterfaces:
FileItem,FolderItem
- All Known Implementing Classes:
AbstractDocumentBackedFileSystemItem,AbstractFileSystemItem,AbstractVirtualFolderItem,CollectionSyncRootFolderItem,DefaultSyncRootFolderItem,DefaultTopLevelFolderItem,DocumentBackedFileItem,DocumentBackedFolderItem,ESSyncRootFolderItem,PermissionTopLevelFolderItem,SharedSyncRootParentFolderItem,SimpleFileSystemItem,UserSyncRootParentFolderItem,UserWorkspaceSyncRootParentFolderItem,UserWorkspaceTopLevelFolderItem
public interface FileSystemItem extends Comparable<FileSystemItem>
Representation of a file system item, typically a file or a folder.- Author:
- Antoine Taillefer
- See Also:
AbstractFileSystemItem,AbstractDocumentBackedFileSystemItem,FileItem,FolderItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanMove(FolderItem dest)voiddelete()booleangetCanDelete()booleangetCanRename()CalendargetCreationDate()StringgetCreator()StringgetId()Gets a unique id generated server-side.StringgetLastContributor()CalendargetLastModificationDate()LockgetLockInfo()StringgetName()Gets the name displayed in the file system.StringgetParentId()Gets the parentFileSystemItemid.StringgetPath()A concatenation of ancestor ids with '/' as prefix and separator.booleanisFolder()FileSystemItemmove(FolderItem dest)voidrename(String name)-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getId
String getId()
Gets a unique id generated server-side.
-
getParentId
String getParentId()
Gets the parentFileSystemItemid.
-
getPath
String getPath()
A concatenation of ancestor ids with '/' as prefix and separator.
-
getName
String getName()
Gets the name displayed in the file system.
-
isFolder
boolean isFolder()
-
getCreator
String getCreator()
-
getLastContributor
String getLastContributor()
-
getCreationDate
Calendar getCreationDate()
-
getLastModificationDate
Calendar getLastModificationDate()
-
getCanRename
boolean getCanRename()
-
rename
void rename(String name)
-
getCanDelete
boolean getCanDelete()
-
delete
void delete()
-
getLockInfo
Lock getLockInfo()
-
canMove
boolean canMove(FolderItem dest)
-
move
FileSystemItem move(FolderItem dest)
-
-