public class

EditFieldsInfo

extends Object
java.lang.Object
   ↳ com.esri.core.map.EditFieldsInfo

Class Overview

Holds information about the fields used to store editor tracking information for features in a feature service. EditFieldsInfo tells you what the field names are in the dataset which hold information about who created or edited a feature and when they did it. Note: Some services have a casing mismatch between the field names used in this EditFieldsInfo and the ‘Fields’ JSON attribute which is defined in the service's REST endpoint. To work around this, correct the case appropriately for your situation, for example:

 EditFieldsInfo efi = serviceLayer.getEditFieldsInfo();
 feature.getAttributes().get(correctCase(efi.getCreationDateField()));
 

Summary

Public Methods
static EditFieldsInfo fromJson(JsonParser parser)
Creates an EditFieldsInfo object from JSON.
String getCreationDateField()
Gets the name of the creation date field; the field stores the date the feature was created.
String getCreatorField()
Gets the name of the creator field; the field stores the name of the user who created the feature.
String getEditDateField()
Gets the name of the edit date field; the field stores the date a feature was last edited.
String getEditorField()
Gets the name of the editor field in the dataset; the field stores the name of the user who last edited the feature.
String getRealm()
Gets the realm.
String toString()
Returns a string representation of the class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static EditFieldsInfo fromJson (JsonParser parser)

Creates an EditFieldsInfo object from JSON.

Parameters
parser JsonParser: the JSON parser
Returns
EditFieldsInfo the edit fields info object
Throws
Exception exception on JSON parsing

public String getCreationDateField ()

Gets the name of the creation date field; the field stores the date the feature was created.

Returns
String the creation date field name

public String getCreatorField ()

Gets the name of the creator field; the field stores the name of the user who created the feature.

Returns
String the creator field name

public String getEditDateField ()

Gets the name of the edit date field; the field stores the date a feature was last edited.

Returns
String the edit date field name

public String getEditorField ()

Gets the name of the editor field in the dataset; the field stores the name of the user who last edited the feature.

Returns
String the editor field name

public String getRealm ()

Gets the realm.

Returns
String the realm

public String toString ()

Returns a string representation of the class. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

Returns
String