Esri Geoportal Server
1.2.2

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

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

public class AgpAddRequest
extends AgpBaseRequest

ArcGIS Portal publication request.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.gpt.catalog.arcgis.agportal.publication.AgpBaseRequest
AgpBaseRequest.AttrMap, AgpBaseRequest.ItemDesc, AgpBaseRequest.ItemEntry, AgpBaseRequest.ItemType
 
Field Summary
protected  boolean overwrite
           
 
Fields inherited from class com.esri.gpt.catalog.arcgis.agportal.publication.AgpBaseRequest
credentialProvider, ep, requestContext, XSLTTEMPLATES
 
Constructor Summary
AgpAddRequest(RequestContext requestContext, CredentialProvider credentialProvider, EndPoint endPoint, String folderName, String metadata)
          Creates instance of the request.
AgpAddRequest(RequestContext requestContext, CredentialProvider credentialProvider, String folderName, String metadata)
          Creates instance of the request.
 
Method Summary
 String execute()
          Executes request.
 String getFolderName()
          Gets item folder name.
 String getMetadata()
          Gets metadata.
 boolean getOverwrite()
          Checks if overwrite already existing item.
 void setOverwrite(boolean overwrite)
          Overwrites item if already exists.
 
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
 

Field Detail

overwrite

protected boolean overwrite
Constructor Detail

AgpAddRequest

public AgpAddRequest(RequestContext requestContext,
                     CredentialProvider credentialProvider,
                     String folderName,
                     String metadata)
Creates instance of the request. End-point is extracted from the configuration file.

Parameters:
requestContext - request context
credentialProvider - credential provider
folderName - folder name
metadata - metadata

AgpAddRequest

public AgpAddRequest(RequestContext requestContext,
                     CredentialProvider credentialProvider,
                     EndPoint endPoint,
                     String folderName,
                     String metadata)
Creates instance of the request.

Parameters:
requestContext - request context
credentialProvider - credential provider
endPoint - end-point definition
folderName - folder name
metadata - metadata
Method Detail

getMetadata

public String getMetadata()
Gets metadata.

Returns:
metadata

getFolderName

public String getFolderName()
Gets item folder name.

Returns:
folder name

getOverwrite

public boolean getOverwrite()
Checks if overwrite already existing item.

Returns:
true to overwrite already existing item

setOverwrite

public void setOverwrite(boolean overwrite)
Overwrites item if already exists.

Parameters:
overwrite - true to overwrite already existing item

execute

public String execute()
               throws AgpPublishException,
                      AgpServerException
Executes request.

Returns:
new item id
Throws:
AgpServerException - server exception
AgpPublishException - publish exception

Esri Geoportal Server
1.2.2

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