QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Utility functions for working with ArcGIS REST services. More...
#include <qgsarcgisportalutils.h>
Public Types | |
enum | ItemType { FeatureService , MapService , ImageService } |
Portal item types (not complete) More... | |
Static Public Member Functions | |
static QVariantList | retrieveGroupContent (const QString &contentUrl, const QString &groupId, const QString &authcfg, QString &errorTitle, QString &errorText, const QMap< QString, QString > &requestHeaders=QMap< QString, QString >(), QgsFeedback *feedback=nullptr, int pageSize=100) |
Retrieves JSON definitions for all items which belong the the specified groupId. More... | |
static QVariantList | retrieveGroupItemsOfType (const QString &contentUrl, const QString &groupId, const QString &authcfg, const QList< int > &itemTypes, QString &errorTitle, QString &errorText, const QMap< QString, QString > &requestHeaders=QMap< QString, QString >(), QgsFeedback *feedback=nullptr, int pageSize=100) |
Retrieves JSON definitions for all items which belong the the specified groupId. More... | |
static QVariantList | retrieveUserGroups (const QString &communityUrl, const QString &user, const QString &authcfg, QString &errorTitle, QString &errorText, const QMap< QString, QString > &requestHeaders=QMap< QString, QString >(), QgsFeedback *feedback=nullptr) |
Retrieves JSON definitions for all groups which the specified user name is a member of. More... | |
static QVariantMap | retrieveUserInfo (const QString &communityUrl, const QString &user, const QString &authcfg, QString &errorTitle, QString &errorText, const QMap< QString, QString > &requestHeaders=QMap< QString, QString >(), QgsFeedback *feedback=nullptr) |
Retrieves JSON user info for the specified user name. More... | |
Utility functions for working with ArcGIS REST services.
Definition at line 35 of file qgsarcgisportalutils.h.
Portal item types (not complete)
Enumerator | |
---|---|
FeatureService | ArcGIS Server feature service. |
MapService | ArcGIS Server map service. |
ImageService | ArcGIS Server image service. |
Definition at line 42 of file qgsarcgisportalutils.h.
|
static |
Retrieves JSON definitions for all items which belong the the specified groupId.
contentUrl | should be set to the Portal's content URL, e.g. https://mysite.com/portal/sharing/rest/content/ |
groupId | ID of group to query |
authcfg | authentication configuration ID |
errorTitle | title summary of any encountered errors |
errorText | error text of any encountered errors |
requestHeaders | optional additional request headers |
feedback | optional feedback argument for cancellation support |
pageSize | number of results to retrieve for each request. Maximum value is 100. |
Definition at line 47 of file qgsarcgisportalutils.cpp.
|
static |
Retrieves JSON definitions for all items which belong the the specified groupId.
contentUrl | should be set to the Portal's content URL, e.g. https://mysite.com/portal/sharing/rest/content/ |
groupId | ID of group to query |
authcfg | authentication configuration ID |
itemTypes | list of desired item types (using QgsArcGisPortalUtils.ItemType values) |
errorTitle | title summary of any encountered errors |
errorText | error text of any encountered errors |
requestHeaders | optional additional request headers |
feedback | optional feedback argument for cancellation support |
pageSize | number of results to retrieve for each request. Maximum value is 100. |
Definition at line 84 of file qgsarcgisportalutils.cpp.
|
static |
Retrieves JSON definitions for all groups which the specified user name is a member of.
If user is blank then the user associated with the current logon details will be retrieved
communityUrl | should be set to the Portal's community URL, e.g. https://mysite.com/portal/sharing/rest/community/ |
user | username to query, or an empty string to query the current user |
authcfg | authentication configuration ID |
errorTitle | title summary of any encountered errors |
errorText | error text of any encountered errors |
requestHeaders | optional additional request headers |
feedback | optional feedback argument for cancellation support |
Definition at line 41 of file qgsarcgisportalutils.cpp.
|
static |
Retrieves JSON user info for the specified user name.
If user is blank then the user associated with the current logon details will be retrieved
communityUrl | should be set to the Portal's community URL, e.g. https://mysite.com/portal/sharing/rest/community/ |
user | username to query, or an empty string to query the current user |
authcfg | authentication configuration ID |
errorTitle | title summary of any encountered errors |
errorText | error text of any encountered errors |
requestHeaders | optional additional request headers |
feedback | optional feedback argument for cancellation support |
Definition at line 22 of file qgsarcgisportalutils.cpp.