These editing fields are defined when the data owner enables editor tracking on the feature service. For more information, see Editor tracking for feature services.
You can obtain the EditFieldsInfo
from ArcGISFeatureLayerInfo.getEditFieldsInfo()
. This information is
recorded if EditorTrackingInfo.isEditorTrackingEnabled()
is true.
- Since:
- 100.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of the field that stores the date and time the feature was created.Gets the name of the field that stores the user who created the feature.Gets the name of the field that stores the date and time the feature was last edited.Gets the name of the field that stores the user who last edited the feature.getRealm()
Gets the realm, which is a string that uniquely identifies an editor and how they edited the data.
-
Method Details
-
getCreationDateField
Gets the name of the field that stores the date and time the feature was created.- Returns:
- the creation date field name, or emptry string if editor tracking is not enabled
- Since:
- 100.0.0
-
getCreatorField
Gets the name of the field that stores the user who created the feature.- Returns:
- the creator field name, or emptry string if editor tracking is not enabled
- Since:
- 100.0.0
-
getEditDateField
Gets the name of the field that stores the date and time the feature was last edited.- Returns:
- the edit date field name, or emptry string if editor tracking is not enabled
- Since:
- 100.0.0
-
getEditorField
Gets the name of the field that stores the user who last edited the feature.- Returns:
- the editor field name, or emptry string if editor tracking is not enabled
- Since:
- 100.0.0
-
getRealm
Gets the realm, which is a string that uniquely identifies an editor and how they edited the data.Realms can be used to differentiate edits made through a feature service as opposed to those made directly to the data in the geodatabase. If a realm string is present, it is appended to the username using the "@" character. For example, a realm string of "denver" is appended to the user "John" to give a user name of "John@denver". For more information, see Configure a realm for a feature service.
- Returns:
- the realm, or emptry string if editor tracking is not enabled
- Since:
- 100.0.0
-