Add missing fields to canonical subscription compare (#3431)

This commit is contained in:
James Agnew 2022-02-28 06:48:59 -05:00 committed by GitHub
parent f2afb0844d
commit bf04add6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -78,7 +78,6 @@ public class CanonicalSubscription implements Serializable, Cloneable, IModelJso
private boolean myCrossPartitionEnabled;
@JsonProperty("sendDeleteMessages")
private boolean mySendDeleteMessages;
/**
* Constructor
*/
@ -147,6 +146,13 @@ public class CanonicalSubscription implements Serializable, Cloneable, IModelJso
}
}
public void setHeaders(String theHeaders) {
myHeaders = new ArrayList<>();
if (isNotBlank(theHeaders)) {
myHeaders.add(theHeaders);
}
}
public Map<String, String> getTags() {
return myTags;
}
@ -155,14 +161,6 @@ public class CanonicalSubscription implements Serializable, Cloneable, IModelJso
this.myTags = theTags;
}
public void setHeaders(String theHeaders) {
myHeaders = new ArrayList<>();
if (isNotBlank(theHeaders)) {
myHeaders.add(theHeaders);
}
}
public String getChannelExtension(String theUrl) {
String retVal = null;
List<String> channelExtensions = myChannelExtensions.get(theUrl);
@ -285,6 +283,10 @@ public class CanonicalSubscription implements Serializable, Cloneable, IModelJso
b.append(myEmailDetails, that.myEmailDetails);
b.append(myRestHookDetails, that.myRestHookDetails);
b.append(myChannelExtensions, that.myChannelExtensions);
b.append(myCrossPartitionEnabled, that.myCrossPartitionEnabled);
b.append(myChannelExtensions, that.myChannelExtensions);
b.append(mySendDeleteMessages, that.mySendDeleteMessages);
b.append(myPayloadSearchCriteria, that.myPayloadSearchCriteria);
return b.isEquals();
}