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 |
|---|---|
org.json.JSONObject |
createLocationJSON(Location loc,
Connection con,
HashMap<Integer,org.json.JSONArray> imgsPerLoc) |
void |
export(List<Location> locations,
Connection con,
String baseurl,
String authkey) |
protected Project |
getProject(Integer projectID,
Connection con) |
String |
pushLocation(org.json.JSONObject location,
String id,
String baseurl,
String authkey) |
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 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) |
protected org.json.JSONArray |
retrieveImages(Integer id,
Connection con,
String imagepath,
ImageDownloader downloader) |
protected void |
retrieveParking(Integer id,
org.json.JSONObject obj,
Connection con) |
void |
updateId(Location loc,
Connection con,
String baseurl,
String authkey) |
void |
updateIDs(List<Location> locs,
Connection con,
String baseurl,
String authkey) |
protected final org.apache.commons.dbutils.ResultSetHandler<Project> projectHandler
public void export(List<Location> locations, Connection con, String baseurl, String authkey)
public String pushLocations(List<Location> locations, String imagepath, String baseurl, String authkey, ImageDownloader downloader)
public String pushLocation(Location loc, Connection con, HashMap<Integer,org.json.JSONArray> imgsPerLoc, String baseurl, String authkey) throws IOException, SQLException, NamingException
IOExceptionSQLExceptionNamingExceptionpublic String pushLocation(org.json.JSONObject location, String id, String baseurl, String authkey) throws IOException
IOExceptionpublic void updateIDs(List<Location> locs, Connection con, String baseurl, String authkey)
public void updateId(Location loc, Connection con, String baseurl, String authkey)
public 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
NamingExceptionSQLExceptionprotected 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 © 2018. All rights reserved.