com.esri.core.portal
Class PortalFolder

java.lang.Object
  extended by com.esri.core.portal.PortalFolder

public class PortalFolder
extends Object

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.

Since:
1.0

Constructor Summary
PortalFolder(String folderId, String title, String username, long created)
          Instantiates an object of PortalFolder.
 
Method Summary
 boolean equals(Object obj)
          
static PortalFolder fromJson(org.codehaus.jackson.JsonParser parser)
          Creates a PortalFolder from json.
 long getCreated()
          Returns the created date of the folder as a long suitable for use with the Date.Date(long) constructor.
 String getFolderId()
          Returns the folder's id.
 String getTitle()
          Returns the folder's title.
 String getUsername()
          Returns the owner of the folder.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortalFolder

public PortalFolder(String folderId,
                    String title,
                    String username,
                    long created)
Instantiates an object of PortalFolder.

Parameters:
folderId - the id of the folder
title - the title of the folder
username - the user created the folder.
created - returns true if the folder is created.
Since:
1.0
Method Detail

fromJson

public static PortalFolder fromJson(org.codehaus.jackson.JsonParser parser)
                             throws Exception
Creates a PortalFolder from json.

Parameters:
parser - the json to parse.
Returns:
the null or an new instance of the PortalFolder.
Throws:
Exception - if json string is not valid.
Since:
1.0

getFolderId

public String getFolderId()
Returns the folder's id.

Returns:
The folder's id
Since:
1.0

getTitle

public String getTitle()
Returns the folder's title.

Returns:
The folder's title
Since:
1.0

getUsername

public String getUsername()
Returns the owner of the folder.

Returns:
The owner of the folder
Since:
1.0

getCreated

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

Returns:
The created date of the folder
Since:
1.0

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.