geonode.services.serviceprocessors.base
Remote service handling base classes and helpers.
Attributes
Classes
Base class for remote service handlers |
|
Functions
|
Return the geoserver workspace used for cascaded services |
Module Contents
- 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:
objectBase 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.
- 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
- harvest_resource(resource_id, geonode_service)[source]
Harvest a single resource from the service This method creates new
geonode.layers.models.Datasetinstances (and their related objects too) and save them in the database.- Parameters:
resource_id (str) – The resource’s identifier
geonode_service (geonode.services.models.Service) – The already saved service instance