LocationauthoritiesCommon locationAuthority = new LocationauthoritiesCommon();\r
locationAuthority.setDisplayName(displayName);\r
locationAuthority.setShortIdentifier(shortIdentifier);\r
- String refName = createLocationAuthRefName(shortIdentifier, displayName);\r
- locationAuthority.setRefName(refName);\r
+ // String refName = createLocationAuthRefName(shortIdentifier, displayName);\r
+ // locationAuthority.setRefName(refName);\r
locationAuthority.setVocabType("LocationAuthority"); //FIXME: REM - Should this really be hard-coded?\r
PoxPayloadOut multipart = new PoxPayloadOut(LocationAuthorityClient.SERVICE_PAYLOAD_NAME);\r
PayloadOutputPart commonPart = multipart.addPart(locationAuthority, MediaType.APPLICATION_XML_TYPE);\r
String shortId = locationInfo.get(LocationJAXBSchema.SHORT_IDENTIFIER);\r
String displayName = locationInfo.get(LocationJAXBSchema.DISPLAY_NAME);\r
location.setShortIdentifier(shortId);\r
- String locationRefName = createLocationRefName(locationAuthRefName, shortId, displayName);\r
- location.setRefName(locationRefName);\r
+ // String locationRefName = createLocationRefName(locationAuthRefName, shortId, displayName);\r
+ // location.setRefName(locationRefName);\r
String value = null;\r
value = locationInfo.get(LocationJAXBSchema.DISPLAY_NAME_COMPUTED);\r
boolean displayNameComputed = (value==null) || value.equalsIgnoreCase("true"); \r
LocationAuthorityClient client = new LocationAuthorityClient();
String shortId = identifier;
String displayName = "displayName-" + shortId;
- String baseRefName =
- LocationAuthorityClientUtils.createLocationAuthRefName(shortId, null);
+ // String baseRefName = LocationAuthorityClientUtils.createLocationAuthRefName(shortId, null);
PoxPayloadOut multipart =
LocationAuthorityClientUtils.createLocationAuthorityInstance(
displayName, shortId, client.getCommonPartName());
LocationAuthorityClient client = new LocationAuthorityClient();
String shortId = createIdentifier();
String displayName = "displayName-" + shortId;
- String baseRefName =
- LocationAuthorityClientUtils.createLocationAuthRefName(shortId, null);
+ // String baseRefName = LocationAuthorityClientUtils.createLocationAuthRefName(shortId, null);
PoxPayloadOut multipart =
LocationAuthorityClientUtils.createLocationAuthorityInstance(
}
// Store the ID returned from the first resource created
// for additional tests below.
+ final String NULL_REFNAME = null;
if (knownResourceId == null){
- setKnownResource( newID, shortId, baseRefName );
+ setKnownResource( newID, shortId, NULL_REFNAME );
if (logger.isDebugEnabled()) {
logger.debug(testName + ": knownResourceId=" + knownResourceId);
}
nonexMap.put(LocationJAXBSchema.SHORT_IDENTIFIER, "nonEx");
nonexMap.put(LocationJAXBSchema.LOCATION_TYPE, TEST_LOCATION_TYPE);
nonexMap.put(LocationJAXBSchema.TERM_STATUS, TEST_STATUS);
+ // PoxPayloadOut multipart =
+ // LocationAuthorityClientUtils.createLocationInstance(
+ // LocationAuthorityClientUtils.createLocationRefName(knownResourceRefName, "nonEx", "Non Existent"),
+ // nonexMap, client.getItemCommonPartName() );
+ final String NULL_REFNAME = null;
PoxPayloadOut multipart =
- LocationAuthorityClientUtils.createLocationInstance(
- LocationAuthorityClientUtils.createLocationRefName(knownResourceRefName, "nonEx", "Non Existent"),
+ LocationAuthorityClientUtils.createLocationInstance(NULL_REFNAME,
nonexMap, client.getItemCommonPartName() );
ClientResponse<String> res =
client.updateItem(knownResourceId, NON_EXISTENT_ID, multipart);