|
||||||||||
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
.
Method Summary | |
---|---|
void |
clear()
Destroys the thumbnail and other objects internally held by this PortalItem. |
boolean |
equals(Object obj)
|
List<PortalItemComment> |
fetchComments()
Kicks off an operation that fetches comments for the item. |
void |
fetchComments(PortalListener<List<PortalItemComment>> portalListener)
Deprecated. please use fetchComments() instead. |
InputStream |
fetchData()
Kicks off an operation that fetches data for the item. |
static PortalItem |
fetchItem(Portal portal,
String itemId)
Returns a portal item using a portal and item id. |
static void |
fetchItem(Portal portal,
String itemId,
PortalListener<PortalItem> portalListener)
Deprecated. please use fetchItem(Portal, String) instead. |
byte[] |
fetchThumbnail()
Kicks off an operation that fetches the thumbnail. |
void |
fetchThumbnail(PortalListener<byte[]> portalListener)
Kicks off an operation that fetches the thumbnail. |
static PortalItem |
fromJson(org.codehaus.jackson.JsonParser parser,
Portal portal)
Creates a PortalItem from json string. |
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. |
String |
getName()
Returns the name of this item. |
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. |
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()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
@Deprecated public static void fetchItem(Portal portal, String itemId, PortalListener<PortalItem> portalListener)
fetchItem(Portal, String)
instead.
portal
- - portal for which items should be fetcheditemId
- - item id for which item information is requiredportalListener
- - fetches the portal itempublic static PortalItem fetchItem(Portal portal, String itemId) throws Exception
portal
- - portal for which items should be fetcheditemId
- - item id for which item information is required
Exception
- the exceptionpublic InputStream fetchData() throws Exception
Exception
- the exception object@Deprecated public void fetchComments(PortalListener<List<PortalItemComment>> portalListener)
fetchComments()
instead.
portalListener
- - fetches the portal comment for the item.public List<PortalItemComment> fetchComments() throws Exception
Exception
- if unable to complete the request.public void fetchThumbnail(PortalListener<byte[]> portalListener)
portalListener
- fetches the thumbnail in its own thread.public byte[] fetchThumbnail() throws Exception
Exception
- if unable to complete the request.public static PortalItem fromJson(org.codehaus.jackson.JsonParser parser, Portal portal) throws Exception
parser
- the json to parseportal
- the portal which contains the item.
Exception
- if unable to complete the request.public Portal getPortal()
public String getItemId()
public String getOwner()
public long getCreated()
public long getModified()
public String getName()
public String getTitle()
public PortalItemType getType()
PortalItemType
of this itempublic String getDescription()
public List<String> getTags()
public String getSnippet()
public String getThumbnailFileName()
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 |