Class defining access control interface for QGIS Server plugins.
More...
#include <qgsaccesscontrolfilter.h>
Class defining access control interface for QGIS Server plugins.
Security can define any (or none) of the following method:
- layerFilterExpression() - To get an additional expression filter (WMS/GetMap, WMS/GetFeatureInfo, WFS/GetFeature)
- layerFilterSQL() - To get an additional SQL filter (WMS/GetMap, WMS/GetFeatureInfo, WFS/GetFeature) for layer that support SQL
- layerPermissions() - To give the general layer permissins (read / update / insert / delete)
- authorizedLayerAttributes() - Tho filter the attributes (WMS/GetFeatureInfo, WFS/GetFeature)
- allowToEdit() - (all WFS-T requests)
Definition at line 44 of file qgsaccesscontrolfilter.h.
◆ QgsAccessControlFilter()
QgsAccessControlFilter::QgsAccessControlFilter |
( |
const QgsServerInterface * |
serverInterface | ) |
|
◆ ~QgsAccessControlFilter()
virtual QgsAccessControlFilter::~QgsAccessControlFilter |
( |
| ) |
|
|
virtual |
◆ allowToEdit()
Are we authorized to modify the following geometry.
- Parameters
-
layer | the layer to control |
feature | the concerned feature |
- Returns
- true if we are allowed to edit
◆ authorizedLayerAttributes()
Return the authorized layer attributes.
- Parameters
-
layer | the layer to control |
attributes | the current list of visible attribute |
- Returns
- the new list of visible attributes
◆ cacheKey()
virtual QString QgsAccessControlFilter::cacheKey |
( |
| ) |
const |
|
virtual |
Cache key to used to create the capabilities cache.
- Returns
- the cache key, "" for no cache
◆ layerFilterExpression()
Return an additional expression filter.
- Parameters
-
layer | the layer to control |
- Returns
- the filter expression
◆ layerFilterSubsetString()
Return an additional subset string (typically SQL) filter.
- Parameters
-
layer | the layer to control |
- Returns
- the subset string
◆ layerPermissions()
Return the layer permissions.
- Parameters
-
layer | the layer to control |
- Returns
- the permission to use on the layer
◆ serverInterface()
The documentation for this class was generated from the following file: