Index BlackBerry Workspaces SDK
BlackBerry Workspaces JSON
VdrAddPermissions
Add permissions to an entity
Parameters
Name Type Description

documentGuids

Set(String)

Not null
Default value: new HashSet<>()

List of file guids

emailMessage

String

Text of email

emailSubject

String

Subject line for notification email

folderGuids

Set(String)

Not null
Default value: new HashSet<>()

List of folder guids

folderIds

Set(Integer)

Not null
Default value: new HashSet<>()

List of folder ids

folderPaths

Set(String)

Not null
Default value: new HashSet<>()

List of paths to folders

isSendMail

boolean

Flag indicating that a notification email should be sent to recipients

permissionSet

PermissionSet

Permissions for entity

permissionTemplate

PermissionsTemplateRequest

permittedEntities

List(PermittedEntityFromUser)

Required

List of Workspace Entities. Can be one of GROUP, USER, DOMAIN

Json Format
{
permittedEntities: List(
{
address: String,
entityType: EntityType
}),
permissionSet:
{
downloadOriginal: YesNoDefault,
downloadControlled: YesNoDefault,
copy: YesNoDefault,
print: YesNoDefault,
edit: YesNoDefault,
spotlight: YesNoDefault,
watermark: YesNoDefault,
expiration: ExpirationOptions,
expirationDate: Date,
programmaticAccess: YesNoDefault,
comment: YesNoDefault
},
permissionTemplate:
{
templateName: String,
waterMark: Boolean,
watermark: Boolean,
comment: Boolean,
expirationDate: Date
},
documentGuids: Set(String),
folderPaths: Set(String),
folderIds: Set(Integer),
folderGuids: Set(String),
isSendMail: Boolean,
emailSubject: String,
emailMessage: String
}