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)
- cacheKey()
Definition at line 51 of file qgsaccesscontrolfilter.h.
◆ QgsAccessControlFilter()
QgsAccessControlFilter::QgsAccessControlFilter |
( |
const QgsServerInterface * |
serverInterface | ) |
|
◆ ~QgsAccessControlFilter()
virtual QgsAccessControlFilter::~QgsAccessControlFilter |
( |
| ) |
|
|
virtualdefault |
◆ 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()
virtual QStringList QgsAccessControlFilter::authorizedLayerAttributes |
( |
const QgsVectorLayer * |
layer, |
|
|
const QStringList & |
attributes |
|
) |
| const |
|
virtual |
Returns 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()
virtual QString QgsAccessControlFilter::layerFilterExpression |
( |
const QgsVectorLayer * |
layer | ) |
const |
|
virtual |
Returns an additional expression filter.
- Parameters
-
layer | the layer to control |
- Returns
- the filter expression
◆ layerFilterSubsetString()
virtual QString QgsAccessControlFilter::layerFilterSubsetString |
( |
const QgsVectorLayer * |
layer | ) |
const |
|
virtual |
Returns an additional subset string (typically SQL) filter.
- Parameters
-
layer | the layer to control |
- Returns
- the subset string
◆ layerPermissions()
Returns 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: