try {
PfFilter filter = new PfFilterFactory().createFilter(someClass);
- String filterQueryString = SELECT_FROM_TABLE
+ var filterQueryString = SELECT_FROM_TABLE
+ filter.genWhereClause(filterParams)
+ filter.genOrderClause(filterParams);
* @param config configuration for this operation
* @param propertyNames names of properties required by this operation
*/
- public DecisionOperation(ControlLoopOperationParams params, HttpConfig config,
+ protected DecisionOperation(ControlLoopOperationParams params, HttpConfig config,
List<String> propertyNames) {
super(params, config, DecisionResponse.class, propertyNames);
this.config = (DecisionConfig) config;
return func.apply(req);
}
- DecisionResponse response = new DecisionResponse();
+ var response = new DecisionResponse();
response.setMessage("unsupported action: " + req.getAction());
return response;
}
package org.onap.policy.models.pdp.concepts;
+import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString(callSuper = true)
+@EqualsAndHashCode(callSuper = true)
public class PdpStateChange extends PdpMessage {
/**
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2019-2021 Nordix Foundation.
- * Modifications Copyright (C) 2019 AT&T Intellectual Property.
+ * Modifications Copyright (C) 2019, 2021 AT&T Intellectual Property.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import java.util.ArrayList;
import java.util.List;
+import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString(callSuper = true)
+@EqualsAndHashCode(callSuper = true)
public class PdpStatus extends PdpMessage {
private String pdpType;
package org.onap.policy.models.pdp.concepts;
+import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString(callSuper = true)
+@EqualsAndHashCode(callSuper = true)
public class PdpTopicCheck extends PdpMessage {
/**
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
+import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString(callSuper = true)
+@EqualsAndHashCode(callSuper = true)
public class PdpUpdate extends PdpMessage {
/**