|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.core.internal.catalog.Item
public class Item
This class represents an Item stored in arcgis.com. The Item is the URI returned by all search operations. The Item class only contains information about an item stored in the server.
Nested Class Summary | |
---|---|
static class |
Item.ItemType
Represents the type of an Item stored in arcgis.com. arcgis.com allows users to store a myriad of Items types classified by the medium in which the Items are stored on the server (File, Text or URL) and the ArcGIS applications that an Item type is applicable for. |
static class |
Item.SortField
The fields of an Item stored as a back-end database table on the server, that can be used to sort search results |
Constructor Summary | |
---|---|
|
Item()
Constructs an empty Item. |
protected |
Item(URL url)
Constructs an empty Item with a URL to the Item stored in arcgis.com. |
Method Summary | ||
---|---|---|
void |
clear()
Destroys the thumbnail and license information internally held by this Item |
|
|
compare(T arg0)
Internal method that all instances of a PageableResultType must implement. |
|
boolean |
fromJson(org.codehaus.jackson.JsonParser parser,
com.esri.core.internal.catalog.Filter filter,
Catalog catalog)
Sets the internal state of the Item with values contained in the Json response. |
|
String |
getAccess()
Returns the access settings on this Item |
|
float |
getAvgRating()
Returns the average ratings for this Item |
|
String |
getDescription()
Returns a description for this Item |
|
String |
getDocumentation()
Returns the documentation for this Item |
|
Envelope |
getExtent()
Returns the extent for this Item |
|
String |
getGuid()
Returns the Guid for this Item |
|
String |
getId()
Returns the id for this Item. |
|
List<String> |
getKeywords()
Returns a list of keywords associated with this Item |
|
String |
getLicenseInfoHtml()
Returns the license information as HTML string |
|
String |
getMCSAddress()
|
|
Date |
getModifiedDate()
Return 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 ratings for this Item |
|
int |
getNumViews()
Returns the number of time this Item has been viewed |
|
User |
getOwner()
Returns the owner of this Item |
|
String |
getOwnerName()
Returns the name of this Item's owner. |
|
int |
getSize()
Returns the size of this Item |
|
String |
getSnippet()
Returns a snippet description associated with this Item |
|
SpatialReference |
getSpRef()
Returns the SpatialReference of this Item |
|
List<String> |
getTags()
Returns a list of tags associated with this Item |
|
byte[] |
getThumbnail()
Returns a thumbnail for this item. |
|
byte[] |
getThumbnailIfExists()
Returns a thumbnail if it was previously fetched from the server and is cached in the Item . |
|
String |
getTitle()
Returns the title of this Item |
|
Item.ItemType |
getType()
Returns the type of this Item |
|
Date |
getUploaded()
Returns the date on which this Item was uploaded |
|
URL |
getUrl()
Returns the URL of this Item. |
|
void |
setMCSAddress(String mcsAddress)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Item(URL url)
fromJson(JsonParser, Filter, Catalog)
method.
url
- a URL to an Item
stored on arcgis.compublic Item()
fromJson(JsonParser, Filter, Catalog)
method.
Method Detail |
---|
public boolean fromJson(org.codehaus.jackson.JsonParser parser, com.esri.core.internal.catalog.Filter filter, Catalog catalog) throws Exception
fromJson
in interface PageableResultType
parser
- the Json responsefilter
- a client side filtercatalog
- a reference to the Catalog
Exception
public String getId()
public User getOwner() throws CatalogException
CatalogException
public String getOwnerName()
public Date getUploaded()
public Date getModifiedDate()
public String getGuid()
public String getName()
public URL getUrl()
public String getTitle()
public List<String> getKeywords()
public String getDescription()
public List<String> getTags()
public String getSnippet()
public byte[] getThumbnail()
public byte[] getThumbnailIfExists()
Item
. If a
thumbanail has not yet been fetched, then this method returns immediately without fetching the thumbnail from the
server. This method primarily exists for applications that want to quickly test for the existence of the thumbnail,
possibly on a UI thread, and fetch the thumbnail from the server on a separate worker thread if necessary.
null
if the thumbnail is not cached in the Item
else returns an array of image
bytespublic void clear()
public String getDocumentation()
public Envelope getExtent()
Envelope
public SpatialReference getSpRef()
SpatialReference
public String getLicenseInfoHtml()
public String getAccess()
public int getNumComments()
public int getNumRatings()
public int getSize()
public float getAvgRating()
public int getNumViews()
public Item.ItemType getType()
#Item.ItemType
public <T extends PageableResultType> int compare(T arg0)
PageableResultType
compare
in interface PageableResultType
arg0
- an instance of a PageableResultType
public String getMCSAddress()
public void setMCSAddress(String mcsAddress)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |