Perhaps the new model object needs to be like:
{code} FlatPushMessageInformation extends BaseModel {
// like currently: @NotNull private String pushApplicationId;
private String rawJsonMessage; private String ipAddress; private String clientIdentifier;
private Date submitDate = new Date(); private Long appOpenCounter = 0L; private Date firstOpenDate; private Date lastOpenDate;
// this is new: // once an error on a variant occurs, a error reason will be added to the list private List<VariantErrorStatus> errors;
// this is than "removed"
private Long appOpenCounter = 0L; private Date firstOpenDate; private Date lastOpenDate;
private Integer servedVariants = 0; private Integer totalVariants = 0;
private Set<VariantMetricInformation> variantInformations = new HashSet<>(); // end of not relevant section
}
package org.jboss.aerogear.unifiedpush.api;
import java.util.List;
/** * Created by matzew on 5/31/17. */ public class VariantErrorStatus {
//@Id private String pushMessageVariantId = "push-job-id" + ":" + "variant-id"; private String errorReason; // the text we receive for the error public VariantErrorStatus() {
}
public void setPushMessageVariantId(final String bogusID) { pushMessageVariantId = bogusID; }
public void applyAllTheThings(final String PMI_ID, final String varID ) { // update me }
}
{code} |
|