|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.portal.PortalItem
public class PortalItem
This class represents an Item stored in a Portal. The Item is the URI returned by all search operations. The Item
class only contains information about an item stored in the portal. The actual data (WebMap, FeatureCollection, etc)
will be retrieved when creating a WebMap.newInstance(PortalItem, CallbackListener)
.
Method Summary | |
---|---|
void |
clear()
Destroys the thumbnail and other objects internally held by this PortalItem. |
boolean |
equals(Object obj)
|
void |
fetchComments(PortalListener<List<PortalItemComment>> portalListener)
Kicks off an operation that fetches comments for the item. |
static void |
fetchItem(Portal portal,
String itemId,
PortalListener<PortalItem> portalListener)
Returns a portal item using a portal and item id. |
void |
fetchThumbnail(PortalListener<byte[]> portalListener)
Kicks off an operation that fetches the thumbnail. |
static PortalItem |
fromJson(org.codehaus.jackson.JsonParser parser,
Portal portal)
|
PortalAccess |
getAccess()
Returns the access level of this item. |
float |
getAvgRating()
Returns the average rating for this item. |
long |
getCreated()
Returns the date on which this item was created. |
String |
getCredits()
Returns the credit information of this item. |
String |
getDescription()
Returns a description for this item. |
Envelope |
getExtent()
Returns the extent for this item. |
String |
getItemId()
Returns the id for this item. |
String |
getLicenseInfo()
Returns the information about licenses or restrictions to view or edit the item |
long |
getModified()
Returns the date on which this item was last modified. |
int |
getNumComments()
Returns the number of comments for this item. |
int |
getNumRatings()
Returns the number of ratings for this item. |
int |
getNumViews()
Returns the number of times this item has been viewed. |
String |
getOwner()
Returns the owner of this item. |
Portal |
getPortal()
Returns the portal that contains this item. |
String |
getSnippet()
Returns a snippet description associated with this item. |
SpatialReference |
getSpatialReference()
Returns the SpatialReference of this item. |
List<String> |
getTags()
Returns a list of tags associated with this item. |
byte[] |
getThumbnail()
Returns the thumbnail of this item. |
String |
getThumbnailFileName()
Returns the filename of the thumbnail of this item. |
String |
getTitle()
Returns the title of this item. |
PortalItemType |
getType()
Returns the type of this item. |
int |
hashCode()
|
void |
setPortal(Portal portal)
Sets the portal that contains this item. |
void |
setTitle(String title)
Sets the title of this item. |
void |
setType(PortalItemType type)
Sets the type of this item. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static void fetchItem(Portal portal, String itemId, PortalListener<PortalItem> portalListener)
portal
- - portal for which items should be fetcheditemId
- - item id for which item information is requiredportalListener
- - fetches the portal itempublic void fetchComments(PortalListener<List<PortalItemComment>> portalListener)
portalListener
- - fetches the portal comment for the item.public void fetchThumbnail(PortalListener<byte[]> portalListener)
portalListener
- fetches the thumbnail in its own thread.public static PortalItem fromJson(org.codehaus.jackson.JsonParser parser, Portal portal) throws Exception
Exception
public Portal getPortal()
public void setPortal(Portal portal)
portal
- public String getItemId()
public String getOwner()
public long getCreated()
public long getModified()
public String getTitle()
public void setTitle(String title)
title
- public PortalItemType getType()
PortalItemType
of this itempublic void setType(PortalItemType type)
type
- public String getDescription()
public List<String> getTags()
public String getSnippet()
public String getThumbnailFileName()
public byte[] getThumbnail()
public Envelope getExtent()
public SpatialReference getSpatialReference()
SpatialReference
of this itempublic String getCredits()
public String getLicenseInfo()
public int getNumComments()
public int getNumRatings()
public float getAvgRating()
public int getNumViews()
public PortalAccess getAccess()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |