cowbird.services.impl.geoserver

Module Contents

Classes

Geoserver

Keep Geoserver internal representation in sync with the platform.

Functions

create_workspace(self, name)

create_datastore(self, workspace_id, name)

class cowbird.services.impl.geoserver.Geoserver(name, url)[source]

Bases: cowbird.services.service.Service

Keep Geoserver internal representation in sync with the platform.

abstract get_resource_id(self, resource_full_name)[source]

Each service must provide this implementation required by the permission synchronizer.

The function needs to find the resource id in Magpie from the resource full name using its knowledge of the service. If the resource doesn’t already exist, the function needs to create it, again using its knowledge of resource type and parent resource type if required.

user_created(self, user_name)[source]
abstract user_deleted(self, user_name)[source]
abstract permission_created(self, permission)[source]
abstract permission_deleted(self, permission)[source]
create_workspace(self, name)[source]

Create a new Geoserver workspace.

@param self: Geoserver instance @param name: Workspace name @return: Workspace id

create_datastore(self, workspace_id, name)[source]

Create a new Geoserver workspace.

@param self: Geoserver instance @param workspace_id: Workspace id where the datastore must be created @param name: Datastore name @return: Datastore id

cowbird.services.impl.geoserver.create_workspace(self, name)[source]
cowbird.services.impl.geoserver.create_datastore(self, workspace_id, name)[source]