28 mServerInterface( serverInterface )
35 QgsMessageLog::logMessage( QStringLiteral(
"QgsAccessControlFilter plugin default layerFilterExpression called" ), QStringLiteral(
"AccessControlFilter" ), Qgis::MessageLevel::Info );
43 QgsMessageLog::logMessage( QStringLiteral(
"QgsAccessControlFilter plugin default layerFilterSubsetString called" ), QStringLiteral(
"AccessControlFilter" ), Qgis::MessageLevel::Info );
51 QgsMessageLog::logMessage( QStringLiteral(
"QgsAccessControlFilter plugin default layerPermissions called" ), QStringLiteral(
"AccessControlFilter" ), Qgis::MessageLevel::Info );
62 QgsMessageLog::logMessage( QStringLiteral(
"QgsAccessControlFilter plugin default authorizedLayerAttributes called" ), QStringLiteral(
"AccessControlFilter" ), Qgis::MessageLevel::Info );
69 QgsMessageLog::logMessage( QStringLiteral(
"QgsAccessControlFilter plugin default allowToEdit called" ), QStringLiteral(
"AccessControlFilter" ), Qgis::MessageLevel::Info );
virtual LayerPermissions layerPermissions(const QgsMapLayer *layer) const
Returns the layer permissions.
QgsAccessControlFilter(const QgsServerInterface *serverInterface)
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsAccessControlF...
virtual QStringList authorizedLayerAttributes(const QgsVectorLayer *layer, const QStringList &attributes) const
Returns the authorized layer attributes.
virtual QString cacheKey() const
Cache key to used to create the capabilities cache.
virtual QString layerFilterExpression(const QgsVectorLayer *layer) const
Returns an additional expression filter.
virtual bool allowToEdit(const QgsVectorLayer *layer, const QgsFeature &feature) const
Are we authorized to modify the following geometry.
virtual QString layerFilterSubsetString(const QgsVectorLayer *layer) const
Returns an additional subset string (typically SQL) filter.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Base class for all map layer types.
static void logMessage(const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::MessageLevel::Warning, bool notifyUser=true)
Adds a message to the log instance (and creates it if necessary).
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
Represents a vector layer which manages a vector based data sets.
Describe the layer permission.