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, wait
canMove, delete, move, rename
public 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()
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 Lock getLockInfo()
getLockInfo
in interface FileSystemItem
public 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.