| Permission | R Documentation |
R6 Class representing member's permissions.
sevenbridges2::Item -> Permission
writeWrite permission.
readRead permission.
copyCopy permission.
executeExecute permission.
adminAdmin permission.
new()Create a new Permission object.
Permission$new( read = TRUE, copy = FALSE, write = FALSE, execute = FALSE, admin = FALSE, ... )
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 to TRUE.
copyUser can view file content, copy, and download files from a
project. Set value to TRUE to assign the user copy permission.
Set to FALSE to remove copy permission.
writeUser can add, modify, and remove files and workflows in a
project. Set value to TRUE to assign the user write permission.
Set to FALSE to remove write permission.
executeUser can execute workflows and abort tasks in a project.
Set value to TRUE to assign the user execute permission.
Set to FALSE to 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 TRUE to
assign the user admin permission. Set to FALSE to remove admin
permission.
...Other response arguments.
print()Print method for Permission class.
Permission$print()
\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()
}
reload()Reload Permission object information.
Permission$reload()
\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()
}
clone()The objects of this class are cloneable with this method.
Permission$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.