Class PermissionsToUserJson
- java.lang.Object
-
- com.blackberry.workspaces.sdk.api.json.BaseJson
-
- com.blackberry.workspaces.sdk.api.json.PermissionsToUserJson
-
- All Implemented Interfaces:
Serializable
public class PermissionsToUserJson extends BaseJson
Permissions to a user- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionsToUserJson()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessLevel
getAccessLevel()
Internal flag, do not send it with your request.Boolean
getComment()
Is comment on.Boolean
getCopy()
Is copy allowed.Integer
getDefaultExpirationDays()
The Amount of days to have files available for VDR default permissions.Boolean
getDownload()
Is download protected allowed.Boolean
getDownloadOriginal()
Is download original allowed.Boolean
getEdit()
Is edit allowed.Date
getExpirationDate()
Expiration date of the permission set (default: 1 month) (JSON format)Date
getLatestChangeDate()
Date of latest changeDate
getMinExpirationDate()
Minimum expiration dateBoolean
getNeverExpires()
Never expiresBoolean
getOriginalComments()
The original value of comment permissionBoolean
getPrint()
Is print allowed.Boolean
getProgAccess()
Is programmatic access allowed.Boolean
getSpotlight()
Is spotlight on.Boolean
getWatermark()
Is watermark on.boolean
isPinRequired()
Requires pin in order to viewvoid
setAccessLevel(AccessLevel accessLevel)
Internal flag, do not send it with your request.void
setComment(Boolean comment)
Is comment on.void
setCopy(Boolean copy)
Is copy allowed.void
setDefaultExpirationDays(Integer defaultExpirationDays)
The Amount of days to have files available for VDR default permissions.void
setDownload(Boolean download)
Is download protected allowed.void
setDownloadOriginal(Boolean downloadOriginal)
Is download original allowed.void
setEdit(Boolean edit)
Is edit allowed.void
setExpirationDate(Date expirationDate)
Expiration date of the permission set (default: 1 month) (JSON format)void
setLatestChangeDate(Date latestChangeDate)
Date of latest changevoid
setMinExpirationDate(Date minExpirationDate)
Minimum expiration datevoid
setNeverExpires(Boolean neverExpires)
Never expiresvoid
setOriginalComments(Boolean originalComments)
The original value of comment permissionvoid
setPinRequired(boolean pinRequired)
Requires pin in order to viewvoid
setPrint(Boolean print)
Is print allowed.void
setProgAccess(Boolean progAccess)
Is programmatic access allowed.void
setSpotlight(Boolean spotlight)
Is spotlight on.void
setWatermark(Boolean watermark)
Is watermark on.-
Methods inherited from class com.blackberry.workspaces.sdk.api.json.BaseJson
getObjType, setObjType, toString
-
-
-
-
Method Detail
-
getLatestChangeDate
public Date getLatestChangeDate()
Date of latest change- Returns:
- Date of latest change
-
setLatestChangeDate
public void setLatestChangeDate(Date latestChangeDate)
Date of latest change- Parameters:
latestChangeDate
- Date of latest change
-
getWatermark
public Boolean getWatermark()
Is watermark on.- Returns:
- Is watermark on.
-
setWatermark
public void setWatermark(Boolean watermark)
Is watermark on.- Parameters:
watermark
- Is watermark on.
-
getDownloadOriginal
public Boolean getDownloadOriginal()
Is download original allowed.- Returns:
- Is download original allowed.
-
setDownloadOriginal
public void setDownloadOriginal(Boolean downloadOriginal)
Is download original allowed.- Parameters:
downloadOriginal
- Is download original allowed.
-
getDefaultExpirationDays
public Integer getDefaultExpirationDays()
The Amount of days to have files available for VDR default permissions. In the context of VDR default permissions, giving a specific expiration date for default permissions is not supported. However you may decide that files uploaded will only be available for a certain amount of days after their upload.- Returns:
- The Amount of days to have files available for VDR default permissions. In the context of VDR default permissions, giving a specific expiration date for default permissions is not supported. However you may decide that files uploaded will only be available for a certain amount of days after their upload.
-
setDefaultExpirationDays
public void setDefaultExpirationDays(Integer defaultExpirationDays)
The Amount of days to have files available for VDR default permissions. In the context of VDR default permissions, giving a specific expiration date for default permissions is not supported. However you may decide that files uploaded will only be available for a certain amount of days after their upload.- Parameters:
defaultExpirationDays
- The Amount of days to have files available for VDR default permissions. In the context of VDR default permissions, giving a specific expiration date for default permissions is not supported. However you may decide that files uploaded will only be available for a certain amount of days after their upload.
-
getAccessLevel
public AccessLevel getAccessLevel()
Internal flag, do not send it with your request.- Returns:
- Internal flag, do not send it with your request.
-
setAccessLevel
public void setAccessLevel(AccessLevel accessLevel)
Internal flag, do not send it with your request.- Parameters:
accessLevel
- Internal flag, do not send it with your request.
-
getEdit
public Boolean getEdit()
Is edit allowed.- Returns:
- Is edit allowed.
-
setEdit
public void setEdit(Boolean edit)
Is edit allowed.- Parameters:
edit
- Is edit allowed.
-
getOriginalComments
public Boolean getOriginalComments()
The original value of comment permission- Returns:
- The original value of comment permission
-
setOriginalComments
public void setOriginalComments(Boolean originalComments)
The original value of comment permission- Parameters:
originalComments
- The original value of comment permission
-
getDownload
public Boolean getDownload()
Is download protected allowed.- Returns:
- Is download protected allowed.
-
setDownload
public void setDownload(Boolean download)
Is download protected allowed.- Parameters:
download
- Is download protected allowed.
-
getPrint
public Boolean getPrint()
Is print allowed.- Returns:
- Is print allowed.
-
setPrint
public void setPrint(Boolean print)
Is print allowed.- Parameters:
print
- Is print allowed.
-
isPinRequired
public boolean isPinRequired()
Requires pin in order to view- Returns:
- Requires pin in order to view
-
setPinRequired
public void setPinRequired(boolean pinRequired)
Requires pin in order to view- Parameters:
pinRequired
- Requires pin in order to view
-
getProgAccess
public Boolean getProgAccess()
Is programmatic access allowed.- Returns:
- Is programmatic access allowed.
-
setProgAccess
public void setProgAccess(Boolean progAccess)
Is programmatic access allowed.- Parameters:
progAccess
- Is programmatic access allowed.
-
getNeverExpires
public Boolean getNeverExpires()
Never expires- Returns:
- Never expires
-
setNeverExpires
public void setNeverExpires(Boolean neverExpires)
Never expires- Parameters:
neverExpires
- Never expires
-
getMinExpirationDate
public Date getMinExpirationDate()
Minimum expiration date- Returns:
- Minimum expiration date
-
setMinExpirationDate
public void setMinExpirationDate(Date minExpirationDate)
Minimum expiration date- Parameters:
minExpirationDate
- Minimum expiration date
-
getComment
public Boolean getComment()
Is comment on.- Returns:
- Is comment on.
-
setComment
public void setComment(Boolean comment)
Is comment on.- Parameters:
comment
- Is comment on.
-
getCopy
public Boolean getCopy()
Is copy allowed.- Returns:
- Is copy allowed.
-
setCopy
public void setCopy(Boolean copy)
Is copy allowed.- Parameters:
copy
- Is copy allowed.
-
getSpotlight
public Boolean getSpotlight()
Is spotlight on.- Returns:
- Is spotlight on.
-
setSpotlight
public void setSpotlight(Boolean spotlight)
Is spotlight on.- Parameters:
spotlight
- Is spotlight on.
-
getExpirationDate
public Date getExpirationDate()
Expiration date of the permission set (default: 1 month) (JSON format)- Returns:
- Expiration date of the permission set (default: 1 month) (JSON format)
-
setExpirationDate
public void setExpirationDate(Date expirationDate)
Expiration date of the permission set (default: 1 month) (JSON format)- Parameters:
expirationDate
- Expiration date of the permission set (default: 1 month) (JSON format)
-
-