PortalUser represents a registered user of a portal or organization. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- access : Enums.PortalAccess
- addPortalItemStatus : Enums.TaskStatus
- addToFavoritesStatus : Enums.TaskStatus
- createFolderResult : PortalFolder
- createFolderStatus : Enums.TaskStatus
- created : date
- deleteFolderStatus : Enums.TaskStatus
- deletePortalItemStatus : Enums.TaskStatus
- email : string
- favoritesGroupId : string
- fetchContentStatus : Enums.TaskStatus
- fetchFavoritesStatusStatus : Enums.TaskStatus
- folders : PortalFolderListModel
- fullName : string
- groups : PortalGroupListModel
- items : PortalItemListModel
- json : jsobject
- loadError : Error
- loadStatus : Enums.LoadStatus
- modified : date
- movePortalItemStatus : Enums.TaskStatus
- movePortalItemsResults : list<PortalResult>
- movePortalItemsStatus : Enums.TaskStatus
- organizationId : string
- phone : string
- portal : Portal
- privileges : PortalPrivilegeListModel
- removeFromFavoritesStatus : Enums.TaskStatus
- role : Enums.PortalUserRole
- tags : list<string>
- thumbnailUrl : url
- units : Enums.UnitSystem
- unknownJson : jsobject
- unsupportedJson : jsobject
- userDescription : string
- username : string
Signals
- accessChanged()
- addPortalItemStatusChanged()
- addToFavoritesStatusChanged()
- createFolderStatusChanged()
- createdChanged()
- deleteFolderStatusChanged()
- deletePortalItemStatusChanged()
- emailChanged()
- favoritesGroupIdChanged()
- fetchContentStatusChanged()
- fetchFavoritesStatusStatusChanged()
- fullNameChanged()
- loadErrorChanged()
- loadStatusChanged()
- modifiedChanged()
- movePortalItemStatusChanged()
- movePortalItemsStatusChanged()
- organizationIdChanged()
- phoneChanged()
- portalChanged()
- removeFromFavoritesStatusChanged()
- roleChanged()
- tagsChanged()
- thumbnailUrlChanged()
- unitsChanged()
- userDescriptionChanged()
- usernameChanged()
Methods
- void addPortalItemWithJson(PortalItem portalItem, jsobject json, PortalFolder toFolder)
- void addPortalItemWithUrl(PortalItem portalItem, url fromUrl, string fileName, PortalFolder toFolder)
- void addToFavorites(PortalItem portalItem)
- void cancelLoad()
- void createFolder(string title)
- void deleteFolder(PortalFolder folder)
- void deletePortalItem(PortalItem portalItem)
- void fetchContent()
- void fetchContentInFolder(const QString&folderId)
- void fetchFavoritesStatus(PortalItem portalItem)
- void load()
- void movePortalItem(PortalItem portalItem, PortalFolder toFolder)
- void movePortalItems(list<PortalItem> portalItems, PortalFolder toFolder)
- void removeFromFavorites(PortalItem portalItem)
- void retryLoad()
- void setPortal(Portal*portal)
Detailed Description
A Portal may have users who are unaffiliated with an organization or users who are part of an organization. Users sign in to the portal and create and share content which is organized into items (PortalItem). Users can create and join groups (PortalGroup) and share items with groups. This makes the items visible and accessible to other members of the group. Users could be in different roles including administrators, publishers and information workers. Administrators can add users to their organizations and have access to all content within the organization. All users can create web maps based on mashing up services that they have access to and can register services running on external servers. Publishers within an organization can in addition create hosted services based on data files that they upload.
This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.
See also JsonSerializable, Loadable, and User (ArcGIS REST API).
Property Documentation
Returns the visibility of a user's information (read-only).
If set to Enums.PortalAccessPrivate
, the user's descriptive information will not be available to others nor will the username be searchable. The organization's administrator can always see all users.
See also Enums.PortalAccess.
Returns the status of the addPortalItemWithJson or addPortalItemWithUrl operation (read-only).
This property was introduced in Esri.ArcGISRuntime 100.1.
See also Enums.TaskStatus.
Returns the status of the addToFavorites operation (read-only).
See also Enums.TaskStatus.
createFolderResult : PortalFolder |
The PortalFolder created using the createFolder method.
Returns the status of the createFolder operation (read-only).
See also Enums.TaskStatus.
Returns the status of the deleteFolder operation (read-only).
See also Enums.TaskStatus.
Returns the status of the deletePortalItem operation (read-only).
See also Enums.TaskStatus.
Returns the status of the fetchContent operation (read-only).
See also Enums.TaskStatus.
Returns the status of the fetchFavoritesStatus operation (read-only).
See also Enums.TaskStatus.
folders : PortalFolderListModel |
Returns a list of PortalFolder objects for the user's content (read-only).
The folders are retrieved by calling fetchContent and the signal fetchContentStatus property shows the status of the operation.
See also PortalFolder.
groups : PortalGroupListModel |
Returns the list of groups for the portal user.
See also PortalGroup.
items : PortalItemListModel |
Returns a list of PortalItem objects for which the user has access (raed-only).
The items are retrieved by calling fetchContent or fetchContentInFolder and the signal fetchContentStatus property shows the status of the operation.
See also PortalItem.
The JSON representation of the PortalUser.
portal is conserved
Returns the load status of the user.
See also Enums.LoadStatus.
Returns the status of the movePortalItem operation (read-only).
See also Enums.TaskStatus.
movePortalItemsResults : list<PortalResult> |
Returns the list of PortalResult that will be returned by movePortalItems (read-only).
Returns the status of the movePortalItems operation (read-only).
This property was introduced in Esri.ArcGISRuntime 100.1.
See also Enums.TaskStatus.
privileges : PortalPrivilegeListModel |
A list of the privileges possessed by this user.
See also PortalPrivilege.
Returns the status of the removeFromFavorites operation (read-only).
See also Enums.TaskStatus.
Returns the user's role in the organization (read-only).
See also Enums.PortalUserRole.
Returns the user's preferred units.
See also Enums.UnitSystem.
Returns the unknown JSON from the source JSON.
See also JsonSerializable.
Returns the unsupported data from the source JSON.
See also JsonSerializable.
Signal Documentation
Emitted when access property is changed.
Note: The corresponding handler is onAccessChanged
.
Emitted when addPortalItemStatus property is changed.
Note: The corresponding handler is onAddPortalItemStatusChanged
.
This signal was introduced in Esri.ArcGISRuntime 100.1.
Emitted when addToFavoritesStatus property is changed.
Note: The corresponding handler is onAddToFavoritesStatusChanged
.
Emitted when createFolderStatus property is changed.
Note: The corresponding handler is onCreateFolderStatusChanged
.
Emitted when created property is changed.
Note: The corresponding handler is onCreatedChanged
.
Emitted when deleteFolderStatus property is changed.
Note: The corresponding handler is onDeleteFolderStatusChanged
.
Emitted when deletePortalItemStatus property is changed.
Note: The corresponding handler is onDeletePortalItemStatusChanged
.
Emitted when email property is changed.
Note: The corresponding handler is onEmailChanged
.
Emitted when favoritesGroupId property is changed.
Note: The corresponding handler is onFavoritesGroupIdChanged
.
Emitted when fetchContentStatus property is changed.
Note: The corresponding handler is onFetchContentStatusChanged
.
Emitted when fetchFavoritesStatusStatus property is changed.
Note: The corresponding handler is onFetchFavoritesStatusStatusChanged
.
Emitted when fullName property is changed.
Note: The corresponding handler is onFullNameChanged
.
Emitted when loadError property is changed.
Note: The corresponding handler is onLoadErrorChanged
.
Emitted when loadStatus property is changed.
Note: The corresponding handler is onLoadStatusChanged
.
Emitted when modified property is changed.
Note: The corresponding handler is onModifiedChanged
.
Emitted when movePortalItemStatus property is changed.
Note: The corresponding handler is onMovePortalItemStatusChanged
.
Emitted when movePortalItemsStatus property is changed.
Note: The corresponding handler is onMovePortalItemsStatusChanged
.
This signal was introduced in Esri.ArcGISRuntime 100.1.
Emitted when organizationId property is changed.
Note: The corresponding handler is onOrganizationIdChanged
.
Emitted when phone property is changed.
Note: The corresponding handler is onPhoneChanged
.
Emitted when portal property is changed.
Note: The corresponding handler is onPortalChanged
.
Emitted when removeFromFavoritesStatus property is changed.
Note: The corresponding handler is onRemoveFromFavoritesStatusChanged
.
Emitted when role property is changed.
Note: The corresponding handler is onRoleChanged
.
Emitted when tags property is changed.
Note: The corresponding handler is onTagsChanged
.
Emitted when thumbnailUrl property is changed.
Note: The corresponding handler is onThumbnailUrlChanged
.
Emitted when units property is changed.
Note: The corresponding handler is onUnitsChanged
.
Emitted when userDescription property is changed.
Note: The corresponding handler is onUserDescriptionChanged
.
Emitted when username property is changed.
Note: The corresponding handler is onUsernameChanged
.
Method Documentation
void addPortalItemWithJson(PortalItem portalItem, jsobject json, PortalFolder toFolder) |
Adds a PortalItem from a JSON object.
The portalItem will be created using the following arguments:
- portalItem - The local PortalItem which will be added to the portal.
- json - The JSON representation of the portal item. This format is particularly suitable for adding items such as web maps and is the format used by the Map::saveAs method.
- toFolder - (optional). The folder in which the item will be located. If empty, the item will be placed in the user's root folder.
This method was introduced in Esri.ArcGISRuntime 100.1.
See also Items and item types.
void addPortalItemWithUrl(PortalItem portalItem, url fromUrl, string fileName, PortalFolder toFolder) |
Adds a PortalItem from a local or online URL.
The portalItem will be created using the following arguments:
- portalItem - The local PortalItem which will be added to the portal.
- fromUrl - The local or online URL from which the portalItem will be populated. For local files, this should be of the form
"qrc:/example.csv"
or "file://"; for online resources, this should be of the form"https://..."
. - fileName - (optional). The name of the file which will be associated with the PortalItem (including extension). If a file name is not supplied, the portal item will have no file associated with it for future downloads.
Note: A file name is only relevant for certain item types such as Enums.PortalItemType or
Enums.PortalItemTypeImage
. - toFolder - (optional). The folder in which the item will be located. If empty, the item will be placed in the user's root folder.
Example:
Add an item with a local URL:
const localCSVFile = "qrc:/Samples/CloudAndPortal/AddItemsToPortal/add_item_sample.csv"; myUser.addPortalItemWithUrl(itemToAdd, localCSVFile, "add_item_sample.csv");
Load the item once it has been successfully loaded
onAddPortalItemStatusChanged: { if (addPortalItemStatus !== Enums.TaskStatusCompleted) return; itemToAdd.load();
This method was introduced in Esri.ArcGISRuntime 100.1.
See also Items and item types.
void addToFavorites(PortalItem portalItem) |
Adds the PortalItem portalItem to the user's favorites group.
See Loadable.
Creates a new PortalFolder with the given title in the user's root folder.
Multilevel folders are not supported in a portal.
void deleteFolder(PortalFolder folder) |
Removes the specified folder from the portal.
void deletePortalItem(PortalItem portalItem) |
Removes the PortalItem portalItem from the portal.
Starts an operation that fetches the user's content at the root level (not in a folder).
Example:
Retrieve the model representing a user's folders:
Connections { target: portalUser function onFetchContentStatusChanged() { if (portalUser.fetchContentStatus !== Enums.TaskStatusCompleted) return; console.log("folders count = ", portalUser.folders.count); } } portalUser.fetchContent();
The content is made up of lists of PortalItem and PortalFolder objects.
Starts an operation that fetches the user's content within a specific folder (folderId).
The content is made up of lists of PortalItem objects.
void fetchFavoritesStatus(PortalItem portalItem) |
Starts an operation to determine whether PortalItem portalItem is in the user's favorites group.
The fetchFavoritesStatusStatus property shows the status of the operation.
See Loadable.
void movePortalItem(PortalItem portalItem, PortalFolder toFolder) |
Move item portalItem to the folder specified by toFolder (optional).
Passing null
for toFolder will move the item to the user's root folder.
void movePortalItems(list<PortalItem> portalItems, PortalFolder toFolder) |
Moves multiple PortalItems.
Move the items listed in portalItems to the folder specified by toFolder (optional).
Passing null
for toFolder will move the items to the user's root folder.
This method was introduced in Esri.ArcGISRuntime 100.1.
void removeFromFavorites(PortalItem portalItem) |
Removes the PortalItem portalItem from the user's favorites group.
See Loadable.
void setPortal(Portal*portal) |
Sets the portal this user is registered for.
portal: The portal
Warning: It is not possible to change the portal for a user which has already been loaded.