Class ArcGISFeatureServiceInfo
- java.lang.Object
-
- com.esri.arcgisruntime.arcgisservices.ArcGISFeatureServiceInfo
-
public final class ArcGISFeatureServiceInfo extends java.lang.Object
Represents service information for an ArcGIS Feature Service.- Since:
- 100.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAttribution()
Gets the attribution text information of the service.java.lang.String
getDescription()
Gets the description of the service.ServiceDocumentInfo
getDocumentInfo()
Gets the information about the backing map document used to create the service.EditorTrackingInfo
getEditorTrackingInfo()
Gets the information about the service's editor tracking configuration.FeatureServiceCapabilities
getFeatureServiceCapabilities()
Gets the editing operations that are allowed by the service: Query, Create, Delete, Update, Uploads, Editing.Envelope
getFullExtent()
Gets the full extent of geographic data available in the service.Envelope
getInitialExtent()
Gets the default extent of geographic data available in the service.java.util.List<IdInfo>
getLayerInfos()
Gets the available metadata for layers in the feature service as an unmodifiable list of IdInfo objects.long
getMaxRecordCount()
Gets the maximum number of features that will be returned by the service for any query operation.java.lang.String
getServiceDescription()
Returns the user-friendly description of the service.SpatialReference
getSpatialReference()
Gets the Spatial reference of geographic data available in the service.SyncCapabilities
getSyncCapabilities()
Gets the information about sync related capabilities of the service.java.util.List<IdInfo>
getTableInfos()
Gets the available metadata for stand-alone tables in the feature service as an unmodifiable list of IdInfo objects.Unit
getUnit()
Gets the unit of measurement for geographic data available in the service.java.lang.String
getUrl()
Gets the feature service URL.java.lang.String
getVersion()
Specifies the version of this particular service.double
getZDefault()
Gets the default z value.boolean
hasStaticData()
Indicates whether the service has static data.boolean
hasVersionedData()
Indicates if the service uses a database which uses versioned data.boolean
isAllowGeometryUpdates()
Indicates whether geometry of existing features can be updated.boolean
isAllowTrueCurvesUpdates()
True if the service allows curve geometries to be updated.boolean
isOnlyAllowTrueCurveUpdatesByTrueCurveClients()
True if the service only allows curve geometries to be updated by client code that identifies itself as a true curve capable client, indicating that client editing workflows account for curve segments correctly.boolean
isSupportsDisconnectedEditing()
Indicates whether disconnected editing is supported.boolean
isSupportsTrueCurve()
True if the service supports curve segments in feature geometries.boolean
isSyncEnabled()
Indicates if sync is enabled and this service can be used to allow data to be viewed and edited offline.boolean
isZDefaultsEnabled()
Indicates whether service supports default z values for geometries.
-
-
-
Method Detail
-
getLayerInfos
public java.util.List<IdInfo> getLayerInfos()
Gets the available metadata for layers in the feature service as an unmodifiable list of IdInfo objects. This is the metadata that can be retrieved without an additional HTTP request to obtain the layer's full metadata. SeeIdInfo
for more information.- Returns:
- an unmodifiable list of IdInfo objects for the sublayers in the service
- Since:
- 100.0.0
-
getTableInfos
public java.util.List<IdInfo> getTableInfos()
Gets the available metadata for stand-alone tables in the feature service as an unmodifiable list of IdInfo objects. This is the metadata that can be retrieved without an additional HTTP request to obtain the layer's full metadata. SeeIdInfo
for more information.- Returns:
- an unmodifiable list of IdInfo objects for the stand-alone tables in the service
- Since:
- 100.0.0
-
getAttribution
public java.lang.String getAttribution()
Gets the attribution text information of the service.- Returns:
- the attribution text
- Since:
- 100.0.0
-
getDescription
public java.lang.String getDescription()
Gets the description of the service.- Returns:
- the description
- Since:
- 100.0.0
-
getDocumentInfo
public ServiceDocumentInfo getDocumentInfo()
Gets the information about the backing map document used to create the service.- Returns:
- the document info
- Since:
- 100.0.0
-
getEditorTrackingInfo
public EditorTrackingInfo getEditorTrackingInfo()
Gets the information about the service's editor tracking configuration.- Returns:
- the editor tracking info, or null if not defined on the service
- Since:
- 100.0.0
-
getFullExtent
public Envelope getFullExtent()
Gets the full extent of geographic data available in the service.- Returns:
- the full extent
- Since:
- 100.0.0
-
getInitialExtent
public Envelope getInitialExtent()
Gets the default extent of geographic data available in the service.- Returns:
- the initial extent
- Since:
- 100.0.0
-
getMaxRecordCount
public long getMaxRecordCount()
Gets the maximum number of features that will be returned by the service for any query operation. Applications should handle re-querying the omitted results when this limit is reached.- Returns:
- the max record count
- Since:
- 100.0.0
-
isOnlyAllowTrueCurveUpdatesByTrueCurveClients
public boolean isOnlyAllowTrueCurveUpdatesByTrueCurveClients()
True if the service only allows curve geometries to be updated by client code that identifies itself as a true curve capable client, indicating that client editing workflows account for curve segments correctly.This property can only be true if
isAllowTrueCurvesUpdates()
is true.By default, Runtime clients do not indicate they are a true curve capable client. Use
ArcGISRuntimeEnvironment.setServiceCurveGeometryMode(ServiceCurveGeometryMode)
to change this behavior.- Returns:
- true if the service only allows curve geometries to be updated by client code that identifies itself as a true curve capable client, indicating that client editing workflows account for curve segments correctly.
- Since:
- 100.12.0
- See Also:
isSupportsTrueCurve()
,isAllowTrueCurvesUpdates()
-
getFeatureServiceCapabilities
public FeatureServiceCapabilities getFeatureServiceCapabilities()
Gets the editing operations that are allowed by the service: Query, Create, Delete, Update, Uploads, Editing.- Returns:
- the feature service capabilities
- Since:
- 100.0.0
-
getServiceDescription
public java.lang.String getServiceDescription()
Returns the user-friendly description of the service.- Returns:
- the service description
- Since:
- 100.0.0
-
getSpatialReference
public SpatialReference getSpatialReference()
Gets the Spatial reference of geographic data available in the service.- Returns:
- the spatial reference
- Since:
- 100.0.0
-
getSyncCapabilities
public SyncCapabilities getSyncCapabilities()
Gets the information about sync related capabilities of the service. This will be null if the service does not support sync.- Returns:
- the sync capabilities
- Since:
- 100.0.0
-
getUnit
public Unit getUnit()
Gets the unit of measurement for geographic data available in the service.- Returns:
- the available unit
- Since:
- 100.0.0
-
getVersion
public java.lang.String getVersion()
Specifies the version of this particular service.- Returns:
- the version of the service
- Since:
- 100.0.0
-
getZDefault
public double getZDefault()
Gets the default z value. Only applicable ifisZDefaultsEnabled()
is true. Returns NaN ifisZDefaultsEnabled()
is false.- Returns:
- the z default value
- Since:
- 100.0.0
-
isZDefaultsEnabled
public boolean isZDefaultsEnabled()
Indicates whether service supports default z values for geometries.- Returns:
- true if the z defaults is enabled, false otherwise
- Since:
- 100.0.0
-
isAllowGeometryUpdates
public boolean isAllowGeometryUpdates()
Indicates whether geometry of existing features can be updated.- Returns:
- true if the geometry updates are allowed, false otherwise
- Since:
- 100.0.0
-
isAllowTrueCurvesUpdates
public boolean isAllowTrueCurvesUpdates()
True if the service allows curve geometries to be updated.This property can only be true if
isSupportsTrueCurve()
is true.If this property is true and
isOnlyAllowTrueCurveUpdatesByTrueCurveClients()
is false, features with curve geometries can be updated by any client. This includes cases where the client provides a densified geometry to update the curve geometry.By default, Runtime clients do not indicate they are a true curve capable client. Use
ArcGISRuntimeEnvironment.setServiceCurveGeometryMode(ServiceCurveGeometryMode)
to change this behavior.- Returns:
- true if the service allows curve geometries to be updated
- Since:
- 100.12.0
- See Also:
isSupportsTrueCurve()
,isAllowTrueCurvesUpdates()
-
hasStaticData
public boolean hasStaticData()
Indicates whether the service has static data.- Returns:
- true if the service has static data, false otherwise
- Since:
- 100.0.0
-
hasVersionedData
public boolean hasVersionedData()
Indicates if the service uses a database which uses versioned data.- Returns:
- true if the service has versioned data, false otherwise
- Since:
- 100.0.0
-
isSupportsDisconnectedEditing
public boolean isSupportsDisconnectedEditing()
Indicates whether disconnected editing is supported.- Returns:
- true if disconnected editing is supported, false otherwise
- Since:
- 100.0.0
-
isSupportsTrueCurve
public boolean isSupportsTrueCurve()
True if the service supports curve segments in feature geometries.Some services support storing feature geometries with curve segments. By default, these services return densified versions of the feature geometries instead. Use
ArcGISRuntimeEnvironment.setServiceCurveGeometryMode(ServiceCurveGeometryMode)
to change this behavior.- Returns:
- true if the service supports curve segments in feature geometries
- Since:
- 100.12.0
- See Also:
isAllowTrueCurvesUpdates()
,isOnlyAllowTrueCurveUpdatesByTrueCurveClients()
-
isSyncEnabled
public boolean isSyncEnabled()
Indicates if sync is enabled and this service can be used to allow data to be viewed and edited offline. If true theGeodatabaseSyncTask
can be used.- Returns:
- true if the sync enabled, false otherwise
- Since:
- 100.0.0
-
getUrl
public java.lang.String getUrl()
Gets the feature service URL.- Returns:
- the feature service URL
- Since:
- 100.0.0
-
-