public class

PortalFolder

extends Object
java.lang.Object
   ↳ com.esri.core.portal.PortalFolder

Class Overview

This class represents a folder associated with a PortalUser's profile, maintained in a Portal. Content created by users can be stored and organized within folders on their Portal. Folders can be at most one level deep and existing under the "root" folder. Only signed in users can view their folders and the contents within.

Summary

Public Constructors
PortalFolder(String folderId, String title, String username, long created)
Instantiates an object of PortalFolder.
Public Methods
boolean equals(Object obj)
static PortalFolder fromJson(JsonParser parser)
Creates a PortalFolder from JSON.
long getCreated()
Returns the creation date of the folder as a long suitable for use with the Date(long) constructor.
String getFolderId()
Returns the folder's id.
String getTitle()
Returns the folder's title.
String getUsername()
Returns the name of the owner of the folder.
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PortalFolder (String folderId, String title, String username, long created)

Instantiates an object of PortalFolder.

Parameters
folderId String: the id of the folder
title String: the title of the folder
username String: the name of the owner of the folder
created long: the creation date of the folder

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public static PortalFolder fromJson (JsonParser parser)

Creates a PortalFolder from JSON.

Parameters
parser JsonParser: contains the JSON to parse
Returns
PortalFolder null or a new instance of PortalFolder
Throws
Exception if the JSON is not valid

public long getCreated ()

Returns the creation date of the folder as a long suitable for use with the Date(long) constructor.

Returns
long the creation date of the folder

public String getFolderId ()

Returns the folder's id.

Returns
String the folder's id

public String getTitle ()

Returns the folder's title.

Returns
String the folder's title

public String getUsername ()

Returns the name of the owner of the folder.

Returns
String the name of the owner of the folder

public int hashCode ()

Returns
int

public String toString ()

Returns
String