| GNPrivConfiguration {geonapi} | R Documentation | 
A GeoNetwork privilege configuration
Description
This class is an utility to configure privileges
This class is an utility to configure privileges
Format
R6Class object.
R6Class object.
Details
GeoNetwork REST API - GeoNetwork privilege configuration
GeoNetwork REST API - GeoNetwork privilege configuration
Value
Object of R6Class for modelling a GeoNetwork Privilege configuration
Object of R6Class for modelling a GeoNetwork Privilege configuration
Public fields
- group
- group 
- privileges
- privileges 
Methods
Public methods
Method new()
Initializes a GNPriv object
Usage
GNPriv$new(group, privileges)
Arguments
- group
- group 
- privileges
- privileges 
Method clone()
The objects of this class are cloneable with this method.
Usage
GNPriv$clone(deep = FALSE)
Arguments
- deep
- Whether to make a deep clone. 
Public fields
- privileges
- privileges 
Methods
Public methods
Method new()
Initializes an object of class GNPrivConfiguration
Usage
GNPrivConfiguration$new()
Method 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".
Usage
GNPrivConfiguration$setPrivileges(group, privileges)
Arguments
- group
- group 
- privileges
- privileges 
Method clone()
The objects of this class are cloneable with this method.
Usage
GNPrivConfiguration$clone(deep = FALSE)
Arguments
- deep
- Whether to make a deep clone. 
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Examples
## 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)