Package com.esri.arcgisruntime.portal
Class PortalUserContent
- java.lang.Object
-
- com.esri.arcgisruntime.portal.PortalUserContent
-
public final class PortalUserContent extends java.lang.Object
Represents user content in a folder. This can include portal items and subfolders.- Since:
- 100.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortalFolder
getCurrentFolder()
Gets the folder in which this content is located.java.util.List<PortalFolder>
getFolders()
Gets the subfolders in the current folder.java.util.List<PortalItem>
getItems()
Gets the items in the current folder.java.lang.String
getUsername()
Gets the username of the user that owns the content.
-
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Gets the username of the user that owns the content.- Returns:
- the username
- Since:
- 100.0.0
-
getCurrentFolder
public PortalFolder getCurrentFolder()
Gets the folder in which this content is located.- Returns:
- the folder in which this content is located, or null if this content is located in the root folder
- Since:
- 100.0.0
-
getItems
public java.util.List<PortalItem> getItems()
Gets the items in the current folder.- Returns:
- an unmodifiable list of items in the current folder. This will throw an UnsupportedOperationException if an attempt is made to modify it.
- Since:
- 100.0.0
-
getFolders
public java.util.List<PortalFolder> getFolders()
Gets the subfolders in the current folder.- Returns:
- an unmodifiable list of subfolders in the current folder. This will throw an UnsupportedOperationException if an attempt is made to modify it.
- Since:
- 100.0.0
-
-