QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSFILTERRESTORER_H
19 #define QGSFILTERRESTORER_H
24 #include "qgis_server.h"
48 restoreLayerFilters( mOriginalLayerFilters );
56 void restoreLayerFilters(
const QHash<QgsMapLayer *, QString> &filterMap );
62 QHash<QgsMapLayer *, QString> &
originalFilters() {
return mOriginalLayerFilters; }
67 QHash<QgsMapLayer *, QString> &originalLayerFilters );
78 QHash<QgsMapLayer *, QString> mOriginalLayerFilters;
82 #endif // QGSFILTERRESTORER_H
QHash< QgsMapLayer *, QString > & originalFilters()
Returns a reference to the object's hash of layers to original subsetString filters.
~QgsOWSServerFilterRestorer()
Destructor. When object is destroyed all original layer filters will be restored.
RAII class to restore layer filters on destruction.
QgsOWSServerFilterRestorer & operator=(const QgsOWSServerFilterRestorer &rh)=delete
QgsOWSServerFilterRestorer cannot be copied.
static void applyAccessControlLayerFilters(const QgsAccessControl *accessControl, QgsMapLayer *mapLayer)
Applies filters from access control on layer.
static void applyAccessControlLayerFilters(const QgsAccessControl *accessControl, QgsMapLayer *mapLayer, QHash< QgsMapLayer *, QString > &originalLayerFilters)
Apply filter from AccessControl.
QgsOWSServerFilterRestorer(const QgsOWSServerFilterRestorer &rh)=delete
QgsOWSServerFilterRestorer cannot be copied.
A helper class that centralizes restrictions given by all the access control filter plugins.
QgsOWSServerFilterRestorer()=default
Default constructor for QgsOWSServerFilterRestorer.
Base class for all map layer types.