public class PlayadvisorImporter extends Importer
accessibilityTypes, agecategoryTypes, allLocationTypes, assetTypeToLocationCategory, assHandler, assListHandler, equipmenttypePAtoPM, equipmenttypePMtoPA, equipmentTypes, facilityTypes, locationHandler, parkingTypes, postfix, projectHandler| Constructor and Description |
|---|
PlayadvisorImporter(Project project) |
| Modifier and Type | Method and Description |
|---|---|
Location |
getExistingLocation(Location newLocation) |
void |
initialLoad(Project job,
ImportReport report,
Connection con,
String baseurl,
String authkey) |
void |
loadLocation(Integer locationId,
Connection con,
String baseurl,
String authkey,
ImportReport report) |
protected List<Asset> |
parseAssets(Location location,
org.json.JSONArray assetsArray,
ImportReport report,
boolean merged,
Connection con) |
protected Map<String,Object> |
parseImage(Location location,
org.json.JSONObject image,
ImportReport report) |
protected List<Map<String,Object>> |
parseImages(Location location,
org.json.JSONObject obj,
ImportReport report) |
protected Location |
parseLocation(org.json.JSONObject obj,
Connection con) |
protected List<Map<String,Object>> |
processImages(Location location,
List<Map<String,Object>> imgs,
ImportReport report,
Connection con) |
protected void |
processLocation(Location location,
org.json.JSONObject obj,
ImportReport report,
Connection con) |
List<Location> |
processLocations(String locs,
ImportReport report,
Connection con) |
protected void |
saveAccessibility(Integer locationId,
org.json.JSONObject locationObj,
boolean deleteFirst) |
protected void |
saveFacilities(Location location,
org.json.JSONObject locationObj,
boolean deleteFirst) |
protected void |
saveLocationType(Location location,
org.json.JSONObject locationObject,
boolean deleteFirst) |
assetExists, getAssetId, getAssetType, getEquipmentType, getLocationId, getPostfix, getProject, getProject, getProject, getResponse, locationExists, saveAccessibility, saveAsset, saveAssetsAgeCategories, saveFacilities, saveImagesAndWords, saveLocation, saveLocationAgeCategory, saveLocationTypes, setProjectpublic PlayadvisorImporter(Project project)
public void initialLoad(Project job, ImportReport report, Connection con, String baseurl, String authkey) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic void loadLocation(Integer locationId, Connection con, String baseurl, String authkey, ImportReport report) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic List<Location> processLocations(String locs, ImportReport report, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void processLocation(Location location, org.json.JSONObject obj, ImportReport report, Connection con) throws NamingException
NamingExceptionpublic Location getExistingLocation(Location newLocation) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected Location parseLocation(org.json.JSONObject obj, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void saveLocationType(Location location, org.json.JSONObject locationObject, boolean deleteFirst) throws NamingException, SQLException, UnsupportedEncodingException
protected void saveFacilities(Location location, org.json.JSONObject locationObj, boolean deleteFirst) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void saveAccessibility(Integer locationId, org.json.JSONObject locationObj, boolean deleteFirst) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected List<Asset> parseAssets(Location location, org.json.JSONArray assetsArray, ImportReport report, boolean merged, Connection con) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected List<Map<String,Object>> processImages(Location location, List<Map<String,Object>> imgs, ImportReport report, Connection con)
protected List<Map<String,Object>> parseImages(Location location, org.json.JSONObject obj, ImportReport report)
protected Map<String,Object> parseImage(Location location, org.json.JSONObject image, ImportReport report)
Copyright © 2019. All rights reserved.