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:
Definition at line 50 of file qgsaccesscontrolfilter.h.
◆ QgsAccessControlFilter()
QgsAccessControlFilter::QgsAccessControlFilter |
( |
const QgsServerInterface * |
serverInterface | ) |
|
◆ ~QgsAccessControlFilter()
virtual QgsAccessControlFilter::~QgsAccessControlFilter |
( |
| ) |
|
|
virtualdefault |
◆ allowToEdit()
Are we authorized to modify the following geometry.
Are we authorized to modify the feature.
- Parameters
-
layer | the layer to control |
feature | the concerned feature |
- Returns
true
if we are allowed to edit
Definition at line 67 of file qgsaccesscontrolfilter.cpp.
◆ authorizedLayerAttributes()
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
Definition at line 59 of file qgsaccesscontrolfilter.cpp.
◆ cacheKey()
QString QgsAccessControlFilter::cacheKey |
( |
| ) |
const |
|
virtual |
Cache key to used to create the capabilities cache.
Cache key to used to create the capabilities cache, "" for no cache.
- Returns
- the cache key, "" for no cache
Definition at line 76 of file qgsaccesscontrolfilter.cpp.
◆ layerFilterExpression()
QString QgsAccessControlFilter::layerFilterExpression |
( |
const QgsVectorLayer * |
layer | ) |
const |
|
virtual |
Returns an additional expression filter.
Returns an additional layer expression filter.
- Parameters
-
layer | the layer to control |
- Returns
- the filter expression
Definition at line 33 of file qgsaccesscontrolfilter.cpp.
◆ layerFilterSubsetString()
QString QgsAccessControlFilter::layerFilterSubsetString |
( |
const QgsVectorLayer * |
layer | ) |
const |
|
virtual |
Returns an additional subset string (typically SQL) filter.
Returns an additional layer subset string (typically SQL) filter.
- Parameters
-
layer | the layer to control |
- Returns
- the subset string
Definition at line 41 of file qgsaccesscontrolfilter.cpp.
◆ layerPermissions()
Returns the layer permissions.
- Parameters
-
layer | the layer to control |
- Returns
- the permission to use on the layer
Definition at line 49 of file qgsaccesscontrolfilter.cpp.
◆ serverInterface()
The documentation for this class was generated from the following files: