geonode.geoserver.acl.acl_client
Attributes
Exceptions
Common base class for all non-exit exceptions. |
Classes
Rule class inherited from gsauth_client.models.Rule but with some additional methods for Geofence format compatibility |
|
_summary_ |
|
_summary_ |
|
Module Contents
- exception geonode.geoserver.acl.acl_client.ACLException[source]
Bases:
ExceptionCommon base class for all non-exit exceptions.
- class geonode.geoserver.acl.acl_client.Rule(access: str, bool, id=None, priority=None, workspace=None, layer=None, user=None, group=None, service=None, request=None, subfield=None, geo_limit=None, catalog_mode=None)[source]
Bases:
geonode.geoserver.acl.gsauth_client.models.RuleRule class inherited from gsauth_client.models.Rule but with some additional methods for Geofence format compatibility
- class geonode.geoserver.acl.acl_client.Batch(log_name=None)[source]
_summary_ A ACL Batch. It’s a list of operations that will be executed transactionally inside ACL (?).
Example:
{ "Batch": { "operations": [ { "@service": "rules", "@type": "insert", "Rule": { "priority": 0, "user": "admin", "service": "WMS", "workspace": "geonode", "layer": "san_andres_y_providencia_administrative", "access": "ALLOW" } }, { "@service": "rules", "@type": "insert", "Rule": { "priority": 1, "user": "admin", "service": "GWC", "workspace": "geonode", "layer": "san_andres_y_providencia_administrative", "access": "ALLOW" } }, { "@service": "rules", "@type": "insert", "Rule": { "priority": 2, "user": "admin", "service": "WFS", "workspace": "geonode", "layer": "san_andres_y_providencia_administrative", "access": "ALLOW" } }, { "@service": "rules", "@type": "insert", "Rule": { "priority": 3, "user": "admin", "service": "WPS", "workspace": "geonode", "layer": "san_andres_y_providencia_administrative", "access": "ALLOW" } }, { "@service": "rules", "@type": "insert", "Rule": { "priority": 4, "user": "admin", "workspace": "geonode", "layer": "san_andres_y_providencia_administrative", "access": "ALLOW" } } ] } }
- Returns:
Batch
- Return type:
_type_
- class geonode.geoserver.acl.acl_client.AutoPriorityBatch(start_rule_pri: int, log_name=None)[source]
Bases:
Batch_summary_ A Batch that handles the priority of the inserted rules. The first rule will have the declared start_rule_pri, next Rules will have the priority incremented.
- class geonode.geoserver.acl.acl_client.AclUtils(acl_client)[source]
-
- collect_delete_layer_rules(workspace_name: str, layer_name: str, batch: Batch = None) Batch[source]
Collect delete operations in a Batch for all rules related to a layer