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 |
getCanDownload()
Gets whether or not the shared link can be downloaded.
|
boolean |
getCanPreview()
Gets whether or not the shared link can be previewed.
|
void |
setCanDownload(boolean enabled)
Sets whether or not the shared link can be downloaded.
|
void |
setCanPreview(boolean enabled)
Sets whether or not the shared link can be previewed.
|
clearPendingChanges, getPendingChanges, getPendingChangesAsJsonObjectpublic 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.