public class LinkAccessEntry extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static LinkAccessEntry |
create(FssApiVersion apiVersion,
java.lang.String filename,
java.lang.String usernameOrIP,
java.lang.Boolean anonymous,
java.lang.Long size,
java.lang.Long timestamp,
int nanos,
java.lang.Short tsExtra)
Returns a versioned FileAccessEntry that is compatible with the specified apiVersion.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFilename()
Returns the name of the file
|
static java.lang.Class<? extends LinkAccessEntry> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the FileAccessEntry that corresponds to the specified
apiVersion. |
int |
getNanos()
Returns the nanoseconds associated with the file time
|
java.lang.Long |
getSize()
Returns the size of the version in string form
|
java.lang.Long |
getTimestamp()
Returns the time that the entry was read
|
java.lang.Short |
getTsExtra()
Returns the tsExtra value associated with the version
|
java.lang.String |
getUsernameOrIP()
Returns the name of the user or IP that read the file
|
int |
hashCode() |
java.lang.Boolean |
isAnonymous()
Returns whether the link was accessed anonymously
|
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 LinkAccessEntry> getFssApiClass(FssApiVersion apiVersion)
Class of the FileAccessEntry 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 LinkAccessEntry create(FssApiVersion apiVersion, java.lang.String filename, java.lang.String usernameOrIP, java.lang.Boolean anonymous, java.lang.Long size, java.lang.Long timestamp, int nanos, java.lang.Short tsExtra) throws AwUnsupportedApiVersionException
filename - Name of file that was readusernameOrIP - Name of user that read the fileanonymous - Whether the link was accessed anonymouslysize - size (in bytes) of the entry. This parameter is only applicable to files.timestamp - Time of the access event.nanos - Nanoseconds associated with the timestamptsExtra - Timestamp qualifierAwUnsupportedApiVersionException - The specified API
version is not supportedpublic java.lang.String getFilename()
public java.lang.String getUsernameOrIP()
public java.lang.Boolean isAnonymous()
public java.lang.Long getSize()
public java.lang.Long getTimestamp()
public int getNanos()
public java.lang.Short getTsExtra()
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