Fix NPE push Management UI on events (#543)
* NEP check on event.getEntity . Performance optimization on DS table. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * Fix event tests. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com> * used method reference. Signed-off-by: kaizimmerm <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -18,6 +18,8 @@ public class DistributionSetUpdatedEvent extends RemoteEntityEvent<DistributionS
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private boolean complete;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
@@ -32,8 +34,21 @@ public class DistributionSetUpdatedEvent extends RemoteEntityEvent<DistributionS
|
||||
* Distribution Set
|
||||
* @param applicationId
|
||||
* the origin application id
|
||||
* @param complete
|
||||
* <code>true</code> if {@link DistributionSet} is after the
|
||||
* update {@link DistributionSet#isComplete()}
|
||||
*/
|
||||
public DistributionSetUpdatedEvent(final DistributionSet ds, final String applicationId) {
|
||||
public DistributionSetUpdatedEvent(final DistributionSet ds, final String applicationId, final boolean complete) {
|
||||
super(ds, applicationId);
|
||||
this.complete = complete;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return <code>true</code> if {@link DistributionSet} is after the update
|
||||
* {@link DistributionSet#isComplete()}
|
||||
*/
|
||||
public boolean isComplete() {
|
||||
return complete;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user