| Permission {sevenbridges2} | R Documentation |
R6 Class representing member's permissions
Description
R6 Class representing member's permissions.
Super class
sevenbridges2::Item -> Permission
Public fields
writeWrite permission.
readRead permission.
copyCopy permission.
executeExecute permission.
adminAdmin permission.
Methods
Public methods
Method new()
Create a new Permission object.
Usage
Permission$new( read = TRUE, copy = FALSE, write = FALSE, execute = FALSE, admin = FALSE, ... )
Arguments
readUser can view file names, metadata, and workflows. They cannot view file contents. All members of a project have read permissions by default. Even if you try setting read permissions to
FALSE, they will still default toTRUEcopyUser can view file content, copy, and download files from a project. Set value to
TRUEto assign the user copy permission. Set toFALSEto remove copy permission.writeUser can add, modify, and remove files and workflows in a project. Set value to
TRUEto assign the user write permission. Set toFALSEto remove write permission.executeUser can execute workflows and abort tasks in a project. Set value to
TRUEto assign the user execute permission. Set toFALSEto remove execute permission.adminUser can modify another user's permissions on a project, add or remove people from the project and manage funding sources. They also have all of the above permissions. Set value to
TRUEto assign the user admin permission. Set toFALSEto remove admin permission....Other response arguments.
Method print()
Print method for Permission class.
Usage
Permission$print()
Examples
\dontrun{
# x is API response when permission is requested
permission_object <- Permission$new(
write = x$write,
read = x$read,
copy = x$copy,
execute = x$execute,
admin = x$admin,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print permission object
permission_object$print()
}
Method reload()
Reload Permission object information.
Usage
Permission$reload()
Examples
\dontrun{
# x is API response when permission is requested
permission_object <- Permission$new(
write = x$write,
read = x$read,
copy = x$copy,
execute = x$execute,
admin = x$admin,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload permission object
permission_object$reload()
}
Method clone()
The objects of this class are cloneable with this method.
Usage
Permission$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
## ------------------------------------------------
## Method `Permission$print`
## ------------------------------------------------
## Not run:
# x is API response when permission is requested
permission_object <- Permission$new(
write = x$write,
read = x$read,
copy = x$copy,
execute = x$execute,
admin = x$admin,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Print permission object
permission_object$print()
## End(Not run)
## ------------------------------------------------
## Method `Permission$reload`
## ------------------------------------------------
## Not run:
# x is API response when permission is requested
permission_object <- Permission$new(
write = x$write,
read = x$read,
copy = x$copy,
execute = x$execute,
admin = x$admin,
href = x$href,
auth = auth,
response = attr(x, "response")
)
# Reload permission object
permission_object$reload()
## End(Not run)