public abstract class AbstractFileSystemItem extends Object implements FileSystemItem
FileSystemItem implementations.AbstractDocumentBackedFileSystemItem,
DefaultTopLevelFolderItem| 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 |
static String |
FILE_SYSTEM_ITEM_PATH_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 NuxeoPrincipal |
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,
NuxeoPrincipal principal,
boolean relaxSyncRootConstraint) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(FileSystemItem other) |
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() |
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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcanMove, delete, move, renamepublic static final String FILE_SYSTEM_ITEM_ID_SEPARATOR
public static final String FILE_SYSTEM_ITEM_PATH_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 NuxeoPrincipal principal
protected AbstractFileSystemItem(String factoryName, NuxeoPrincipal principal, boolean relaxSyncRootConstraint)
protected AbstractFileSystemItem()
public 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 © 2019 Nuxeo. All rights reserved.