Skip to contents

This class is an utility to configure privileges

This class is an utility to configure privileges

Format

R6Class object.

R6Class object.

Value

Object of R6Class for modelling a GeoNetwork Privilege configuration

Object of R6Class for modelling a GeoNetwork Privilege configuration

Details

GeoNetwork REST API - GeoNetwork privilege configuration

GeoNetwork REST API - GeoNetwork privilege configuration

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

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


Method new()

Initializes an object of class GNPrivConfiguration

Usage


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.

Examples

# \dontrun{
 priv <- GNPriv$new(group="all", privileges=c("view","dynamic","featured"))
# }

# \dontrun{
 pcfg <- GNPrivConfiguration$new()
 pcfg$setPrivileges("all", c("view","dynamic","featured"))
# }