com.esri.adf.web.ags.tasks
Class EditingTaskUtil

java.lang.Object
  extended by com.esri.adf.web.ags.tasks.EditingTaskUtil

Deprecated. This class is deprecated as of ArcGIS Java Server 9.3.1, use the editing funtionality from EditBean

@Deprecated
public class EditingTaskUtil
extends java.lang.Object

A help class for feature level operations.


Field Summary
static java.lang.String NULL_STRING
          Deprecated.  
 
Method Summary
static int addFeature(com.esri.arcgis.carto.IFeatureLayer editLayer, com.esri.arcgis.geometry.IGeometry geom)
          Deprecated. Adds a geometry to a feature layer.
static double convertPixelToleranceToDistance(int pixelTol, WebMap map, com.esri.arcgis.geometry.ISpatialReference refTo, AGSLocalMapResource resource)
          Deprecated. Converts tolerance setting to distance in map's unit.
static void deleteFeature(com.esri.arcgis.geodatabase.ISelectionSet selSet)
          Deprecated. Deletes a feature from a selection set.
static java.util.LinkedHashMap<java.lang.Object,java.lang.String> domainToMap(com.esri.arcgis.geodatabase.ICodedValueDomain cd)
          Deprecated. Converts a ICodedValueDomain object to a map.
static java.lang.String getDbAndFCRegistrationKey(com.esri.arcgis.carto.IFeatureLayer layer)
          Deprecated. Creates key that uniquely distinguishes workspace connection and feature-class registration.
static com.esri.arcgis.geometry.ILine getLinefromWebLine(AGSLocalMapResource currentResource, WebPolyline wline)
          Deprecated. Converts a ILine from a web line.
static com.esri.arcgis.geometry.ISpatialReference getSpatialReference(com.esri.arcgis.carto.IFeatureLayer flayer)
          Deprecated. Gets spatial reference from a feature layer.
static void getVersionID(java.util.HashSet<java.lang.String> versions, com.esri.arcgis.carto.IMap map, java.util.Set<java.lang.String> verList, com.esri.arcgis.server.IServerContext ctx, java.lang.String wsID)
          Deprecated. Retrieves versions from a map service.
static void mergeFeature(com.esri.arcgis.carto.IFeatureLayer editLayer)
          Deprecated. Merges selected features.
static com.esri.arcgis.geometry.ISpatialReference toISpatialReference(WebSpatialReference ref, com.esri.arcgis.server.IServerContext ctx)
          Deprecated. Converts WebSpatialReference to ISpatialReference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_STRING

public static java.lang.String NULL_STRING
Deprecated. 
Method Detail

addFeature

public static int addFeature(com.esri.arcgis.carto.IFeatureLayer editLayer,
                             com.esri.arcgis.geometry.IGeometry geom)
Deprecated. 
Adds a geometry to a feature layer.

Parameters:
editLayer - a feature layer
geom - geometry
Returns:
the feature OID or -1 if not succeed.

deleteFeature

public static void deleteFeature(com.esri.arcgis.geodatabase.ISelectionSet selSet)
                          throws com.esri.arcgis.interop.AutomationException,
                                 java.io.IOException
Deprecated. 
Deletes a feature from a selection set.

Parameters:
selSet - the selection set.
Throws:
com.esri.arcgis.interop.AutomationException
java.io.IOException

convertPixelToleranceToDistance

public static double convertPixelToleranceToDistance(int pixelTol,
                                                     WebMap map,
                                                     com.esri.arcgis.geometry.ISpatialReference refTo,
                                                     AGSLocalMapResource resource)
Deprecated. 
Converts tolerance setting to distance in map's unit.

Parameters:
pixelTol - tolerance in pixels.
map - current web map reference.

getSpatialReference

public static com.esri.arcgis.geometry.ISpatialReference getSpatialReference(com.esri.arcgis.carto.IFeatureLayer flayer)
                                                                      throws java.io.IOException,
                                                                             com.esri.arcgis.interop.AutomationException
Deprecated. 
Gets spatial reference from a feature layer.

Parameters:
flayer - the layer
Throws:
java.io.IOException
com.esri.arcgis.interop.AutomationException

mergeFeature

public static void mergeFeature(com.esri.arcgis.carto.IFeatureLayer editLayer)
                         throws com.esri.arcgis.interop.AutomationException,
                                java.io.IOException
Deprecated. 
Merges selected features.

Parameters:
editLayer - target feature layer.
Throws:
com.esri.arcgis.interop.AutomationException
java.io.IOException

getLinefromWebLine

public static com.esri.arcgis.geometry.ILine getLinefromWebLine(AGSLocalMapResource currentResource,
                                                                WebPolyline wline)
                                                         throws com.esri.arcgis.interop.AutomationException,
                                                                java.io.IOException
Deprecated. 
Converts a ILine from a web line.

Parameters:
currentResource - current resource
wline - source
Returns:
converted ILine
Throws:
com.esri.arcgis.interop.AutomationException
java.io.IOException

toISpatialReference

public static com.esri.arcgis.geometry.ISpatialReference toISpatialReference(WebSpatialReference ref,
                                                                             com.esri.arcgis.server.IServerContext ctx)
Deprecated. 
Converts WebSpatialReference to ISpatialReference.

Parameters:
ref - the WebSpatialReference to convert
ctx -
Returns:
the converted ISpatialReference.

domainToMap

public static java.util.LinkedHashMap<java.lang.Object,java.lang.String> domainToMap(com.esri.arcgis.geodatabase.ICodedValueDomain cd)
                                                                              throws java.io.IOException,
                                                                                     com.esri.arcgis.interop.AutomationException
Deprecated. 
Converts a ICodedValueDomain object to a map.

Parameters:
cd - domain
Returns:
java map object.
Throws:
java.io.IOException
com.esri.arcgis.interop.AutomationException

getDbAndFCRegistrationKey

public static java.lang.String getDbAndFCRegistrationKey(com.esri.arcgis.carto.IFeatureLayer layer)
Deprecated. 
Creates key that uniquely distinguishes workspace connection and feature-class registration.

Parameters:
layer - target feature layer.
Returns:
the workspace ID

getVersionID

public static void getVersionID(java.util.HashSet<java.lang.String> versions,
                                com.esri.arcgis.carto.IMap map,
                                java.util.Set<java.lang.String> verList,
                                com.esri.arcgis.server.IServerContext ctx,
                                java.lang.String wsID)
                         throws java.io.IOException,
                                com.esri.arcgis.interop.AutomationException
Deprecated. 
Retrieves versions from a map service.

Parameters:
versions - the map to hold version names
map - map object from a map service.
verList - editable version list from configuration
ctx - current server context
wsID - workspace ID from configuration.
Throws:
java.io.IOException
com.esri.arcgis.interop.AutomationException