| GNAbstractManager | R Documentation |
GNAbstractManager
GNAbstractManager
R6Class object.
Object of R6Class with methods for communication with
the REST API of a GeoNetwork instance.
verbose.infoIf package info log messages have to be printed out
verbose.debugIf curl debug log messages have to be printed out
loggerTypethe type of logger
urlthe Base url of GeoNetwork
versionthe version of GeoNetwork. Handled as GNVersion object
langthe language for Geonetwork service. Default is eng
basicAuthif basic auth is performed
logger()Provides log messages
GNAbstractManager$logger(type, text)
typetype of log ("INFO", "WARN", "ERROR")
textthe log message text
INFO()Provides INFO log messages
GNAbstractManager$INFO(text)
textthe log message text
WARN()Provides WARN log messages
GNAbstractManager$WARN(text)
textthe log message text
ERROR()Provides ERROR log messages
GNAbstractManager$ERROR(text)
textthe log message text
new()This method is used to instantiate a GNAbstractManager with the url of the
GeoNetwork and credentials to authenticate (user/pwd). By default,
the logger argument will be set to NULL (no logger).
The keyring_backend can be set to use a different backend for storing
the Geonetwork password/token with keyring (Default value is 'env').
The logger can be either NULL, "INFO" (with minimum logs), or "DEBUG" (for complete curl http calls logs)
GNAbstractManager$new( url, user = NULL, pwd = NULL, version, logger = NULL, keyring_backend = "env" )
urlurl
useruser
pwdpwd
versionversion
loggerlogger
keyring_backendkeyring backend. Default is 'env'
getUrl()Get URL
GNAbstractManager$getUrl()
an object of class character
getLang()Get service language
GNAbstractManager$getLang()
an object of class character
login()Log-ins. This methods (here abstract) attempts a connection to GeoNetwork API. Used internally by subclasses of GNAbstractManager to login Geonetwork.
GNAbstractManager$login(user, pwd)
useruser
pwdpwd
getClassName()Get class name
GNAbstractManager$getClassName()
an object of class character
clone()The objects of this class are cloneable with this method.
GNAbstractManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.