geonode.services.serviceprocessors.base

Remote service handling base classes and helpers.

Attributes

catalog

logger

Classes

ServiceHandlerBase

Base class for remote service handlers

CascadableServiceHandlerMixin

Functions

get_geoserver_cascading_workspace([create])

Return the geoserver workspace used for cascaded services

Module Contents

geonode.services.serviceprocessors.base.catalog = None[source]
geonode.services.serviceprocessors.base.logger[source]
geonode.services.serviceprocessors.base.get_geoserver_cascading_workspace(create=True)[source]

Return the geoserver workspace used for cascaded services The workspace can be created it if needed.

class geonode.services.serviceprocessors.base.ServiceHandlerBase(url, geonode_service_id=None)[source]

Bases: object

Base class for remote service handlers

This class is not to be instantiated directly, but rather subclassed by concrete implementations. The method stubs defined here must be implemented in derived classes.

url = None[source]
name = None[source]
service_type = None[source]
indexing_method = None[source]
geonode_service_id = None[source]
property is_cascaded[source]
probe()[source]
get_harvester_configuration_options()[source]
abstract create_geonode_service(owner, parent=None)[source]

Create a new geonode.service.models.Service instance Saving the service instance in the database is not a concern of this method, it only deals with creating the instance.

Parameters:

owner (geonode.people.models.Profile) – The user who will own the service instance

has_resources()[source]
has_unharvested_resources(geonode_service)[source]
abstract get_keywords()[source]
get_resource(resource_id)[source]

Return a single resource’s representation.

get_resources()[source]

Return an iterable with the service’s resources.

harvest_resource(resource_id, geonode_service)[source]

Harvest a single resource from the service This method creates new geonode.layers.models.Dataset instances (and their related objects too) and save them in the database.

Parameters:
class geonode.services.serviceprocessors.base.CascadableServiceHandlerMixin[source]
abstract create_cascaded_store(service)[source]