public abstract class LinkMetadata extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static LinkMetadata |
create(FssApiVersion apiVersion,
java.lang.Boolean requiresAccessCode,
java.util.Set<LinkPermission> permission,
LinkType type,
java.lang.String contentType,
java.lang.Long size,
java.lang.String linkOwner,
java.lang.String name)
Returns a versioned LinkMetadata that is compatible with the specified apiVersion.
|
java.lang.String |
getContentType()
Returns the contentType of the link.
|
static java.lang.Class<? extends LinkMetadata> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the LinkMetadata that corresponds to the specified
apiVersion. |
java.lang.String |
getLinkOwner()
Gets the display name of the link's owner
|
java.util.Set<LinkPermission> |
getLinkPermissions()
Returns the
permissions allowed on this
link |
java.lang.String |
getName()
Gets the current name of the file or folder for the link
|
java.lang.Boolean |
getRequiresAccessCode()
Returns whether the link requires an access code.
|
java.lang.Long |
getSize()
Returns the size of the link.
|
LinkType |
getType()
Returns the type of object that the link points to (FILE, FOLDER, or BROKEN).
|
protected 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 LinkMetadata> getFssApiClass(FssApiVersion apiVersion)
Class of the LinkMetadata that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the LinkMetadata that corresponds to the specified
apiVersionpublic static LinkMetadata create(FssApiVersion apiVersion, java.lang.Boolean requiresAccessCode, java.util.Set<LinkPermission> permission, LinkType type, java.lang.String contentType, java.lang.Long size, java.lang.String linkOwner, java.lang.String name) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the LinkMetadatarequiresAccessCode - whether or not the link requires an access code.permission - the permissions for this link (read, write)type - the type of entry (FILE, FOLDER, BROKEN) the link points to.contentType - the content type of the entry (null if it is not a FILE type)AwUnsupportedApiVersionExceptionpublic java.lang.Boolean getRequiresAccessCode()
public LinkType getType()
public java.util.Set<LinkPermission> getLinkPermissions()
permissions allowed on this
linkpermissions allowed on this
linkpublic java.lang.String getContentType()
public java.lang.Long getSize()
public java.lang.String getLinkOwner()
public java.lang.String getName()
protected 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)