26 #include <QStringList> 31 mServerInterface( serverInterface )
65 QgsMessageLog::logMessage( QStringLiteral(
"QgsAccessControlFilter plugin default authorizedLayerAttributes called" ), QStringLiteral(
"AccessControlFilter" ),
Qgis::Info );
Base class for all map layer types.
virtual QString layerFilterExpression(const QgsVectorLayer *layer) const
Returns an additional expression filter.
QgsAccessControlFilter(const QgsServerInterface *serverInterface)
Constructor QgsServerInterface passed to plugins constructors and must be passed to QgsAccessControlF...
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
virtual QString layerFilterSubsetString(const QgsVectorLayer *layer) const
Returns an additional subset string (typically SQL) filter.
virtual bool allowToEdit(const QgsVectorLayer *layer, const QgsFeature &feature) const
Are we authorized to modify the following geometry.
static void logMessage(const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::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...
virtual QString cacheKey() const
Cache key to used to create the capabilities cache.
virtual LayerPermissions layerPermissions(const QgsMapLayer *layer) const
Returns the layer permissions.
virtual QStringList authorizedLayerAttributes(const QgsVectorLayer *layer, const QStringList &attributes) const
Returns the authorized layer attributes.
Describe the layer permission.
Represents a vector layer which manages a vector based data sets.