diff options
author | Jim Hahn <jrh3@att.com> | 2019-04-05 19:39:52 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-04-05 19:39:52 -0400 |
commit | 6aca0a06e0116eee44179dacde646c8034be0437 (patch) | |
tree | de4f6b2655231a37ef999acc90fd728030ab2cef /main/src | |
parent | 92e0c7a0845be859039b315235fc9025b8363977 (diff) |
Add latest-version check to status msg handler
PdpGroupFilter now supports filtering by latest version. Removed a
TODO from PdpStatusMessageHandler and added the filter parameter.
Change-Id: I67983397b616d8e289c4dc79d912bb4cf26e97ae
Issue-ID: POLICY-1542
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java index 711b32a4..e0b00c71 100644 --- a/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java +++ b/main/src/main/java/org/onap/policy/pap/main/comm/PdpStatusMessageHandler.java @@ -140,8 +140,8 @@ public class PdpStatusMessageHandler { Optional<PdpSubGroup> pdpSubgroup = null; Optional<Pdp> pdpInstance = null; - final PdpGroupFilter filter = PdpGroupFilter.builder().name(message.getPdpGroup()).build(); - // TODO setLatestVersion() + final PdpGroupFilter filter = PdpGroupFilter.builder().name(message.getPdpGroup()) + .version(PdpGroupFilter.LATEST_VERSION).build(); final List<PdpGroup> pdpGroups = databaseProvider.getFilteredPdpGroups(filter); if (!pdpGroups.isEmpty()) { final PdpGroup pdpGroup = pdpGroups.get(0); |