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 booleancanCreateChildprotected booleancanScrollDescendantsprotected booleancanUpdateprotected Stringdigestprotected StringdigestAlgorithmprotected StringdownloadURLprotected longsize-
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 booleancanMove(FolderItem dest)voiddelete()booleanequals(Object obj)booleangetCanCreateChild()booleangetCanScrollDescendants()booleangetCanUpdate()StringgetDigest()StringgetDigestAlgorithm()StringgetDownloadURL()longgetSize()inthashCode()FileSystemItemmove(FolderItem dest)voidrename(String name)voidsetCanCreateChild(boolean canCreateChild)voidsetCanScrollDescendants(boolean canScrollDescendants)voidsetCanUpdate(boolean canUpdate)voidsetDigest(String digest)voidsetDigestAlgorithm(String digestAlgorithm)voidsetDownloadURL(String downloadURL)voidsetSize(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:
equalsin classAbstractFileSystemItem
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractFileSystemItem
-
-