Class PermissionFromUserJson
- java.lang.Object
-
- com.blackberry.workspaces.api.sdk.json.BaseJson
-
- com.blackberry.workspaces.api.sdk.json.PermissionFromUserJson
-
- All Implemented Interfaces:
Serializable
public class PermissionFromUserJson extends BaseJson
A permission from a user- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionFromUserJson()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
getComment()
Deprecated.boolean
getCopy()
Deprecated.Integer
getDefaultExpirationDays()
The Amount of days to have files available for workspace default permissions.boolean
getDownload()
Deprecated.boolean
getDownloadOriginal()
Deprecated.boolean
getEdit()
Deprecated.Date
getExpirationDate()
Expiration date for permissions.boolean
getNeverExpires()
Deprecated.boolean
getPrint()
Deprecated.boolean
getProgAccess()
Deprecated.boolean
getSpotlight()
Deprecated.boolean
getWatermark()
Deprecated.boolean
isComment()
Is comment allowed.boolean
isCopy()
Flag indicating that copying the file is allowed.boolean
isDownload()
boolean
isDownloadOriginal()
Flag indicating that downloading original file is allowed.boolean
isEdit()
Flag indicating that editing the file is allowed.boolean
isNeverExpires()
True if this never expires, False if notboolean
isPrint()
Flag indicating that printing the file is allowed.boolean
isProgAccess()
Is programmatic access allowed.boolean
isSpotlight()
Flag indicating the spotlight is on.boolean
isWatermark()
Flag indicating the watermark is on.void
setComment(boolean comment)
Is comment allowed.void
setCopy(boolean copy)
Flag indicating that copying the file is allowed.void
setDefaultExpirationDays(Integer defaultExpirationDays)
The Amount of days to have files available for workspace default permissions.void
setDownload(boolean download)
void
setDownloadOriginal(boolean downloadOriginal)
Flag indicating that downloading original file is allowed.void
setEdit(boolean edit)
Flag indicating that editing the file is allowed.void
setExpirationDate(Date expirationDate)
Expiration date for permissions.void
setNeverExpires(boolean neverExpires)
True if this never expires, False if notvoid
setPrint(boolean print)
Flag indicating that printing the file is allowed.void
setProgAccess(boolean progAccess)
Is programmatic access allowed.void
setSpotlight(boolean spotlight)
Flag indicating the spotlight is on.void
setWatermark(boolean watermark)
Flag indicating the watermark is on.-
Methods inherited from class com.blackberry.workspaces.api.sdk.json.BaseJson
getObjType, setObjType, toString
-
-
-
-
Method Detail
-
isDownloadOriginal
public boolean isDownloadOriginal()
Flag indicating that downloading original file is allowed.- Returns:
- Flag indicating that downloading original file is allowed.
-
getDownloadOriginal
@Deprecated public boolean getDownloadOriginal()
Deprecated.Flag indicating that downloading original file is allowed.- Returns:
- Flag indicating that downloading original file is allowed.
-
setDownloadOriginal
public void setDownloadOriginal(boolean downloadOriginal)
Flag indicating that downloading original file is allowed.- Parameters:
downloadOriginal
- Flag indicating that downloading original file is allowed.
-
isWatermark
public boolean isWatermark()
Flag indicating the watermark is on.- Returns:
- Flag indicating the watermark is on.
-
getWatermark
@Deprecated public boolean getWatermark()
Deprecated.Flag indicating the watermark is on.- Returns:
- Flag indicating the watermark is on.
-
setWatermark
public void setWatermark(boolean watermark)
Flag indicating the watermark is on.- Parameters:
watermark
- Flag indicating the watermark is on.
-
getDefaultExpirationDays
public Integer getDefaultExpirationDays()
The Amount of days to have files available for workspace default permissions. You may decide that files uploaded will only be available for a certain amount of days after their upload, to this entity.- Returns:
- The Amount of days to have files available for workspace default permissions. You may decide that files uploaded will only be available for a certain amount of days after their upload, to this entity.
-
setDefaultExpirationDays
public void setDefaultExpirationDays(Integer defaultExpirationDays)
The Amount of days to have files available for workspace default permissions. You may decide that files uploaded will only be available for a certain amount of days after their upload, to this entity.- Parameters:
defaultExpirationDays
- The Amount of days to have files available for workspace default permissions. You may decide that files uploaded will only be available for a certain amount of days after their upload, to this entity.
-
isEdit
public boolean isEdit()
Flag indicating that editing the file is allowed.- Returns:
- Flag indicating that editing the file is allowed.
-
getEdit
@Deprecated public boolean getEdit()
Deprecated.Flag indicating that editing the file is allowed.- Returns:
- Flag indicating that editing the file is allowed.
-
setEdit
public void setEdit(boolean edit)
Flag indicating that editing the file is allowed.- Parameters:
edit
- Flag indicating that editing the file is allowed.
-
isPrint
public boolean isPrint()
Flag indicating that printing the file is allowed.- Returns:
- Flag indicating that printing the file is allowed.
-
getPrint
@Deprecated public boolean getPrint()
Deprecated.Flag indicating that printing the file is allowed.- Returns:
- Flag indicating that printing the file is allowed.
-
setPrint
public void setPrint(boolean print)
Flag indicating that printing the file is allowed.- Parameters:
print
- Flag indicating that printing the file is allowed.
-
isDownload
public boolean isDownload()
-
getDownload
@Deprecated public boolean getDownload()
Deprecated.
-
setDownload
public void setDownload(boolean download)
-
isProgAccess
public boolean isProgAccess()
Is programmatic access allowed.- Returns:
- Is programmatic access allowed.
-
getProgAccess
@Deprecated public boolean getProgAccess()
Deprecated.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.
-
isNeverExpires
public boolean isNeverExpires()
True if this never expires, False if not- Returns:
- True if this never expires, False if not
-
getNeverExpires
@Deprecated public boolean getNeverExpires()
Deprecated.True if this never expires, False if not- Returns:
- True if this never expires, False if not
-
setNeverExpires
public void setNeverExpires(boolean neverExpires)
True if this never expires, False if not- Parameters:
neverExpires
- True if this never expires, False if not
-
isComment
public boolean isComment()
Is comment allowed.- Returns:
- Is comment allowed.
-
getComment
@Deprecated public boolean getComment()
Deprecated.Is comment allowed.- Returns:
- Is comment allowed.
-
setComment
public void setComment(boolean comment)
Is comment allowed.- Parameters:
comment
- Is comment allowed.
-
isCopy
public boolean isCopy()
Flag indicating that copying the file is allowed.- Returns:
- Flag indicating that copying the file is allowed.
-
getCopy
@Deprecated public boolean getCopy()
Deprecated.Flag indicating that copying the file is allowed.- Returns:
- Flag indicating that copying the file is allowed.
-
setCopy
public void setCopy(boolean copy)
Flag indicating that copying the file is allowed.- Parameters:
copy
- Flag indicating that copying the file is allowed.
-
isSpotlight
public boolean isSpotlight()
Flag indicating the spotlight is on.- Returns:
- Flag indicating the spotlight is on.
-
getSpotlight
@Deprecated public boolean getSpotlight()
Deprecated.Flag indicating the spotlight is on.- Returns:
- Flag indicating the spotlight is on.
-
setSpotlight
public void setSpotlight(boolean spotlight)
Flag indicating the spotlight is on.- Parameters:
spotlight
- Flag indicating the spotlight is on.
-
getExpirationDate
public Date getExpirationDate()
Expiration date for permissions.- Returns:
- Expiration date for permissions.
-
setExpirationDate
public void setExpirationDate(Date expirationDate)
Expiration date for permissions.- Parameters:
expirationDate
- Expiration date for permissions.
-
-