Package org.nuxeo.drive.adapter.impl
Class SimpleFileSystemItem
- java.lang.Object
-
- org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
-
- org.nuxeo.drive.adapter.impl.SimpleFileSystemItem
-
- All Implemented Interfaces:
Comparable<FileSystemItem>
,FileSystemItem
public class SimpleFileSystemItem extends AbstractFileSystemItem
Simple FileSystemItem just holding data, used for JSON deserialization.- Since:
- 9.10-HF01, 10.1
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
canCreateChild
protected boolean
canScrollDescendants
protected boolean
canUpdate
protected String
digest
protected String
digestAlgorithm
protected String
downloadURL
protected long
size
-
Fields inherited from class org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
canDelete, canRename, creationDate, creator, factoryName, FILE_SYSTEM_ITEM_ID_SEPARATOR, FILE_SYSTEM_ITEM_PATH_SEPARATOR, folder, id, lastContributor, lastModificationDate, lockInfo, name, parentId, path, principal, userName
-
-
Constructor Summary
Constructors Constructor Description SimpleFileSystemItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canMove(FolderItem dest)
void
delete()
boolean
equals(Object obj)
boolean
getCanCreateChild()
boolean
getCanScrollDescendants()
boolean
getCanUpdate()
String
getDigest()
String
getDigestAlgorithm()
String
getDownloadURL()
long
getSize()
int
hashCode()
FileSystemItem
move(FolderItem dest)
void
rename(String name)
void
setCanCreateChild(boolean canCreateChild)
void
setCanScrollDescendants(boolean canScrollDescendants)
void
setCanUpdate(boolean canUpdate)
void
setDigest(String digest)
void
setDigestAlgorithm(String digestAlgorithm)
void
setDownloadURL(String downloadURL)
void
setSize(long size)
-
Methods inherited from class org.nuxeo.drive.adapter.impl.AbstractFileSystemItem
compareTo, getCanDelete, getCanRename, getCreationDate, getCreator, getFileSystemItemAdapterService, getId, getLastContributor, getLastModificationDate, getLockInfo, getName, getParentId, getPath, getUserName, isFolder, setCanDelete, setCanRename, setCreationDate, setCreator, setFolder, setId, setLastContributor, setLastModificationDate, setLockInfo, setName, setParentId, setPath, setUserName, toString
-
-
-
-
Field Detail
-
downloadURL
protected String downloadURL
-
digestAlgorithm
protected String digestAlgorithm
-
digest
protected String digest
-
size
protected long size
- Since:
- 11.1
-
canUpdate
protected boolean canUpdate
-
canCreateChild
protected boolean canCreateChild
-
canScrollDescendants
protected boolean canScrollDescendants
-
-
Method Detail
-
getDownloadURL
public String getDownloadURL()
-
getDigestAlgorithm
public String getDigestAlgorithm()
-
getDigest
public String getDigest()
-
getSize
public long getSize()
- Since:
- 11.1
-
getCanUpdate
public boolean getCanUpdate()
-
getCanCreateChild
public boolean getCanCreateChild()
-
getCanScrollDescendants
public boolean getCanScrollDescendants()
-
setDownloadURL
public void setDownloadURL(String downloadURL)
-
setDigestAlgorithm
public void setDigestAlgorithm(String digestAlgorithm)
-
setDigest
public void setDigest(String digest)
-
setSize
public void setSize(long size)
- Since:
- 11.1
-
setCanUpdate
public void setCanUpdate(boolean canUpdate)
-
setCanCreateChild
public void setCanCreateChild(boolean canCreateChild)
-
setCanScrollDescendants
public void setCanScrollDescendants(boolean canScrollDescendants)
-
rename
public void rename(String name)
-
delete
public void delete()
-
canMove
public boolean canMove(FolderItem dest)
-
move
public FileSystemItem move(FolderItem dest)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classAbstractFileSystemItem
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractFileSystemItem
-
-