Skip To Content ArcGIS for Developers Sign In Dashboard

Obsolete Members for PortalItem

The following members of class PortalItem are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) PortalItem(const QString &json, Portal *portal, QObject *parent = nullptr)
(obsolete) QString accessAndUseConstraintsHtml() const
(obsolete) void setType(PortalItemType type)

Member Function Documentation

PortalItem::PortalItem(const QString &json, Portal *portal, QObject *parent = nullptr)

Constructor that accepts JSON (json), a Portal (portal), and an optional parent. This constructor is obsolete, prefer to use fromJson function.

QString PortalItem::accessAndUseConstraintsHtml() const

Returns the access and use constraints HTML.

This function is deprecated in 100.4.0. Use termsOfUse instead.

void PortalItem::setType(PortalItemType type)

Sets the item's type to type.

This function is deprecated from 100.6 onwards. Use constructor with PortalItemType instead.

Note: Beyond being deprecated, the setter also no longer functions and is a no-op method. This is because the Portal Rest API does not allow changing the type of an existing PortalItem.

See also type().


Feedback on this topic?