GNPrivConfiguration | R Documentation |
This class is an utility to configure privileges
This class is an utility to configure privileges
R6Class
object.
R6Class
object.
GeoNetwork REST API - GeoNetwork privilege configuration
GeoNetwork REST API - GeoNetwork privilege configuration
Object of R6Class
for modelling a GeoNetwork Privilege configuration
Object of R6Class
for modelling a GeoNetwork Privilege configuration
group
group
privileges
privileges
new()
Initializes a GNPriv object
GNPriv$new(group, privileges)
group
group
privileges
privileges
clone()
The objects of this class are cloneable with this method.
GNPriv$clone(deep = FALSE)
deep
Whether to make a deep clone.
privileges
privileges
new()
Initializes an object of class GNPrivConfiguration
GNPrivConfiguration$new()
setPrivileges()
Sets the operation privileges for a particular group. Allowed group values are "guest","intranet" and "all". Allowed values for operation privileges are "view", "download", "editing", "notify", "dynamic" and "featured".
GNPrivConfiguration$setPrivileges(group, privileges)
group
group
privileges
privileges
clone()
The objects of this class are cloneable with this method.
GNPrivConfiguration$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
priv <- GNPriv$new(group="all", privileges=c("view","dynamic","featured"))
## End(Not run)
## Not run:
pcfg <- GNPrivConfiguration$new()
pcfg$setPrivileges("all", c("view","dynamic","featured"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.