|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.core.internal.catalog.Catalog
public class Catalog
This class is used for connecting to arcgis.com and searching for Items, Users and Groups
Constructor Summary | |
---|---|
Catalog(URL url)
Constructs a Catalog with a URL to arcgis.com or a Mobile content server for which the URL takes the form http:// |
Method Summary | |
---|---|
static void |
getItem(String address,
String itemId,
String username,
String password,
CallbackListener<Item> callbackListener)
|
List<Folder> |
getMyContents()
Return contents of the signed in user. |
List<Group> |
getMyGroups()
Returns the groups that the signed in user belongs to. |
User |
getSignedInUser()
Get information about the signed in user. |
protected URL |
getUrl()
Internal method to return the base URL arcgis.com catalog is connected to. |
protected String |
getUserToken()
Internal method to obtain the signed in user's token to send requests to the server. |
static void |
getWebMap(Item item,
String username,
String password,
CallbackListener<WebMap> callbackListener)
|
static void |
getWebMap(String address,
String itemId,
String username,
String password,
CallbackListener<WebMap> callbackListener)
|
List<Folder> |
getWebMapsFromContentServer()
Retrieves publicly accessible WebMaps organized within Folders, from an ArcGIS Mobile content server. |
ResultCursor<Item> |
searchFeaturedMaps(Item.ItemType type)
Returns Items that are classified as 'Featured Maps' |
ResultCursor<Group> |
searchGroups(String query,
Group.SortField sortField,
SortOrder sortOrder)
Returns Groups that match the search criteria. |
ResultCursor<Item> |
searchItems(String query,
Item.ItemType type,
Item.SortField sortField,
SortOrder sortOrder)
Returns Items that match the search criteria. |
ResultCursor<User> |
searchUsers(String query,
User.SortField sortField,
SortOrder sortOrder)
Returns Users that match the search criteria. |
void |
setDefaultTokenExpirationTime(long millis)
Changes the default token expiration time for a signed in user. |
void |
signIn(String uname,
String pwd)
Allows a user to sign into an arcgis.com |
void |
signInToMCS(String uname,
String pwd)
Allows a user to sign into a mobile content server. |
void |
signOut()
Signs the user out of arcgis.com |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Catalog(URL url)
url
- a URL to arcgis.com or a Mobile content serverMethod Detail |
---|
public void setDefaultTokenExpirationTime(long millis) throws CatalogException
millis
- time in millis
CatalogException
- if the specified time in millis exceeds the maximum token expiration timepublic void signInToMCS(String uname, String pwd) throws EsriSecurityException
uname
- usernamepwd
- password
EsriSecurityException
- if there are problems signing inpublic void signIn(String uname, String pwd) throws CatalogException
uname
- usernamepwd
- password
CatalogException
- if there are problems signing inpublic List<Folder> getMyContents() throws CatalogException
CatalogException
- if the user is not signed in or there are problems obtaining a response from the serverpublic List<Group> getMyGroups() throws CatalogException
CatalogException
- if the user is not signed in or there are problems obtaining a response from the serverpublic void signOut()
public User getSignedInUser() throws CatalogException
CatalogException
- if the user is not signed in or there are problems obtaining a response from the serverpublic ResultCursor<Item> searchFeaturedMaps(Item.ItemType type) throws CatalogException
type
- the type of Item
CatalogException
- if there are problems obtaining a response from the serverpublic List<Folder> getWebMapsFromContentServer() throws CatalogException
CatalogException
public ResultCursor<Item> searchItems(String query, Item.ItemType type, Item.SortField sortField, SortOrder sortOrder) throws CatalogException
query
string could be a simple keyword search string or an advanced search string consisting of
field names of an Item.
For example, to search for all items that have the keyword "San Francisco" the value of query
would be "San Francisco". On the other hand, to search for all Items that have the title "San Francisco" and
are owned by the user 'esri', query
would be "title:"San Franscisco" AND owner:esri"
query
- the query Stringtype
- the type of ItemsortField
- the field that must be used to sort the the search resultssortOrder
- the sort order
CatalogException
- if there are problems obtaining a response from the serverpublic ResultCursor<Group> searchGroups(String query, Group.SortField sortField, SortOrder sortOrder) throws CatalogException
query
string could be a simple keyword search string or an advanced search string consisting of
field names of an Group.
For example, to search for all Groups that have the keyword "Redlands" the value of query
would be "Redlands". On the other hand, to search for all Groups that have the title "Redlands" and
are owned by the user 'esri', query
would be "title:"Redlands" AND owner:esri"
query
- the query StringsortField
- the field that must be used to sort the the search resultssortOrder
- the sort order
CatalogException
- if there are problems obtaining a response from the serverpublic ResultCursor<User> searchUsers(String query, User.SortField sortField, SortOrder sortOrder) throws CatalogException
query
would be "john"
query
- the query StringsortField
- the field that must be used to sort the the search resultssortOrder
- the sort order
CatalogException
- if there are problems obtaining a response from the serverprotected String getUserToken() throws CatalogException
CatalogException
- if there are problems in obtaining a new tokenprotected URL getUrl()
public static void getItem(String address, String itemId, String username, String password, CallbackListener<Item> callbackListener)
public static void getWebMap(String address, String itemId, String username, String password, CallbackListener<WebMap> callbackListener)
public static void getWebMap(Item item, String username, String password, CallbackListener<WebMap> callbackListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |