QGIS API Documentation 3.41.0-Master (181b2f43d8e)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
QgsArcGisPortalUtils Class Reference

Utility functions for working with ArcGIS REST services. More...

#include <qgsarcgisportalutils.h>

Static Public Member Functions

static QVariantList retrieveGroupContent (const QString &contentUrl, const QString &groupId, const QString &authcfg, QString &errorTitle, QString &errorText, const QgsHttpHeaders &requestHeaders=QgsHttpHeaders(), QgsFeedback *feedback=nullptr, int pageSize=100, const QString &urlPrefix=QString())
 Retrieves JSON definitions for all items which belong the the specified groupId.
 
static Q_DECL_DEPRECATED QVariantList retrieveGroupContent (const QString &contentUrl, const QString &groupId, const QString &authcfg, QString &errorTitle, QString &errorText, const QMap< QString, QVariant > &requestHeaders, QgsFeedback *feedback=nullptr, int pageSize=100, const QString &urlPrefix=QString())
 Retrieves JSON definitions for all items which belong the the specified groupId.
 
static QVariantList retrieveGroupItemsOfType (const QString &contentUrl, const QString &groupId, const QString &authcfg, const QList< int > &itemTypes, QString &errorTitle, QString &errorText, const QgsHttpHeaders &requestHeaders=QgsHttpHeaders(), QgsFeedback *feedback=nullptr, int pageSize=100, const QString &urlPrefix=QString())
 Retrieves JSON definitions for all items which belong the the specified groupId.
 
static Q_DECL_DEPRECATED QVariantList retrieveGroupItemsOfType (const QString &contentUrl, const QString &groupId, const QString &authcfg, const QList< int > &itemTypes, QString &errorTitle, QString &errorText, const QMap< QString, QVariant > &requestHeaders, QgsFeedback *feedback=nullptr, int pageSize=100, const QString &urlPrefix=QString())
 Retrieves JSON definitions for all items which belong the the specified groupId.
 
static QVariantList retrieveUserGroups (const QString &communityUrl, const QString &user, const QString &authcfg, QString &errorTitle, QString &errorText, const QgsHttpHeaders &requestHeaders=QgsHttpHeaders(), QgsFeedback *feedback=nullptr, const QString &urlPrefix=QString())
 Retrieves JSON definitions for all groups which the specified user name is a member of.
 
static Q_DECL_DEPRECATED QVariantList retrieveUserGroups (const QString &communityUrl, const QString &user, const QString &authcfg, QString &errorTitle, QString &errorText, const QMap< QString, QVariant > &requestHeaders, QgsFeedback *feedback=nullptr, const QString &urlPrefix=QString())
 Retrieves JSON definitions for all groups which the specified user name is a member of.
 
static QVariantMap retrieveUserInfo (const QString &communityUrl, const QString &user, const QString &authcfg, QString &errorTitle, QString &errorText, const QgsHttpHeaders &requestHeaders=QgsHttpHeaders(), QgsFeedback *feedback=nullptr, const QString &urlPrefix=QString())
 Retrieves JSON user info for the specified user name.
 
static Q_DECL_DEPRECATED QVariantMap retrieveUserInfo (const QString &communityUrl, const QString &user, const QString &authcfg, QString &errorTitle, QString &errorText, const QMap< QString, QVariant > &requestHeaders, QgsFeedback *feedback=nullptr, const QString &urlPrefix=QString())
 Retrieves JSON user info for the specified user name.
 

Detailed Description

Utility functions for working with ArcGIS REST services.

See also
QgsArcGisRestUtils
Since
QGIS 3.18

Definition at line 37 of file qgsarcgisportalutils.h.

Member Function Documentation

◆ retrieveGroupContent() [1/2]

