public class PlayadvisorExporter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<Integer,List<String>> |
locationTypes |
protected org.apache.commons.dbutils.ResultSetHandler<Project> |
projectHandler |
| Constructor and Description |
|---|
PlayadvisorExporter() |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,org.json.JSONArray> |
analyseImagesForDuplicates(List<Location> locations,
Map<Integer,org.json.JSONArray> imagesPerLocation,
Connection con) |
org.json.JSONObject |
createLocationJSON(Location loc,
Connection con,
HashMap<Integer,org.json.JSONArray> imgsPerLoc) |
protected Project |
getProject(Integer projectID,
Connection con) |
BufferedImage |
open(org.json.JSONObject obj) |
String |
pushLocation(Location loc,
Connection con,
HashMap<Integer,org.json.JSONArray> imgsPerLoc,
String baseurl,
String authkey) |
String |
pushLocations(List<Location> locations,
String imagepath,
String baseurl,
String authkey,
ImageDownloader downloader) |
protected org.json.JSONArray |
removeDuplicates(org.json.JSONArray images,
Connection con) |
protected void |
retrieveAccessibilities(Integer id,
org.json.JSONObject obj,
Connection con) |
protected void |
retrieveAgeCategories(Integer id,
org.json.JSONObject obj,
Connection con) |
protected void |
retrieveCategories(Integer id,
org.json.JSONObject location,
Connection con) |
protected void |
retrieveFacilities(Integer id,
org.json.JSONObject obj,
Connection con) |
org.json.JSONArray |
retrieveImages(Integer id,
Connection con,
String imagepath,
ImageDownloader downloader) |
protected void |
retrieveParking(Integer id,
org.json.JSONObject obj,
Connection con) |
boolean |
shouldLocationBePushed(Location loc,
Connection con) |
void |
updateIDs(List<Location> locs,
Connection con,
String baseurl,
String authkey) |
protected final org.apache.commons.dbutils.ResultSetHandler<Project> projectHandler
public String pushLocations(List<Location> locations, String imagepath, String baseurl, String authkey, ImageDownloader downloader) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic Map<Integer,org.json.JSONArray> analyseImagesForDuplicates(List<Location> locations, Map<Integer,org.json.JSONArray> imagesPerLocation, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected org.json.JSONArray removeDuplicates(org.json.JSONArray images,
Connection con)
throws NamingException,
SQLException
NamingExceptionSQLExceptionpublic BufferedImage open(org.json.JSONObject obj)
public String pushLocation(Location loc, Connection con, HashMap<Integer,org.json.JSONArray> imgsPerLoc, String baseurl, String authkey) throws IOException, SQLException, NamingException, URISyntaxException
public boolean shouldLocationBePushed(Location loc, Connection con)
public void updateIDs(List<Location> locs, Connection con, String baseurl, String authkey) throws IOException, URISyntaxException
IOExceptionURISyntaxExceptionpublic org.json.JSONObject createLocationJSON(Location loc, Connection con, HashMap<Integer,org.json.JSONArray> imgsPerLoc) throws SQLException, NamingException, IOException
SQLExceptionNamingExceptionIOExceptionprotected void retrieveParking(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveFacilities(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveAccessibilities(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveAgeCategories(Integer id, org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic org.json.JSONArray retrieveImages(Integer id, Connection con, String imagepath, ImageDownloader downloader) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void retrieveCategories(Integer id, org.json.JSONObject location, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected Project getProject(Integer projectID, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionCopyright © 2019. All rights reserved.