|
QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
Class defining access control interface for QGIS Server plugins. More...
#include <qgsaccesscontrolfilter.h>
Classes | |
| struct | LayerPermissions |
| Describe the layer permission. More... | |
Public Member Functions | |
| QgsAccessControlFilter (const QgsServerInterface *serverInterface) | |
| Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsAccessControlFilter instances. More... | |
| virtual | ~QgsAccessControlFilter ()=default |
| virtual bool | allowToEdit (const QgsVectorLayer *layer, const QgsFeature &feature) const |
| Are we authorized to modify the following geometry. More... | |
| virtual QStringList | authorizedLayerAttributes (const QgsVectorLayer *layer, const QStringList &attributes) const |
| Returns the authorized layer attributes. More... | |
| virtual QString | cacheKey () const |
| Cache key to used to create the capabilities cache. More... | |
| virtual QString | layerFilterExpression (const QgsVectorLayer *layer) const |
| Returns an additional expression filter. More... | |
| virtual QString | layerFilterSubsetString (const QgsVectorLayer *layer) const |
| Returns an additional subset string (typically SQL) filter. More... | |
| virtual LayerPermissions | layerPermissions (const QgsMapLayer *layer) const |
| Returns the layer permissions. More... | |
| const QgsServerInterface * | serverInterface () const |
| Returns the QgsServerInterface instance. More... | |
Class defining access control interface for QGIS Server plugins.
Security can define any (or none) of the following method:
Definition at line 51 of file qgsaccesscontrolfilter.h.
| QgsAccessControlFilter::QgsAccessControlFilter | ( | const QgsServerInterface * | serverInterface | ) |
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsAccessControlFilter instances.
Constructor.
Definition at line 30 of file qgsaccesscontrolfilter.cpp.
|
virtualdefault |
|
virtual |
Are we authorized to modify the following geometry.
Are we authorized to modify the feature.
| layer | the layer to control |
| feature | the concerned feature |
Definition at line 70 of file qgsaccesscontrolfilter.cpp.
|
virtual |
Returns the authorized layer attributes.
| layer | the layer to control |
| attributes | the current list of visible attribute |
Definition at line 62 of file qgsaccesscontrolfilter.cpp.
|
virtual |
Cache key to used to create the capabilities cache.
Cache key to used to create the capabilities cache, "" for no cache.
Definition at line 79 of file qgsaccesscontrolfilter.cpp.
|
virtual |
Returns an additional expression filter.
Returns an additional layer expression filter.
| layer | the layer to control |
Definition at line 36 of file qgsaccesscontrolfilter.cpp.
|
virtual |
Returns an additional subset string (typically SQL) filter.
Returns an additional layer subset string (typically SQL) filter.
| layer | the layer to control |
Definition at line 44 of file qgsaccesscontrolfilter.cpp.
|
virtual |
Returns the layer permissions.
| layer | the layer to control |
Definition at line 52 of file qgsaccesscontrolfilter.cpp.
|
inline |
Returns the QgsServerInterface instance.
Definition at line 75 of file qgsaccesscontrolfilter.h.
1.8.11