public static class BoxSharedLink.Permissions extends BoxJSONObject
Constructor and Description |
---|
Permissions()
Constructs a Permissions object with all permissions disabled.
|
Permissions(String json)
Constructs a Permissions object from a JSON string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
getCanDownload()
Gets whether the shared link can be downloaded.
|
boolean |
getCanEdit()
Gets whether the shared link allows for editing of files.
|
boolean |
getCanPreview()
Gets whether the shared link can be previewed.
|
int |
hashCode() |
void |
setCanDownload(boolean enabled)
Sets whether or not the shared link can be downloaded.
|
void |
setCanEdit(boolean enabled)
Sets whether the shared link allows for editing of files.
|
void |
setCanPreview(boolean enabled)
Sets whether the shared link can be previewed.
|
String |
toString() |
clearPendingChanges, getJson, getPendingChanges, getPendingChangesAsJsonObject, getPendingJSONObject
public Permissions()
public Permissions(String json)
json
- the JSON encoded shared link permissions.public boolean getCanDownload()
public void setCanDownload(boolean enabled)
enabled
- true if the shared link can be downloaded; otherwise false.public boolean getCanPreview()
public void setCanPreview(boolean enabled)
enabled
- true if the shared link can be previewed; otherwise false.public boolean getCanEdit()
public void setCanEdit(boolean enabled)
enabled
- true if the shared link allows for editing of files; otherwise false.