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 boolean
canMove(FolderItem dest)
void
delete()
boolean
getCanDelete()
boolean
getCanRename()
Calendar
getCreationDate()
String
getCreator()
String
getId()
Gets a unique id generated server-side.String
getLastContributor()
Calendar
getLastModificationDate()
Lock
getLockInfo()
String
getName()
Gets the name displayed in the file system.String
getParentId()
Gets the parentFileSystemItem
id.String
getPath()
A concatenation of ancestor ids with '/' as prefix and separator.boolean
isFolder()
FileSystemItem
move(FolderItem dest)
void
rename(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 parentFileSystemItem
id.
-
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)
-
-