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

java.lang.Object
  extended by com.esri.adf.web.ags.tasks.EditingConfig
All Implemented Interfaces:
java.io.Serializable

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

@Deprecated
public class EditingConfig
extends java.lang.Object
implements java.io.Serializable

EditingConfig is a MBean, which contains some predefined properties of a Editing Task. It can be instantiated from a face-config.xml.

 <managed-bean>
 <managed-bean-name>edit1</managed-bean-name>
 <managed-bean-class>com.esri.adf.web.ags.tasks.EditingTask</managed-bean-class>
 <managed-bean-scope>session</managed-bean-scope>
 <managed-property>
 <property-name>webContext</property-name>
 <value>#{mapContext}</value>
 </managed-property>
 <managed-property>
 <property-name>taskConfig</property-name>
 <value>#{taskConfig1}</value>
 </managed-property>
 </managed-bean>
 <managed-bean>
 <managed-bean-name>taskConfig1</managed-bean-name>
 <managed-bean-class>com.esri.adf.web.ags.tasks.EditingConfig</managed-bean-class>
 <managed-bean-scope>session</managed-bean-scope>
 ...
 
The configuration of a Editing task can be done through Task Manager. The manager will generate the face-config.xml when creating a web application. You can change the face-config.xml to override those settings in the runtime.

See Also:
Serialized Form

Constructor Summary
EditingConfig()
          Deprecated.  
 
Method Summary
 java.lang.String getConflictMode()
          Deprecated. Gets reconcile rules.
 java.lang.String getConflictWin()
          Deprecated. Gets reconcile rules.
 java.lang.String getHlColor()
          Deprecated. Gets the highlight color.
 java.lang.String getLayers()
          Deprecated. Gets the editable layers.
 GISResource getResource()
          Deprecated. Gets the Map Service for the editing task.
 java.lang.String getResourceId()
          Deprecated. Gets the ID of the Map Resource.
 java.lang.String getSdLayers()
          Deprecated. Gets snapping layers.
 java.lang.String getSeLayers()
          Deprecated. Gets snapping layers.
 int getSnapTolerance()
          Deprecated. Gets the snapping tolerance in pixels.
 java.lang.String getSvLayers()
          Deprecated. Gets snapping layers.
 java.lang.String getTaskName()
          Deprecated. Gets the name of the task.
 int getTolerance()
          Deprecated. Gets the search tolerance in pixels.
 java.lang.String getVersions()
          Deprecated. Gets the editable versions.
 java.lang.String getVerticesColor()
          Deprecated. Gets the color of vertices.
 java.lang.String getWorkspaceID()
          Deprecated. A workspace ID is a unique ID of workspace.
 boolean isAddFeatures()
          Deprecated. Returns true if Add Features function is enabled.
 boolean isEditAttributes()
          Deprecated. Returns true when Edit Feature Attributes function is enable.
 boolean isEditFeatures()
          Deprecated. Returns true when Features Editing functions are enabled.
 void setAddFeatures(boolean addFeatures)
          Deprecated. Sets to true to enable Add Features function.
 void setConflictMode(java.lang.String conflictMode)
          Deprecated. Sets reconcile rules.
 void setConflictWin(java.lang.String conflictWin)
          Deprecated. Sets reconcile rules.
 void setEditAttributes(boolean editAttributes)
          Deprecated. Sets to true to enable Edit Feature Attributes function.
 void setEditFeatures(boolean editFeatures)
          Deprecated. Sets to true to enable Features Editing Functions, which include move, delete, copy, and modify features.
 void setHlColor(java.lang.String hlColor)
          Deprecated. Sets the highlight color.
 void setLayers(java.lang.String layers)
          Deprecated. Sets the editable layers.
 void setResource(GISResource resource)
          Deprecated. Sets a Map Service for the editing task.
 void setResourceId(java.lang.String resourceId)
          Deprecated. Sets the ID of the Map Resource.
 void setSdLayers(java.lang.String sdLayers)
          Deprecated. Sets snapping layers.
 void setSeLayers(java.lang.String seLayers)
          Deprecated. Sets snapping layers.
 void setSnapTolerance(int snapTolerance)
          Deprecated. Sets the snapping tolerance in pixels.
 void setSvLayers(java.lang.String svLayers)
          Deprecated. Sets snapping layers.
 void setTaskName(java.lang.String taskName)
          Deprecated. Sets the name of the task.
 void setTolerance(int tolerance)
          Deprecated. Sets the search tolerance in pixels.
 void setVersions(java.lang.String versions)
          Deprecated. Sets the editable versions.
 void setVerticesColor(java.lang.String color)
          Deprecated. Sets the color of vertices.
 void setWorkspaceID(java.lang.String workspaceID)
          Deprecated. A workspace ID is a unique ID of workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditingConfig

