public abstract class AbstractFileSystemItem extends Object implements FileSystemItem
FileSystemItem implementations.AbstractDocumentBackedFileSystemItem,
DefaultTopLevelFolderItem,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected boolean |
canDelete |
protected boolean |
canRename |
protected Calendar |
creationDate |
protected String |
creator |
protected String |
factoryName
Internal attributes
|
static String |
FILE_SYSTEM_ITEM_ID_SEPARATOR |
protected boolean |
folder |
protected String |
id
FileSystemItem attributes |
protected String |
lastContributor |
protected Calendar |
lastModificationDate |
protected Lock |
lockInfo |
protected String |
name |
protected String |
parentId |
protected String |
path |
protected Principal |
principal |
protected String |
userName
Needed for JSON serialization/deserialization since we don't serialize the principal
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileSystemItem() |
protected |
AbstractFileSystemItem(String factoryName,
Principal principal,
boolean relaxSyncRootConstraint) |
| 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() |
protected FileSystemItemAdapterService |
getFileSystemItemAdapterService() |
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 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) |
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 |
setId(String id) |
protected void |
setLastContributor(String lastContributor) |
protected void |
setLastModificationDate(Calendar lastModificationDate) |
protected void |
setLockInfo(Lock lockInfo) |
protected void |
setName(String name) |
protected void |
setParentId(String parentId) |
protected void |
setPath(String path) |
protected void |
setUserName(String userName) |
String |
toString() |
public static final String FILE_SYSTEM_ITEM_ID_SEPARATOR
protected String id
FileSystemItem attributesprotected boolean folder
protected String lastContributor
protected Calendar creationDate
protected Calendar lastModificationDate
protected boolean canRename
protected boolean canDelete
protected String factoryName
protected AbstractFileSystemItem(String factoryName, Principal principal, boolean relaxSyncRootConstraint)
protected AbstractFileSystemItem()
public abstract void rename(String name)
rename in interface FileSystemItempublic abstract void delete()
delete in interface FileSystemItempublic abstract boolean canMove(FolderItem dest)
canMove in interface FileSystemItempublic abstract FileSystemItem move(FolderItem dest)
move in interface FileSystemItempublic String getId()
FileSystemItemgetId in interface FileSystemItempublic String getPath()
FileSystemItemgetPath in interface FileSystemItempublic String getParentId()
FileSystemItemFileSystemItem id.getParentId in interface FileSystemItempublic String getName()
FileSystemItemgetName in interface FileSystemItempublic boolean isFolder()
isFolder in interface FileSystemItempublic String getCreator()
getCreator in interface FileSystemItempublic String getLastContributor()
getLastContributor in interface FileSystemItempublic Calendar getCreationDate()
getCreationDate in interface FileSystemItempublic Calendar getLastModificationDate()
getLastModificationDate in interface FileSystemItempublic boolean getCanRename()
getCanRename in interface FileSystemItempublic boolean getCanDelete()
getCanDelete in interface FileSystemItempublic Lock getLockInfo()
getLockInfo in interface FileSystemItempublic String getUserName()
public int compareTo(FileSystemItem other)
compareTo in interface Comparable<FileSystemItem>protected FileSystemItemAdapterService getFileSystemItemAdapterService()
protected void setParentId(String parentId)
protected void setFolder(boolean isFolder)
protected void setCreator(String creator)
protected void setLastContributor(String lastContributor)
protected void setCreationDate(Calendar creationDate)
protected void setLastModificationDate(Calendar lastModificationDate)
protected void setCanRename(boolean canRename)
protected void setCanDelete(boolean canDelete)
protected void setLockInfo(Lock lockInfo)
protected void setUserName(String userName)
Copyright © 2017 Nuxeo. All rights reserved.