private List<NameValuePair> buildIPTParameters(Ipt ipt,String organisationKey){
  List<NameValuePair> data=new ArrayList<NameValuePair>();
  if (ipt != null && organisationKey != null) {
    data.add(new BasicNameValuePair("organisationKey",StringUtils.trimToEmpty(organisationKey)));
    data.add(new BasicNameValuePair("name",StringUtils.trimToEmpty(ipt.getName())));
    data.add(new BasicNameValuePair("description",StringUtils.trimToEmpty(ipt.getDescription())));
    data.add(new BasicNameValuePair("primaryContactType",StringUtils.trimToEmpty(ipt.getPrimaryContactType())));
    data.add(new BasicNameValuePair("primaryContactName",StringUtils.trimToEmpty(ipt.getPrimaryContactName())));
    data.add(new BasicNameValuePair("primaryContactEmail",StringUtils.trimToEmpty(ipt.getPrimaryContactEmail())));
    data.add(new BasicNameValuePair("serviceTypes",SERVICE_TYPE_RSS));
    data.add(new BasicNameValuePair("serviceURLs",getRssFeedURL()));
  }
 else {
    log.debug("One or both of IPT and Organisation key were null. Params needed for ws will be empty");
  }
  return data;
}

private List < NameValuePair > buildIPTParameters ( Ipt ipt , String organisationKey ) { List < NameValuePair > data = new ArrayList < NameValuePair > ( ) ; if ( ipt != null && organisationKey != null ) { data . add ( new BasicNameValuePair ( "organisationKey" , StringUtils . trimToEmpty ( organisationKey ) ) ) ; data . add ( new BasicNameValuePair ( "name" , StringUtils . trimToEmpty ( ipt . getName ( ) ) ) ) ; data . add ( new BasicNameValuePair ( "description" , StringUtils . trimToEmpty ( ipt . getDescription ( ) ) ) ) ; data . add ( new BasicNameValuePair ( "primaryContactType" , StringUtils . trimToEmpty ( ipt . getPrimaryContactType ( ) ) ) ) ; data . add ( new BasicNameValuePair ( "primaryContactName" , StringUtils . trimToEmpty ( ipt . getPrimaryContactName ( ) ) ) ) ; data . add ( new BasicNameValuePair ( "primaryContactEmail" , StringUtils . trimToEmpty ( ipt . getPrimaryContactEmail ( ) ) ) ) ; data . add ( new BasicNameValuePair ( "serviceTypes" , SERVICE_TYPE_RSS ) ) ; data . add ( new BasicNameValuePair ( "serviceURLs" , getRssFeedURL ( ) ) ) ; } else { log . debug ( "One or both of IPT and Organisation key were null. Params needed for ws will be empty" ) ; } return data ; }
populate a list of name value pairs used in the common ws requests for ipt registrations and updates .