public EditingConfig()
Deprecated. 
Method Detail

setResource

public void setResource(GISResource resource)
Deprecated. 
Sets a Map Service for the editing task.

Parameters:
resource - a map service instance.

getResource

public GISResource getResource()
Deprecated. 
Gets the Map Service for the editing task.

Returns:
the map service.

getLayers

public java.lang.String getLayers()
Deprecated. 
Gets the editable layers. Only those layers can be edited by the editing task.

Returns:
a set of layer ID delimited by semicolumn, e.g. 2;5;

setLayers

public void setLayers(java.lang.String layers)
Deprecated. 
Sets the editable layers. Only those layers can be edited by the editing task.

Parameters:
layers - a set of layer ID delimited by semicolumn, e.g. 2;5;

getResourceId

public java.lang.String getResourceId()
Deprecated. 
Gets the ID of the Map Resource.


setResourceId

public void setResourceId(java.lang.String resourceId)
Deprecated. 
Sets the ID of the Map Resource.

Parameters:
resourceId - a map service id, e.g. arcgis_local=ss::map=july-g-edit

getTaskName

public java.lang.String getTaskName()
Deprecated. 
Gets the name of the task. It will be showed as task windows title.

Returns:
the task name.

setTaskName

public void setTaskName(java.lang.String taskName)
Deprecated. 
Sets the name of the task. It will be showed as task windows title.

Parameters:
taskName - the task name.

getVersions

public java.lang.String getVersions()
Deprecated. 
Gets the editable versions. For version based editing, only the versions listed here are editable for the users. For none versioned based editing, it can be null or "".

Returns:
a set of version names delimited by semicolumn. e.g. "sde.default;map.JamesVersion;"

setVersions

public void setVersions(java.lang.String versions)
Deprecated. 
Sets the editable versions. For version based editing, only the versions listed here are editable for the users. For none versioned based editing, it can be null or "".

Parameters:
versions - a set of version names delimited by semicolumn.

getWorkspaceID

public java.lang.String getWorkspaceID()
Deprecated. 
A workspace ID is a unique ID of workspace. The task manager creates this ID during the Task configuration. The editing task will pick up the workspace based on this ID in the runtime.

Returns:
the workspace ID, e.g. SDE.DEFAULT (derekw@july:5151)

setWorkspaceID

public void setWorkspaceID(java.lang.String workspaceID)
Deprecated. 
A workspace ID is a unique ID of workspace. The task manager creates this ID during the Task configuration. The editing task will pick up the workspace based on this ID in the runtime.

Parameters:
workspaceID - a ID, e.g. SDE.DEFAULT (derekw@july:5151)

isAddFeatures

public boolean isAddFeatures()
Deprecated. 
Returns true if Add Features function is enabled.

Returns:
Returns true if Add Features function is enabled.

setAddFeatures

public void setAddFeatures(boolean addFeatures)
Deprecated. 
Sets to true to enable Add Features function.

Parameters:
addFeatures - Sets to true to enable Add Features function.

isEditAttributes

public boolean isEditAttributes()
Deprecated. 
Returns true when Edit Feature Attributes function is enable.

Returns:
Returns true when Edit Attributes function is enable.

setEditAttributes

public void setEditAttributes(boolean editAttributes)
Deprecated. 
Sets to true to enable Edit Feature Attributes function.

Parameters:
editAttributes -

isEditFeatures

public boolean isEditFeatures()
Deprecated. 
Returns true when Features Editing functions are enabled. Features Editing functions include move, delete, copy, and modify features.

Returns:
Returns true when Features Editing functions are enabled.

setEditFeatures

