Class GeolocListenerServiceImpl
java.lang.Object
ch.tocco.nice2.optional.geolocation.impl.GeolocListenerServiceImpl
- All Implemented Interfaces:
GeolocListenerService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeolocListenerServiceImpl(GeocodingService geocodingService, Context context, org.slf4j.Logger log, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidclearGeolocation(Entity entity) Clear the location information.voidclearGeolocation(Entity entity, @Nullable String statusId) voidrunGeoLocationService(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:
runGeoLocationServicein interfaceGeolocListenerService- Parameters:
entity- the source entity where the location informations will be setgeoLocQuery- the specified address query
-
clearGeolocation
Description copied from interface:GeolocListenerServiceClear the location information.- Specified by:
clearGeolocationin interfaceGeolocListenerService- Parameters:
entity- the source entity where the location information will be cleared
-
clearGeolocation
-