Skip To Content ArcGIS for Developers Sign In Dashboard

Obsolete Members for PortalFolderListModel

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

Public Functions

(obsolete) void append(const PortalFolder &portalFolder)
(obsolete) void clear()
(obsolete) void insert(int index, const PortalFolder &portalFolder)
(obsolete) void move(int from, int to)
(obsolete) void removeAt(int index)
(obsolete) void removeOne(const PortalFolder &portalFolder)

Member Function Documentation

void PortalFolderListModel::append(const PortalFolder &portalFolder)

Appends the PortalFolder portalFolder to the list model.

This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent instead.

void PortalFolderListModel::clear()

Removes all PortalFolder objects from the list model.

This method only affects the local instance of this list model class. To remove the folders from the online portal, use PortalUser::deleteFolder instead.

void PortalFolderListModel::insert(int index, const PortalFolder &portalFolder)

Inserts PortalFolder portalFolder at the specified index in the list model.

This method will append to the list model if the specified index is greater than the current size of the list.

This method only affects the local instance of this list model class. To create a folder in the user's online portal, use PortalUser::createFolder and PortalUser::fetchContent instead.

Note: There is no valid method to change the order of a portal user's folders in the API.

void PortalFolderListModel::move(int from, int to)

Moves one PortalFolder from an index in the list model to a different index.

This method only affects the local instance of this list model class. This method will not move the folder in the online portal.

void PortalFolderListModel::removeAt(int index)

Removes a PortalFolder at the specified index.

This method only affects the local instance of this list model class. To remove the folder at index from the online portal, use PortalUser::deleteFolder instead.

void PortalFolderListModel::removeOne(const PortalFolder &portalFolder)

Removes the PortalFolder portalFolder from the list model.

This method only affects the local instance of this list model class. To remove the folder from the online portal, use PortalUser::deleteFolder instead.


Feedback on this topic?