Esri Geoportal Server
1.2.2

com.esri.gpt.catalog.arcgis.agportal.publication
Class AgpFolderRequest

java.lang.Object
  extended by com.esri.gpt.catalog.arcgis.agportal.publication.AgpBaseRequest
      extended by com.esri.gpt.catalog.arcgis.agportal.publication.AgpFolderRequest

public class AgpFolderRequest
extends AgpBaseRequest

Folder request.


Nested Class Summary
static class AgpFolderRequest.UuidToFolderMap
          Mapping between document UUIS and the folder.
 
Nested classes/interfaces inherited from class com.esri.gpt.catalog.arcgis.agportal.publication.AgpBaseRequest
AgpBaseRequest.AttrMap, AgpBaseRequest.ItemDesc, AgpBaseRequest.ItemEntry, AgpBaseRequest.ItemType
 
Field Summary
 
Fields inherited from class com.esri.gpt.catalog.arcgis.agportal.publication.AgpBaseRequest
credentialProvider, ep, requestContext, XSLTTEMPLATES
 
Constructor Summary
AgpFolderRequest(RequestContext requestContext, CredentialProvider credtialProvider)
          Creates instance of the request.
AgpFolderRequest(RequestContext requestContext, CredentialProvider credtialProvider, EndPoint endPoint)
          Creates instance of the request
 
Method Summary
 String findFolder(String itemId)
          Finds folder for the item.
 AgpFolderRequest.UuidToFolderMap listAll()
          Lists all records for a user
 
Methods inherited from class com.esri.gpt.catalog.arcgis.agportal.publication.AgpBaseRequest
checkError, execute, extractCredentialProvider, extractEsriItemAttributes, extractId, extractItemInfo, fetchToken, getCompiledTemplate, getFolderUrl, getItemUrl, processEsriItemAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgpFolderRequest

public AgpFolderRequest(RequestContext requestContext,
                        CredentialProvider credtialProvider)
Creates instance of the request.

Parameters:
requestContext - request context
credtialProvider - credential provider

AgpFolderRequest

public AgpFolderRequest(RequestContext requestContext,
                        CredentialProvider credtialProvider,
                        EndPoint endPoint)
Creates instance of the request

Parameters:
requestContext - request context
credtialProvider - credential provider
endPoint - end point
Method Detail

listAll

public AgpFolderRequest.UuidToFolderMap listAll()
                                         throws AgpServerException,
                                                AgpPublishException
Lists all records for a user

Returns:
item id to folder id mapping
Throws:
IOException - if accessing AGP fails
org.json.JSONException - if parsing JSON response from AGP fails
AgpServerException
AgpPublishException

findFolder

public String findFolder(String itemId)
                  throws AgpServerException,
                         AgpPublishException
Finds folder for the item.

Parameters:
itemId - item id
Returns:
folder id or null if item not found or empty string if item found on the root
Throws:
IOException - if accessing AGP fails
org.json.JSONException - if parsing JSON response from AGP fails
AgpServerException
AgpPublishException

Esri Geoportal Server
1.2.2

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.