com.esri.core.portal
Class PortalUser

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

public class PortalUser
extends Object

This class represents a registered user on a Portal.


Method Summary
 boolean equals(Object obj)
          
 void fetchContent(PortalListener<PortalUserContent> portalListener)
          Fetches the user's content.
 void fetchContentInFolder(String folderId, PortalListener<PortalUserContent> portalListener)
          Fetches the user's content that is in a specific folder.
 void fetchThumbnail(PortalListener<byte[]> portalListener)
          Fetches the user's thumbnail.
static PortalUser fromJson(org.codehaus.jackson.JsonParser parser, Portal portal)
           
 PortalAccess getAccess()
          Returns the access level of this user.
 long getCreated()
          Returns the creation date of the user's profile.
 String getEmail()
          Return the email address of the user.
 String getFullName()
          Return the user's full name.
 List<PortalGroup> getGroups()
          Returns all the groups that the user belongs to.
 long getModified()
          Returns the last date the user was modified.
 String getOrganizationId()
          Returns the id of the organization, if the user belongs to one.
 Portal getPortal()
          Returns the portal that contains this user.
 List<String> getTags()
          Returns a list of search tags associated with this user.
 byte[] getThumbnail()
          Returns the thumbnail of this user.
 String getThumbnailFileName()
          Returns the filename of the thumbnail of this user.
 String getUsername()
          Returns the user name.
 int hashCode()
          
static void newInstance(Portal portal, String username, PortalListener<PortalUser> portalListener)
          Initializes a portal user with a portal and a username.
 void setThumbnail(byte[] thumbnail)
          Sets the thumbnail of this user.
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

newInstance

public static void newInstance(Portal portal,
                               String username,
                               PortalListener<PortalUser> portalListener)
Initializes a portal user with a portal and a username.

Parameters:
portal - - portal for which the user is a member
username - - username as in the portal
portalListener - - callback listener that returns a portal

fetchContent

public void fetchContent(PortalListener<PortalUserContent> portalListener)
Fetches the user's content.

Parameters:
portalListener - - in the callback the content published by the user is returned

fetchContentInFolder

public void fetchContentInFolder(String folderId,
                                 PortalListener<PortalUserContent> portalListener)
Fetches the user's content that is in a specific folder.

Parameters:
folderId - - id of the folder for which content must be fetched
portalListener - - in the callback the folder content published by the user is returned

fetchThumbnail

public void fetchThumbnail(PortalListener<byte[]> portalListener)
Fetches the user's thumbnail.

Parameters:
portalListener - - the callback returns the thumbnail associated with the portal

fromJson

public static PortalUser fromJson(org.codehaus.jackson.JsonParser parser,
                                  Portal portal)
                           throws Exception
Throws:
Exception

getPortal

public Portal getPortal()
Returns the portal that contains this user.

Returns:
The portal that contains this user

getUsername

public String getUsername()
Returns the user name.

Returns:
The user name

getFullName

public String getFullName()
Return the user's full name.

Returns:
The user's full name

getThumbnailFileName

public String getThumbnailFileName()
Returns the filename of the thumbnail of this user.

Returns:
The filename of the thumbnail of this user

getThumbnail

public byte[] getThumbnail()
Returns the thumbnail of this user.

Returns:
The thumbnail of this user

setThumbnail

public void setThumbnail(byte[] thumbnail)
Sets the thumbnail of this user.

Parameters:
thumbnail -

getEmail

public String getEmail()
Return the email address of the user.

Returns:
The email address of the user

getTags

public List<String> getTags()
Returns a list of search tags associated with this user.

Returns:
A list of search tags associated with this user

getCreated

public long getCreated()
Returns the creation date of the user's profile.

Returns:
The creation date of the user's profile

getModified

public long getModified()
Returns the last date the user was modified.

Returns:
The last date the user was modified

getGroups

public List<PortalGroup> getGroups()
Returns all the groups that the user belongs to.

Returns:
All the groups that the user belongs to

getAccess

public PortalAccess getAccess()
Returns the access level of this user.

Returns:
The access level of this user

getOrganizationId

public String getOrganizationId()
Returns the id of the organization, if the user belongs to one.

Returns:
The id of the organization, if the user belongs to one

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.