Bladeren bron

Relax requirement of launch_record_id in broaddast request.

There is no meaningful processing of launch_record_id, which
is really just a pass through back to portal.
tags/1.0.27
ymlam 2 jaren geleden
bovenliggende
commit
952d8acb7e
2 gewijzigde bestanden met toevoegingen van 1 en 11 verwijderingen
  1. +0
    -6
      src/main/java/altk/comm/engine/Broadcast.java
  2. +1
    -5
      src/main/java/altk/comm/engine/JobReport.java

+ 0
- 6
src/main/java/altk/comm/engine/Broadcast.java Bestand weergeven

@@ -721,12 +721,6 @@ public abstract class Broadcast

protected void setLaunchRecordId(String launchRecordId)
{
if (launchRecordId == null)
throw new IllegalArgumentException(
"Argument launchRecordId in Broadcast.setLaunchRecordId method cannot be null");
if (this.launchRecordId != null)
throw new IllegalStateException(
"Broadcast.setLaunchRecordId method cannot be invoked more than once for a Broadcast");
this.launchRecordId = launchRecordId;
}



+ 1
- 5
src/main/java/altk/comm/engine/JobReport.java Bestand weergeven

@@ -23,10 +23,6 @@ public class JobReport
{
throw new IllegalArgumentException("JobReport given null or empty broadcastId");
}
if (launchRecordId == null || launchRecordId.length() == 0)
{
throw new IllegalArgumentException("JobReport given null or empty launchRecordId");
}

this.broadcastId = broadcastId;
this.launchRecordId = launchRecordId;
@@ -57,7 +53,7 @@ public class JobReport
public final StringBuffer appendXML(StringBuffer xml)
{
xml.append("<" + xmlRootNodeName + " broadcast_id=\"" + broadcastId
+ "\" launch_record_id=\"" + launchRecordId
+ (launchRecordId != null? ("\" launch_record_id=\"" + launchRecordId) : "")
+ "\" " + activityRecordIdParamName + "=\"" + recordId
+ "\" contact_id=\"" + contactId
+ "\" recipient_status=\"" + jobStatus + "\" >");


Laden…
Annuleren
Opslaan