public abstract class Entry extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static Entry |
create(FssApiVersion apiVersion,
EntryType type,
java.lang.String parent,
java.lang.String name,
java.lang.String etag,
java.lang.Long changeTime,
java.lang.Long creationTime,
java.lang.Long size,
java.lang.String hash,
Access access,
EntryState state,
EntrySharingInfo sharing,
EntryBackupInfo backup,
java.lang.Long accessTime,
java.lang.Boolean worm,
java.lang.String uniqueId,
java.lang.String parentUniqueId)
Returns a versioned Entry that is compatible with the specified apiVersion.
|
boolean |
equals(java.lang.Object o) |
Access |
getAccess()
Returns the level of
access the user has to this
entry. |
java.lang.Long |
getAccessTime()
Returns the time that file was last accessed or the time that the retention will expire
|
EntryBackupInfo |
getBackup()
Returns backup information about the entry.
|
java.lang.Long |
getChangeTime()
Returns the time that the entry was created or last modified.
|
java.lang.Long |
getCreationTime()
Returns the time that the entry was created or last modified.
|
java.lang.String |
getEtag()
Returns the level of
access the user has to the
entry. |
static java.lang.Class<? extends Entry> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the Entry that corresponds to the specified
apiVersion. |
java.lang.String |
getHash()
Returns the SHA-384 hash of the entry, represented as a hex string.
|
java.lang.String |
getName()
Returns the name of the file or folder.
|
java.lang.String |
getParent()
Returns the path of the parent folder of this entry.
|
java.lang.String |
getParentUniqueId()
Returns parent uniqueId of file or folder.
|
EntrySharingInfo |
getSharing()
Returns sharing information about the entry.
|
java.lang.Long |
getSize()
Returns the size (in bytes) of the entry.
|
EntryState |
getState()
Returns the state of the entry.
|
EntryType |
getType()
Returns the Entry type (file or folder).
|
java.lang.String |
getUniqueId()
Returns uniqueId of an entry.
|
int |
hashCode() |
boolean |
isFolder()
Returns true if this entry is a folder; false otherwise.
|
java.lang.Boolean |
isWORM()
Returns whether or not the file is protected and cannot be modified.
|
void |
validate(java.lang.String fieldName,
BaseFssApiResource parent)
Validates this object.
|
badValue, badValue, fromJson, toJson, toJson, toString, validate, validateFieldInRange, validateFieldInRange, validateFieldIsNull, validateFieldNotNull, validateLocale, validateOptionalField, validateOptionalFieldList, validateRequiredField, validateRequiredFieldList, writeToOutputStreampublic static java.lang.Class<? extends Entry> getFssApiClass(FssApiVersion apiVersion)
Class of the Entry that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the entry that corresponds to the specified apiVersionpublic static Entry create(FssApiVersion apiVersion, EntryType type, java.lang.String parent, java.lang.String name, java.lang.String etag, java.lang.Long changeTime, java.lang.Long creationTime, java.lang.Long size, java.lang.String hash, Access access, EntryState state, EntrySharingInfo sharing, EntryBackupInfo backup, java.lang.Long accessTime, java.lang.Boolean worm, java.lang.String uniqueId, java.lang.String parentUniqueId) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the Entrytype - the Entry type (file or folder)parent - path of the parent folder of this entryname - name of the file or folder. This parameter should not include the parent path.etag - a string representing the current version of the file or folderchangeTime - time that the entry was created or last modifiedsize - size (in bytes) of the entry. This parameter is only applicable to files.hash - The SHA-384 hash of the entry, represented as a hex string. This parameter is
only applicable to files.access - level of access that the user has to
the entry (no access, viewer, collaborator)state - The state of the entry (CREATE, DELETE).sharing - Visible if the entry is shared; shows sharing information.backup - Visible if the entry is a backup folder; shows backup information.accessTime - Time that the entry was last accessedworm - Whether or not the file is protected and cannot be modified.AwUnsupportedApiVersionExceptionpublic EntryType getType()
public java.lang.String getParent()
public java.lang.String getName()
public java.lang.Long getCreationTime()
public java.lang.Long getChangeTime()
public java.lang.Long getSize()
public java.lang.String getHash()
public Access getAccess()
access the user has to this
entry.access the user has to this
entrypublic java.lang.String getEtag()
access the user has to the
entry.access the user has to the
entrypublic boolean isFolder()
public EntryState getState()
public EntrySharingInfo getSharing()
public EntryBackupInfo getBackup()
public java.lang.Long getAccessTime()
public java.lang.Boolean isWORM()
public java.lang.String getUniqueId()
public java.lang.String getParentUniqueId()
public void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
validate in class BaseFssApiResourcefieldName - name of this object in the parent (containing) object. If this object is a
top-level object (not contained within another object), then enter null for this
parameterparent - parent (containing) object that contains the object specified in the fieldName
parameter. If this object is a top-level object (not contained within another
object), then enter null for this parameterAwJsonException - if any validation errors occurBaseFssApiResource.validate(String, BaseFssApiResource)public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object