public abstract class AbstractFileSystemItem extends Object implements FileSystemItem
FileSystemItem
implementations.AbstractDocumentBackedFileSystemItem
,
DefaultTopLevelFolderItem
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
FILE_SYSTEM_ITEM_ID_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canMove(FolderItem dest) |
int |
compareTo(FileSystemItem other) |
abstract void |
delete() |
boolean |
equals(Object obj) |
boolean |
getCanDelete() |
boolean |
getCanRename() |
Calendar |
getCreationDate() |
String |
getCreator() |
String |
getId()
Gets a unique id generated server-side.
|
String |
getLastContributor() |
Calendar |
getLastModificationDate() |
String |
getName()
Gets the name displayed in the file system.
|
String |
getParentId()
Gets the parent
FileSystemItem id. |
String |
getPath()
A concatenation of ancestor ids with '/' as prefix and separator.
|
String |
getUserName() |
int |
hashCode() |
boolean |
isFolder() |
abstract FileSystemItem |
move(FolderItem dest) |
abstract void |
rename(String name) |
String |
toString() |
public static final String FILE_SYSTEM_ITEM_ID_SEPARATOR
public abstract void rename(String name) throws ClientException
rename
in interface FileSystemItem
ClientException
public abstract void delete() throws ClientException
delete
in interface FileSystemItem
ClientException
public abstract boolean canMove(FolderItem dest) throws ClientException
canMove
in interface FileSystemItem
ClientException
public abstract FileSystemItem move(FolderItem dest) throws ClientException
move
in interface FileSystemItem
ClientException
public String getId()
FileSystemItem
getId
in interface FileSystemItem
public String getPath()
FileSystemItem
getPath
in interface FileSystemItem
public String getParentId()
FileSystemItem
FileSystemItem
id.getParentId
in interface FileSystemItem
public String getName()
FileSystemItem
getName
in interface FileSystemItem
public boolean isFolder()
isFolder
in interface FileSystemItem
public String getCreator()
getCreator
in interface FileSystemItem
public String getLastContributor()
getLastContributor
in interface FileSystemItem
public Calendar getCreationDate()
getCreationDate
in interface FileSystemItem
public Calendar getLastModificationDate()
getLastModificationDate
in interface FileSystemItem
public boolean getCanRename()
getCanRename
in interface FileSystemItem
public boolean getCanDelete()
getCanDelete
in interface FileSystemItem
public String getUserName()
public int compareTo(FileSystemItem other)
compareTo
in interface Comparable<FileSystemItem>
Copyright © 2015 Nuxeo SA. All rights reserved.