20 #ifndef QGSACCESSCONTROLPLUGIN_H 21 #define QGSACCESSCONTROLPLUGIN_H 26 #include "qgis_server.h" 61 QgsAccessControlFilter(
const QgsServerInterface *serverInterface );
63 virtual ~QgsAccessControlFilter() =
default;
82 virtual QString layerFilterExpression(
const QgsVectorLayer *layer )
const;
89 virtual QString layerFilterSubsetString(
const QgsVectorLayer *layer )
const;
104 virtual QStringList authorizedLayerAttributes(
const QgsVectorLayer *layer,
const QStringList &attributes )
const;
112 virtual bool allowToEdit(
const QgsVectorLayer *layer,
const QgsFeature &feature )
const;
118 virtual QString cacheKey()
const;
123 const QgsServerInterface *mServerInterface =
nullptr;
131 #endif // QGSSERVERSECURITY_H Class for parsing and evaluation of expressions (formerly called "search strings").
Base class for all map layer types.
const QgsServerInterface * serverInterface() const
Returns the QgsServerInterface instance.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
#define SIP_IF_MODULE(condition)
Class defining access control interface for QGIS Server plugins.
QMultiMap< int, QgsAccessControlFilter * > QgsAccessControlFilterMap
The registry definition.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
Describe the layer permission.
Represents a vector layer which manages a vector based data sets.