if(logger.isDebugEnabled()){
logger.debug("Import: Create locationAuthority: \"" + locationAuthorityName +"\"");
}
- String baseLocationRefName =
- LocationAuthorityClientUtils.createLocationAuthRefName(locationAuthorityName, false);
- String fullLocationRefName =
- LocationAuthorityClientUtils.createLocationAuthRefName(locationAuthorityName, true);
- MultipartOutput multipart =
- LocationAuthorityClientUtils.createLocationAuthorityInstance(
- locationAuthorityName, fullLocationRefName, client.getCommonPartName());
- ClientResponse<Response> res = client.create(multipart);
+
+
+
+ String displaySuffix = "displayName-" + System.currentTimeMillis(); //TODO: this is just made-up. Laramie20100728 temp fix, made-up displaySuffix.
+ String baseLocationRefName = LocationAuthorityClientUtils.createLocationAuthRefName(locationAuthorityName, displaySuffix);//TODO: make displaySuffix correct. Laramie20100729 temp fix, made-up displaySuffix. was (locationAuthorityName, false);
+ String fullLocationRefName = LocationAuthorityClientUtils.createLocationAuthRefName(locationAuthorityName, displaySuffix);//TODO: make displaySuffix correct. Laramie20100729 temp fix, made-up displaySuffix. was (locationAuthorityName, true);
+
+ MultipartOutput multipart = LocationAuthorityClientUtils.createLocationAuthorityInstance(locationAuthorityName, fullLocationRefName, client.getCommonPartName());
+ ClientResponse<Response> res = client.create(multipart);
int statusCode = res.getStatus();
shortName, longName, nameAdditions, contactName,
foundingDate, dissolutionDate, foundingPlace, function, description
*/
+
+
+ /* TODO: Laramie20100728 This is broken. Removing for now.
Map<String, String> johnWayneMap = new HashMap<String,String>();
johnWayneMap.put(LocationJAXBSchema.FORE_NAME, "John");
johnWayneMap.put(LocationJAXBSchema.SUR_NAME, "Wayne");
Arrays.asList(johnWayneMap, patrickSchmitzMap, janeDoeMap );
pabi.createLocationAuthority(demoLocationAuthorityName, locationsMaps);
-
+ */
+ logger.info("LocationAuthorityBaseImport test is empty because LocationJAXBSchema had code changes. See org.collectionspace.services.location.importer.LocationAuthorityBaseImport");
logger.info("LocationAuthorityBaseImport complete.");
}
}