QVariantList QgsArcGisPortalUtils::retrieveGroupContent ( const QString &  contentUrl,
const QString &  groupId,
const QString &  authcfg,
QString &  errorTitle,
QString &  errorText,
const QgsHttpHeaders requestHeaders = QgsHttpHeaders(),
QgsFeedback feedback = nullptr,
int  pageSize = 100,
const QString &  urlPrefix = QString() 
)
static

Retrieves JSON definitions for all items which belong the the specified groupId.

Parameters
contentUrlshould be set to the Portal's content URL, e.g. https://mysite.com/portal/sharing/rest/content/
groupIdID of group to query
authcfgauthentication configuration ID
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
pageSizenumber of results to retrieve for each request. Maximum value is 100.
urlPrefixhttp web proxy url prefix
Returns
a list of JSON item info for all items within the group
Since
QGIS 3.24

Definition at line 57 of file qgsarcgisportalutils.cpp.

◆ retrieveGroupContent() [2/2]

QVariantList QgsArcGisPortalUtils::retrieveGroupContent ( const QString &  contentUrl,
const QString &  groupId,
const QString &  authcfg,
QString &  errorTitle,
QString &  errorText,
const QMap< QString, QVariant > &  requestHeaders,
QgsFeedback feedback = nullptr,
int  pageSize = 100,
const QString &  urlPrefix = QString() 
)
static

Retrieves JSON definitions for all items which belong the the specified groupId.

Only to avoid API break.

Parameters
contentUrlshould be set to the Portal's content URL, e.g. https://mysite.com/portal/sharing/rest/content/
groupIdID of group to query
authcfgauthentication configuration ID
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
pageSizenumber of results to retrieve for each request. Maximum value is 100.
urlPrefixhttp web proxy url prefix
Returns
a list of JSON item info for all items within the group
Deprecated:
QGIS 3.24. Use the version with QgsHttpHeaders instead.

Definition at line 94 of file qgsarcgisportalutils.cpp.

◆ retrieveGroupItemsOfType() [1/2]

QVariantList QgsArcGisPortalUtils::retrieveGroupItemsOfType ( const QString &  contentUrl,
const QString &  groupId,
const QString &  authcfg,
const QList< int > &  itemTypes,
QString &  errorTitle,
QString &  errorText,
const QgsHttpHeaders requestHeaders = QgsHttpHeaders(),
QgsFeedback feedback = nullptr,
int  pageSize = 100,
const QString &  urlPrefix = QString() 
)
static

Retrieves JSON definitions for all items which belong the the specified groupId.

Parameters
contentUrlshould be set to the Portal's content URL, e.g. https://mysite.com/portal/sharing/rest/content/
groupIdID of group to query
authcfgauthentication configuration ID
itemTypeslist of desired item types (using Qgis.ArcGisRestServiceType values)
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
pageSizenumber of results to retrieve for each request. Maximum value is 100.
urlPrefixhttp web proxy url prefix
Returns
a list of JSON item info for all items within the group
Since
QGIS 3.24

Definition at line 99 of file qgsarcgisportalutils.cpp.

◆ retrieveGroupItemsOfType() [2/2]

QVariantList QgsArcGisPortalUtils::retrieveGroupItemsOfType ( const QString &  contentUrl,
const QString &  groupId,
const QString &  authcfg,
const QList< int > &  itemTypes,
QString &  errorTitle,
QString &  errorText,
const QMap< QString, QVariant > &  requestHeaders,
QgsFeedback feedback = nullptr,
int  pageSize = 100,
const QString &  urlPrefix = QString() 
)
static

Retrieves JSON definitions for all items which belong the the specified groupId.

Only to avoid API break.

Parameters
contentUrlshould be set to the Portal's content URL, e.g. https://mysite.com/portal/sharing/rest/content/
groupIdID of group to query
authcfgauthentication configuration ID
itemTypeslist of desired item types (using Qgis.ArcGisRestServiceType values)
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
pageSizenumber of results to retrieve for each request. Maximum value is 100.
urlPrefixhttp web proxy url prefix
Returns
a list of JSON item info for all items within the group
Deprecated:
QGIS 3.24. Use the version with QgsHttpHeaders instead.

