Geoserver REST API Workspace Manager
Geoserver REST API Workspace Manager
Object of R6Class with methods for managing the workspaces
of a GeoServer instance.
R6Class object.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
geosapi::GSManager -> GSWorkspaceManager
Inherited methods
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()alist 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)wsworkspace 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)namename
uriuri
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)namename
uriuri
TRUE if created, FALSE otherwise
deleteWorkspace()Deletes a GeoServer workspace given a name.
GSWorkspaceManager$deleteWorkspace(name, recurse = FALSE)namename
recurserecurse
TRUE if the workspace has been successfully deleted, FALSE otherwise
getWorkspaceSettings()Updates workspace settings
GSWorkspaceManager$getWorkspaceSettings(ws)wsworkspace name
an object of class GSWorkspaceSettings
createWorkspaceSettings()Creates workspace settings
GSWorkspaceManager$createWorkspaceSettings(ws, workspaceSettings)wsworkspace name
workspaceSettingsobject of class GSWorkspaceSettings
TRUE if created, FALSE otherwise
updateWorkspaceSettings()Updates workspace settings
GSWorkspaceManager$updateWorkspaceSettings(ws, workspaceSettings)wsworkspace name
workspaceSettingsobject of class GSWorkspaceSettings
TRUE if updated, FALSE otherwise
deleteWorkspaceSettings()Deletes workspace settings
GSWorkspaceManager$deleteWorkspaceSettings(ws)wsworkspace name
TRUE if deleted, FALSE otherwise
clone()The objects of this class are cloneable with this method.
GSWorkspaceManager$clone(deep = FALSE)deepWhether to make a deep clone.
if (FALSE) {
GSWorkspaceManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
}
Run the code above in your browser using DataLab