geonode.geoserver.security ========================== .. py:module:: geonode.geoserver.security Attributes ---------- .. autoapisummary:: geonode.geoserver.security.logger Functions --------- .. autoapisummary:: geonode.geoserver.security.delete_all_acl_rules geonode.geoserver.security.delete_acl_rules_for_layer geonode.geoserver.security.invalidate_acl_cache geonode.geoserver.security.toggle_dataset_cache geonode.geoserver.security.delete_dataset_cache geonode.geoserver.security.set_geowebcache_invalidate_cache geonode.geoserver.security.allow_layer_to_all geonode.geoserver.security.create_acl_rules geonode.geoserver.security.sync_resources_with_guardian geonode.geoserver.security.get_geolimits geonode.geoserver.security.has_geolimits geonode.geoserver.security._get_acl_services geonode.geoserver.security.geoserver_allows_wps_rules geonode.geoserver.security._get_gwc_filters_and_formats Module Contents --------------- .. py:data:: logger .. py:function:: delete_all_acl_rules() purge all existing ACL Rules .. py:function:: delete_acl_rules_for_layer(instance) Delete all rules for a given layer This function wraps the acl_util method, since it doesn't know about Dataset model .. py:function:: invalidate_acl_cache() invalidate ACL Cache Rules .. py:function:: toggle_dataset_cache(dataset_name, enable=True, filters=None, formats=None) Disable/enable a GeoServer Tiled Dataset Configuration .. py:function:: delete_dataset_cache(dataset_name) Delete a GeoServer Tiled Dataset Configuration and all the cache .. py:function:: set_geowebcache_invalidate_cache(dataset_alternate, cat=None) invalidate GeoWebCache Cache Rules .. py:function:: allow_layer_to_all(instance) 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 .. py:function:: create_acl_rules(layer, perms, user=None, group=None, batch: geonode.geoserver.acl.acl_client.Batch = None) Collect ACL rules related to passed perms into a Batch. If the batch does not exist, it is created and returned. .. py:function:: sync_resources_with_guardian(resource=None, force=False) Sync resources with Guardian and clear their dirty state .. py:function:: get_geolimits(layer, username, groupname) .. py:function:: has_geolimits(layer, user, group) .. py:function:: _get_acl_services(layer, perms) .. py:function:: geoserver_allows_wps_rules(ver: str) -> bool .. py:function:: _get_gwc_filters_and_formats(disable_cache: bool) -> Tuple[list, list]