GNAbstractManager
GNAbstractManager
Format
R6Class
object.
Value
Object of R6Class
with methods for communication with
the REST API of a GeoNetwork instance.
Public fields
verbose.info
If package info log messages have to be printed out
verbose.debug
If curl debug log messages have to be printed out
loggerType
the type of logger
url
the Base url of GeoNetwork
version
the version of GeoNetwork. Handled as
GNVersion
objectlang
the language for Geonetwork service. Default is
eng
basicAuth
if basic auth is performed
Methods
Method 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)
Usage
GNAbstractManager$new(
url,
user = NULL,
pwd = NULL,
version,
logger = NULL,
keyring_backend = "env"
)
Method login()
Log-ins. This methods (here abstract) attempts a connection to GeoNetwork API. Used internally by subclasses of GNAbstractManager to login Geonetwork.