public abstract class ShareInvitation extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static ShareInvitation |
create(FssApiVersion apiVersion,
java.lang.String inviter,
java.lang.String fsId,
java.lang.Long size,
ShareRole role,
java.lang.String label,
boolean individual,
java.lang.String uniqueId)
Returns a versioned ShareInvitation that is compatible with the specified apiVersion.
|
java.lang.String |
getFilesystemId()
Returns the filesystem id of the share
|
static java.lang.Class<? extends ShareInvitation> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the ShareInvitation that corresponds to the specified
apiVersion. |
java.lang.String |
getInviter()
Returns the inviter.
|
java.lang.String |
getLabel()
Returns the label of the share
|
ShareRole |
getRole()
Returns the role of the user in the share
|
java.lang.Long |
getSize()
Returns the size of the share
|
java.lang.String |
getUniqueId()
Returns unique id of shared/team folder
|
boolean |
isIndividual()
Returns true if it's an individual invitation otherwise false
|
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 ShareInvitation> getFssApiClass(FssApiVersion apiVersion)
Class of the ShareInvitation that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the ShareInvitation that corresponds to the specified
apiVersionpublic static ShareInvitation create(FssApiVersion apiVersion, java.lang.String inviter, java.lang.String fsId, java.lang.Long size, ShareRole role, java.lang.String label, boolean individual, java.lang.String uniqueId) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the ShareInvitationinviter - the person who invited the user to the folderfsId - the id of the folder that the user is invited tosize - the size of the folder, in bytesrole - the role the user will be added to the share withindividual - true if it is an individual invitation, false otherwiseuniqueId - the unique id of the folder that the user is invited toAwUnsupportedApiVersionExceptionpublic java.lang.String getInviter()
public java.lang.String getFilesystemId()
public java.lang.Long getSize()
public ShareRole getRole()
public java.lang.String getLabel()
public boolean isIndividual()
public java.lang.String getUniqueId()
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)