public abstract class AbstractFileSystemItem extends Object implements FileSystemItem
FileSystemItem
implementations.AbstractDocumentBackedFileSystemItem
,
DefaultTopLevelFolderItem
,
Serialized FormModifier 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 FileSystemItem
public abstract void delete()
delete
in interface FileSystemItem
public abstract boolean canMove(FolderItem dest)
canMove
in interface FileSystemItem
public abstract FileSystemItem move(FolderItem dest)
move
in interface FileSystemItem
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 © 2018 Nuxeo. All rights reserved.