public class PlayadvisorImporter extends Importer
accessibilityTypes, agecategoryTypes, assetTypeToLocationCategory, assHandler, assListHandler, equipmenttypePAtoPM, equipmenttypePMtoPA, equipmentTypes, facilityTypes, locationHandler, locationTypes, parkingTypes, postfix| Constructor and Description |
|---|
PlayadvisorImporter(String project) |
| Modifier and Type | Method and Description |
|---|---|
Location |
getExistingLocation(Location newLocation) |
Location |
getMergedLocation(Location newLocation) |
void |
importComments(InputStream in,
ImportReport report) |
void |
importStream(InputStream in,
ImportReport report) |
void |
init(String[] header) |
protected Location |
parseMap(Map<String,Object> lM) |
protected Map<String,Object> |
parseRecord(String[] record) |
protected Location |
processRecord(String[] s,
ImportReport report) |
protected void |
saveAccessibility(Integer locationId,
String accessiblitiesString) |
protected void |
saveFacilities(Location location,
String facilitiesString,
boolean deleteFirst) |
protected void |
saveLocationType(String typeString,
Location location,
boolean deleteFirst) |
assetExists, getAssetId, getAssetType, getEquipmentType, getLocationId, getLocationId, getPostfix, getProject, getResponse, locationExists, saveAccessibility, saveAsset, saveAssetsAgeCategories, saveComment, saveFacilities, saveImagesAndWords, saveLocation, saveLocationAgeCategory, saveLocationTypes, setProjectpublic PlayadvisorImporter(String project)
public void init(String[] header)
public void importComments(InputStream in, ImportReport report) throws IOException, CsvFormatException
IOExceptionCsvFormatExceptionpublic void importStream(InputStream in, ImportReport report) throws IOException, CsvFormatException
IOExceptionCsvFormatExceptionprotected Location processRecord(String[] s, ImportReport report) throws NamingException, SQLException, UnsupportedEncodingException
public Location getMergedLocation(Location newLocation) throws NamingException, SQLException
NamingExceptionSQLExceptionpublic Location getExistingLocation(Location newLocation) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void saveFacilities(Location location, String facilitiesString, boolean deleteFirst) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void saveAccessibility(Integer locationId, String accessiblitiesString) throws NamingException, SQLException
NamingExceptionSQLExceptionprotected void saveLocationType(String typeString, Location location, boolean deleteFirst) throws NamingException, SQLException, UnsupportedEncodingException
Copyright © 2018. All rights reserved.