public void setEditFeatures(boolean editFeatures)
Deprecated. 
Sets to true to enable Features Editing Functions, which include move, delete, copy, and modify features.

Parameters:
editFeatures - sets to true to enable Features Editing Functions.

getHlColor

public java.lang.String getHlColor()
Deprecated. 
Gets the highlight color. It is a string stand for R(0-255),G(0-255),B(0-255) values, e.g. "255,0,0"

Returns:
the highlight color, e.g. 255,0,0

setHlColor

public void setHlColor(java.lang.String hlColor)
Deprecated. 
Sets the highlight color. It is a string stand for R(0-255),G(0-255),B(0-255) values, e.g. "255,0,0"

Parameters:
hlColor - the highlight color, e.g. "255,0,0"

getSnapTolerance

public int getSnapTolerance()
Deprecated. 
Gets the snapping tolerance in pixels.

Returns:
the snapping tolerance in pixels.

setSnapTolerance

public void setSnapTolerance(int snapTolerance)
Deprecated. 
Sets the snapping tolerance in pixels.

Parameters:
snapTolerance - the snapping tolerance in pixels.

getTolerance

public int getTolerance()
Deprecated. 
Gets the search tolerance in pixels.

Returns:
the search tolerance in pixels.

setTolerance

public void setTolerance(int tolerance)
Deprecated. 
Sets the search tolerance in pixels.

Parameters:
tolerance - the search tolerance in pixels.

getVerticesColor

public java.lang.String getVerticesColor()
Deprecated. 
Gets the color of vertices. It is a string stand for R(0-255),G(0-255),B(0-255) values, e.g. "255,0,0"

Returns:
the color of vertices, e.g. "255,0,0"

setVerticesColor

public void setVerticesColor(java.lang.String color)
Deprecated. 
Sets the color of vertices. It is a string stand for R(0-255),G(0-255),B(0-255) values, e.g. "255,0,0"

Parameters:
color - the color of vertices, e.g. "255,0,0"

getSdLayers

public java.lang.String getSdLayers()
Deprecated. 
Gets snapping layers. There are 3 types of snapping, this setting is for edge snapping.

Returns:
a set of layers ID delimited by semicolumn, e.g. 2;3;

setSdLayers

public void setSdLayers(java.lang.String sdLayers)
Deprecated. 
Sets snapping layers. There are 3 types of snapping, this setting is for edge snapping.

Parameters:
sdLayers - a set of layers ID delimited by semicolumn, e.g. 2;3;

getSeLayers

public java.lang.String getSeLayers()
Deprecated. 
Gets snapping layers. There are 3 types of snapping, this setting is for end snapping.

Returns:
a set of layers ID delimited by semicolumn, e.g. 2;3;

setSeLayers

public void setSeLayers(java.lang.String seLayers)
Deprecated. 
Sets snapping layers. There are 3 types of snapping, this setting is for end snapping.

Parameters:
seLayers - a set of layers ID delimited by semicolumn, e.g. 2;3;

getSvLayers

public java.lang.String getSvLayers()
Deprecated. 
Gets snapping layers. There are 3 types of snapping, this setting is for vertex snapping.

Returns:
a set of layers ID delimited by semicolumn, e.g. 2;3;

setSvLayers

public void setSvLayers(java.lang.String svLayers)
Deprecated. 
Sets snapping layers. There are 3 types of snapping, this setting is for vertex snapping.

Parameters:
svLayers - a set of layers ID delimited by semicolumn, e.g. 2;3;

getConflictMode

public java.lang.String getConflictMode()
Deprecated. 
Gets reconcile rules. Possible values are "0" or "1".

Returns:
"0" or "1".

setConflictMode

public void setConflictMode(java.lang.String conflictMode)
Deprecated. 
Sets reconcile rules. Available values are "0" or "1". Set to "0" for parent win or "1" for child win.

Parameters:
conflictMode - "0" or "1".

getConflictWin

public java.lang.String getConflictWin()
Deprecated. 
Gets reconcile rules. Possible values are "0" or "1".


setConflictWin

public void setConflictWin(java.lang.String conflictWin)
Deprecated. 
Sets reconcile rules. Available values are "0" or "1". Set to "0" for row level or "1" for column level.

Parameters:
conflictWin - "0" or "1"