Class GeolocListenerServiceImpl
java.lang.Object
ch.tocco.nice2.optional.geolocation.impl.GeolocListenerServiceImpl
- All Implemented Interfaces:
GeolocListenerService
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGeolocListenerServiceImpl
(GeocodingService geocodingService, Context context, org.slf4j.Logger log, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearGeolocation
(Entity entity) Clear the location information.void
clearGeolocation
(Entity entity, @Nullable String statusId) void
runGeoLocationService
(Entity entity, String geoLocQuery) Runs the geocoding service to retrive geographical location information for the given address query and sets the received position (latitude/longitude) and the search result status on the given target entity.
-
Field Details
-
FIELD_LATITUDE
- See Also:
-
FIELD_LONGITUDE
- See Also:
-
UNIQUEID_DETERMINED
- See Also:
-
UNIQUEID_UNDETERMINED
- See Also:
-
UNIQUEID_TIMEOUT
- See Also:
-
UNIQUEID_UNKNOWN
- See Also:
-
UNIQUEID_ERROR
- See Also:
-
-
Constructor Details
-
GeolocListenerServiceImpl
public GeolocListenerServiceImpl(GeocodingService geocodingService, Context context, org.slf4j.Logger log, SecurityManager securityManager)
-
-
Method Details
-
runGeoLocationService
Runs the geocoding service to retrive geographical location information for the given address query and sets the received position (latitude/longitude) and the search result status on the given target entity.- Specified by:
runGeoLocationService
in interfaceGeolocListenerService
- Parameters:
entity
- the source entity where the location informations will be setgeoLocQuery
- the specified address query
-
clearGeolocation
Description copied from interface:GeolocListenerService
Clear the location information.- Specified by:
clearGeolocation
in interfaceGeolocListenerService
- Parameters:
entity
- the source entity where the location information will be cleared
-
clearGeolocation
-