geonode.geoserver.security

Attributes

logger

Functions

delete_all_acl_rules()

purge all existing ACL Rules

delete_acl_rules_for_layer(instance)

Delete all rules for a given layer

invalidate_acl_cache()

invalidate ACL Cache Rules

toggle_dataset_cache(dataset_name[, enable, filters, ...])

Disable/enable a GeoServer Tiled Dataset Configuration

delete_dataset_cache(dataset_name)

Delete a GeoServer Tiled Dataset Configuration and all the cache

set_geowebcache_invalidate_cache(dataset_alternate[, cat])

invalidate GeoWebCache Cache Rules

allow_layer_to_all(instance)

assign access permissions to all users

create_acl_rules(layer, perms[, user, group, batch])

Collect ACL rules related to passed perms into a Batch.

sync_resources_with_guardian([resource, force])

Sync resources with Guardian and clear their dirty state

get_geolimits(layer, username, groupname)

has_geolimits(layer, user, group)

_get_acl_services(layer, perms)

geoserver_allows_wps_rules(→ bool)

_get_gwc_filters_and_formats(→ Tuple[list, list])

Module Contents

geonode.geoserver.security.logger[source]
geonode.geoserver.security.delete_all_acl_rules()[source]

purge all existing ACL Rules

geonode.geoserver.security.delete_acl_rules_for_layer(instance)[source]

Delete all rules for a given layer This function wraps the acl_util method, since it doesn’t know about Dataset model

geonode.geoserver.security.invalidate_acl_cache()[source]

invalidate ACL Cache Rules

geonode.geoserver.security.toggle_dataset_cache(dataset_name, enable=True, filters=None, formats=None)[source]

Disable/enable a GeoServer Tiled Dataset Configuration

geonode.geoserver.security.delete_dataset_cache(dataset_name)[source]

Delete a GeoServer Tiled Dataset Configuration and all the cache

geonode.geoserver.security.set_geowebcache_invalidate_cache(dataset_alternate, cat=None)[source]

invalidate GeoWebCache Cache Rules

geonode.geoserver.security.allow_layer_to_all(instance)[source]

assign access permissions to all users

This method is only relevant to Dataset instances that have their underlying data managed by geoserver, meaning:

  • layers that are not associated with a Service

  • layers that are associated with a Service that is being CASCADED through geoserver

geonode.geoserver.security.create_acl_rules(layer, perms, user=None, group=None, batch: geonode.geoserver.acl.acl_client.Batch = None)[source]

Collect ACL rules related to passed perms into a Batch. If the batch does not exist, it is created and returned.

geonode.geoserver.security.sync_resources_with_guardian(resource=None, force=False)[source]

Sync resources with Guardian and clear their dirty state

geonode.geoserver.security.get_geolimits(layer, username, groupname)[source]
geonode.geoserver.security.has_geolimits(layer, user, group)[source]
geonode.geoserver.security._get_acl_services(layer, perms)[source]
geonode.geoserver.security.geoserver_allows_wps_rules(ver: str) bool[source]
geonode.geoserver.security._get_gwc_filters_and_formats(disable_cache: bool) Tuple[list, list][source]