|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.portal.PortalUser
public class PortalUser
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 |
---|
public static void newInstance(Portal portal, String username, PortalListener<PortalUser> portalListener)
portal
- - portal for which the user is a memberusername
- - username as in the portalportalListener
- - callback listener that returns a portalpublic void fetchContent(PortalListener<PortalUserContent> portalListener)
portalListener
- - in the callback the content published by the user is returnedpublic void fetchContentInFolder(String folderId, PortalListener<PortalUserContent> portalListener)
folderId
- - id of the folder for which content must be fetchedportalListener
- - in the callback the folder content published by the user is returnedpublic void fetchThumbnail(PortalListener<byte[]> portalListener)
portalListener
- - the callback returns the thumbnail associated with the portalpublic static PortalUser fromJson(org.codehaus.jackson.JsonParser parser, Portal portal) throws Exception
Exception
public Portal getPortal()
public String getUsername()
public String getFullName()
public String getThumbnailFileName()
public byte[] getThumbnail()
public void setThumbnail(byte[] thumbnail)
thumbnail
- public String getEmail()
public List<String> getTags()
public long getCreated()
public long getModified()
public List<PortalGroup> getGroups()
public PortalAccess getAccess()
public String getOrganizationId()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |