PortalUser

Represents a registered user of a portal.

Since

200.0.0

Constructors

Link copied to clipboard
constructor(portal: Portal, username: String)

Constructs a PortalUser with the given Portal and user name.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The access level of this user, which determines who can access the user descriptive information.

Link copied to clipboard

The number of credits allocated to the user.

Link copied to clipboard

The number of credits available to the user.

Link copied to clipboard

The member categories that the user is assigned to.

Link copied to clipboard

The date this user was created.

Link copied to clipboard

The description of this user.

Link copied to clipboard

The email address of this user.

Link copied to clipboard

The ID of the favorites group for this user.

Link copied to clipboard

The first name of this user.

Link copied to clipboard

The full name of this user.

Link copied to clipboard

A list of the groups this user belongs to. The resultant PortalGroup objects are fully populated and have a load status of com.arcgismaps.LoadStatus.Loaded. An empty list is returned if this PortalUser is not yet loaded.

Link copied to clipboard

The last name of this user.

Link copied to clipboard

The date on which this user was last modified.

Link copied to clipboard

The ID of the organization to which the user belongs, empty if none.

Link copied to clipboard

the Portal in which this user exists

Link copied to clipboard

A list of PortalPrivileges defining the fine-grained privileges possessed by this user.

Link copied to clipboard

The role in the organization of this user.

Link copied to clipboard

A list of the tags associated with this user.

Link copied to clipboard

The thumbnail for this user.

Link copied to clipboard

The preferred units of measurement for this user.

Link copied to clipboard

The user defined name or null if not specified.

Link copied to clipboard

The ID of this user or null if not specified.

Link copied to clipboard

the username of the PortalUser

Inherited properties

Link copied to clipboard
open override val loadStatus: StateFlow<LoadStatus>

The load status.

Functions

Link copied to clipboard
suspend fun addPortalItem(portalItem: PortalItem, contentParameters: PortalItemContentParameters, portalFolder: PortalFolder? = null): Result<Unit>

Adds the specified item to the portal in the given folder.

Link copied to clipboard
suspend fun addToFavorites(portalItem: PortalItem): Result<Unit>

Adds the item to the favorites group.

Link copied to clipboard
suspend fun createFolder(title: String): Result<PortalFolder>

Creates a new folder with the given title in the user's root folder. Nested folders are not supported and two folders that belong to the same user cannot have the same title.

Link copied to clipboard
suspend fun deleteFolder(folder: PortalFolder): Result<Unit>

Deletes the specified folder from the portal. The folder must belong to this user. Deleting a folder deletes all the items that it contains. The user's root folder is not deletable.

Link copied to clipboard
suspend fun deletePortalItem(portalItem: PortalItem): Result<Unit>

Deletes the specified item from the portal.

Link copied to clipboard

Fetches content from this user's root folder.

Link copied to clipboard

Fetches content from a specific folder belonging to this user.

Link copied to clipboard
suspend fun fetchFavoritesStatus(portalItem: PortalItem): Result<Boolean>

Fetches the favorite status for the portal item.

Link copied to clipboard
suspend fun movePortalItem(portalItem: PortalItem, toFolder: PortalFolder? = null): Result<Unit>

Moves the specified item to the specified folder.

Link copied to clipboard
suspend fun movePortalItems(portalItems: Iterable<PortalItem>, toFolder: PortalFolder? = null): Result<List<PortalItemMoveError>>

Moves the specified items to the specified folder.

Link copied to clipboard
suspend fun removeFromFavorites(portalItem: PortalItem): Result<Unit>

Removes the portal item from the favorites group.

Link copied to clipboard
open override fun toJson(): String

Convert an object to JSON string.

Inherited functions

Link copied to clipboard
open override fun cancelLoad()

Cancels loading metadata for the Loadable object.

Link copied to clipboard
open suspend override fun load(): Result<Unit>

Loads the metadata for the object.

Link copied to clipboard
open suspend override fun retryLoad(): Result<Unit>

Loads or retries loading metadata for the object.