GSWorkspaceManager | R Documentation |
Geoserver REST API Workspace Manager
Geoserver REST API Workspace Manager
R6Class
object.
Object of R6Class
with methods for managing the workspaces
of a GeoServer instance.
geosapi::GSManager
-> GSWorkspaceManager
geosapi::GSManager$ERROR()
geosapi::GSManager$INFO()
geosapi::GSManager$WARN()
geosapi::GSManager$connect()
geosapi::GSManager$getClassName()
geosapi::GSManager$getCoverageStoreManager()
geosapi::GSManager$getDataStoreManager()
geosapi::GSManager$getNamespaceManager()
geosapi::GSManager$getServiceManager()
geosapi::GSManager$getStyleManager()
geosapi::GSManager$getSystemStatus()
geosapi::GSManager$getUrl()
geosapi::GSManager$getWorkspaceManager()
geosapi::GSManager$initialize()
geosapi::GSManager$logger()
geosapi::GSManager$monitor()
geosapi::GSManager$reload()
getWorkspaces()
Get the list of available workspace. Returns an object of class list
containing items of class GSWorkspace
GSWorkspaceManager$getWorkspaces()
a
list of GSWorkspace
getWorkspaceNames()
Get the list of available workspace names. Returns an vector of class character
GSWorkspaceManager$getWorkspaceNames()
a list of workspace names
getWorkspace()
Get a GSWorkspace
object given a workspace name.
GSWorkspaceManager$getWorkspace(ws)
ws
workspace name
an object of class GSWorkspace
createWorkspace()
Creates a GeoServer workspace given a name, and an optional URI. If the URI
is not specified, GeoServer will automatically create an associated Namespace
with the URI built from the workspace name. If the URI is specified, the method
invokes the method createNamespace(ns, uri)
of the GSNamespaceManager
.
Returns TRUE
if the workspace has been successfully created, FALSE
otherwise
GSWorkspaceManager$createWorkspace(name, uri)
name
name
uri
uri
TRUE
if created, FALSE
otherwise
updateWorkspace()
Updates a GeoServer workspace given a name, and an optional URI. If the URI
is not specified, GeoServer will automatically update the associated Namespace
with the URI built from the workspace name. If the URI is specified, the method
invokes the method updateNamespace(ns, uri)
of the GSNamespaceManager
.
Returns TRUE
if the workspace has been successfully updated, FALSE
otherwise
GSWorkspaceManager$updateWorkspace(name, uri)
name
name
uri
uri
TRUE
if created, FALSE
otherwise
deleteWorkspace()
Deletes a GeoServer workspace given a name.
GSWorkspaceManager$deleteWorkspace(name, recurse = FALSE)
name
name
recurse
recurse
TRUE
if the workspace has been successfully deleted, FALSE
otherwise
getWorkspaceSettings()
Updates workspace settings
GSWorkspaceManager$getWorkspaceSettings(ws)
ws
workspace name
an object of class GSWorkspaceSettings
createWorkspaceSettings()
Creates workspace settings
GSWorkspaceManager$createWorkspaceSettings(ws, workspaceSettings)
ws
workspace name
workspaceSettings
object of class GSWorkspaceSettings
TRUE
if created, FALSE
otherwise
updateWorkspaceSettings()
Updates workspace settings
GSWorkspaceManager$updateWorkspaceSettings(ws, workspaceSettings)
ws
workspace name
workspaceSettings
object of class GSWorkspaceSettings
TRUE
if updated, FALSE
otherwise
deleteWorkspaceSettings()
Deletes workspace settings
GSWorkspaceManager$deleteWorkspaceSettings(ws)
ws
workspace name
TRUE
if deleted, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSWorkspaceManager$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
GSWorkspaceManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.