public class LinkSettings extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static LinkSettings |
create(FssApiVersion apiVersion,
java.lang.Boolean readEnabled,
java.lang.Boolean publicReadEnabled,
java.lang.Boolean uploadEnabled,
java.lang.Boolean publicUploadEnabled,
java.lang.Boolean editEnabled,
java.lang.Boolean sharingDefaultPublic,
int defaultDaysToShare,
int maxDaysToShare,
java.lang.Boolean allowLinksWithoutExpiration,
java.lang.Boolean requireAccessCodeOnAllLinks,
java.lang.Boolean requireAccessCodeOnPublicLinks)
Returns a versioned LinkSettings that is compatible with the specified apiVersion.
|
static java.lang.Class<? extends LinkSettings> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the LinkSettings that corresponds to the specified
apiVersion. |
int |
getMaxSharingDays()
Returns the maximum number of days a link can remain active.
|
int |
getSharingDefaultDays()
Returns the default number of days before a link expires.
|
java.lang.Boolean |
isAccessCodeOnAllLinksRequired()
Returns whether or not the server mandates that all links have access codes
|
java.lang.Boolean |
isAccessCodeOnPublicLinksRequired()
Returns whether or not the server mandates that public links have access codes
|
java.lang.Boolean |
isAllowLinksWithoutExpiration()
Returns whether links are allowed to be created without an expiration
|
java.lang.Boolean |
isEditEnabled()
Returns whether or not edit links are enabled on the server.
|
java.lang.Boolean |
isPublicReadEnabled()
Returns whether or not the server allows links to be shared publicly.
|
java.lang.Boolean |
isPublicSharingEnabled()
Returns whether or not the server allows links to be shared publicly.
|
java.lang.Boolean |
isPublicUploadEnabled()
Returns whether or not public upload links are enabled on the server.
|
java.lang.Boolean |
isReadEnabled()
Returns whether or not sharing is enabled on the server.
|
java.lang.Boolean |
isSharingEnabled()
Returns whether or not sharing is enabled on the server.
|
java.lang.Boolean |
isSharingPublicByDefault()
Returns whether or not the server is configured to share links publicly by default.
|
java.lang.Boolean |
isUploadEnabled()
Returns whether or not upload links are enabled on the server.
|
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 LinkSettings> getFssApiClass(FssApiVersion apiVersion)
Class of the LinkSettings that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the LinkSettings that corresponds to the specified
apiVersionpublic static LinkSettings create(FssApiVersion apiVersion, java.lang.Boolean readEnabled, java.lang.Boolean publicReadEnabled, java.lang.Boolean uploadEnabled, java.lang.Boolean publicUploadEnabled, java.lang.Boolean editEnabled, java.lang.Boolean sharingDefaultPublic, int defaultDaysToShare, int maxDaysToShare, java.lang.Boolean allowLinksWithoutExpiration, java.lang.Boolean requireAccessCodeOnAllLinks, java.lang.Boolean requireAccessCodeOnPublicLinks) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the LinkSettingsreadEnabled - whether sharing has been enabledpublicReadEnabled - whether public sharing has been enableduploadEnabled - whether upload links have been enabledpublicUploadEnabled - whether public upload links have been enablededitEnabled - whether edit links for Microsoft Office files have been enabledsharingDefaultPublic - defaultDaysToShare - maxDaysToShare - allowLinksWithoutExpiration - requireAccessCodeOnAllLinks - requireAccessCodeOnPublicLinks - AwUnsupportedApiVersionExceptionpublic java.lang.Boolean isReadEnabled()
public java.lang.Boolean isPublicReadEnabled()
public java.lang.Boolean isUploadEnabled()
public java.lang.Boolean isPublicUploadEnabled()
public java.lang.Boolean isEditEnabled()
public java.lang.Boolean isSharingPublicByDefault()
public int getSharingDefaultDays()
public int getMaxSharingDays()
public java.lang.Boolean isAllowLinksWithoutExpiration()
public java.lang.Boolean isSharingEnabled()
public java.lang.Boolean isPublicSharingEnabled()
public java.lang.Boolean isAccessCodeOnAllLinksRequired()
public java.lang.Boolean isAccessCodeOnPublicLinksRequired()
protected void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
BaseFssApiResourceBaseFssApiResource.validateRequiredField(String, BaseFssApiResource, String) for foo, and
BaseFssApiResource.validateOptionalField(String, BaseFssApiResource) for bar.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 occur