Definition at line 122 of file qgsarcgisportalutils.cpp.

◆ retrieveUserGroups() [1/2]

QVariantList QgsArcGisPortalUtils::retrieveUserGroups ( const QString &  communityUrl,
const QString &  user,
const QString &  authcfg,
QString &  errorTitle,
QString &  errorText,
const QgsHttpHeaders requestHeaders = QgsHttpHeaders(),
QgsFeedback feedback = nullptr,
const QString &  urlPrefix = QString() 
)
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

Parameters
communityUrlshould be set to the Portal's community URL, e.g. https://mysite.com/portal/sharing/rest/community/
userusername to query, or an empty string to query the current user
authcfgauthentication configuration ID
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
urlPrefixhttp web proxy url prefix
Returns
a list of JSON group info
Since
QGIS 3.24

Definition at line 46 of file qgsarcgisportalutils.cpp.

◆ retrieveUserGroups() [2/2]

QVariantList QgsArcGisPortalUtils::retrieveUserGroups ( const QString &  communityUrl,
const QString &  user,
const QString &  authcfg,
QString &  errorTitle,
QString &  errorText,
const QMap< QString, QVariant > &  requestHeaders,
QgsFeedback feedback = nullptr,
const QString &  urlPrefix = QString() 
)
static

Retrieves JSON definitions for all groups which the specified user name is a member of.

Only to avoid API break.

If user is blank then the user associated with the current logon details will be retrieved

Parameters
communityUrlshould be set to the Portal's community URL, e.g. https://mysite.com/portal/sharing/rest/community/
userusername to query, or an empty string to query the current user
authcfgauthentication configuration ID
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
urlPrefixhttp web proxy url prefix
Returns
a list of JSON group info
Deprecated:
QGIS 3.24. Use the version with QgsHttpHeaders instead.

Definition at line 52 of file qgsarcgisportalutils.cpp.

◆ retrieveUserInfo() [1/2]

QVariantMap QgsArcGisPortalUtils::retrieveUserInfo ( const QString &  communityUrl,
const QString &  user,
const QString &  authcfg,
QString &  errorTitle,
QString &  errorText,
const QgsHttpHeaders requestHeaders = QgsHttpHeaders(),
QgsFeedback feedback = nullptr,
const QString &  urlPrefix = QString() 
)
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

Parameters
communityUrlshould be set to the Portal's community URL, e.g. https://mysite.com/portal/sharing/rest/community/
userusername to query, or an empty string to query the current user
authcfgauthentication configuration ID
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
urlPrefixhttp web proxy url prefix
Returns
JSON user info
Since
QGIS 3.24

Definition at line 22 of file qgsarcgisportalutils.cpp.

◆ retrieveUserInfo() [2/2]

QVariantMap QgsArcGisPortalUtils::retrieveUserInfo ( const QString &  communityUrl,
const QString &  user,
const QString &  authcfg,
QString &  errorTitle,
QString &  errorText,
const QMap< QString, QVariant > &  requestHeaders,
QgsFeedback feedback = nullptr,
const QString &  urlPrefix = QString() 
)
static

Retrieves JSON user info for the specified user name.

Only to avoid API break.

If user is blank then the user associated with the current logon details will be retrieved

Parameters
communityUrlshould be set to the Portal's community URL, e.g. https://mysite.com/portal/sharing/rest/community/
userusername to query, or an empty string to query the current user
authcfgauthentication configuration ID
errorTitletitle summary of any encountered errors
errorTexterror text of any encountered errors
requestHeadersoptional additional request headers
feedbackoptional feedback argument for cancellation support
urlPrefixhttp web proxy url prefix
Returns
JSON user info
Deprecated:
QGIS 3.24. Use the version with QgsHttpHeaders instead.

Definition at line 41 of file qgsarcgisportalutils.cpp.


The documentation for this class was generated from the following files: