summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-01-10policy/models jdk 11 upgradesHOCKLA17-28/+98
Issue-ID: POLICY-1592 Change-Id: Iaa6b61c5f1c76f3e7c2043691f4d29dbc43d144e Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-10Bumped patch version for policy/modelsHOCKLA38-64/+75
Issue-ID: POLICY-1592 Change-Id: Iafc35fe53e28c815a79041f289cb17b6354ceccd Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-10Release policy/models 2.2.0HOCKLA1-0/+4
Issue-ID: POLICY-1592 Change-Id: I751dbafc67d5f232e930b56f8399ea326c6efdb1 Signed-off-by: HOCKLA <ah999m@att.com>
2020-01-10Merge "Added new policy examples to support integration of new version ↵Liam Fallon7-12/+6
validation feature"
2020-01-10Merge "Remove supportedPolicyTypes from PdpStatus"Liam Fallon3-17/+13
2020-01-10Merge "Remove ControlLoopParams."Pamela Dragosh2-105/+0
2020-01-10Added new policy examples to support integration of new version validation ↵Chenfei Gao7-12/+6
feature Issue-ID: POLICY-2316 Change-Id: Ifcb6739c7dd6c5796067a4b9e2f3eef960e1ace4 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2020-01-10Fix policy-models to support data type propertiesliamfallon4-24/+26
Data type properties are not being stored correctly into the database when MariaDB is used (it worked fine in unit tests in H2). Issue-ID: POLICY-2315 Change-Id: Ia901a070292b338154f3766f5fc7b91d656038df Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-01-10Remove supportedPolicyTypes from PdpStatusramverma3-17/+13
Removing supportedPolicyTypes from PdpStatus in policy/models as it is no longer expected from the Pdps to send it as part of the heartbeat or initial registration message. Instead the PdpGroupName is expected from the Pdps in the initial registration message. Issue-ID: POLICY-2256 Change-Id: I14b76a737027e146d69d89c2fe2c3f098a89e196 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2020-01-09Remove ControlLoopParams.jhh2-105/+0
This class is only useful in drools-applications repo. Issue-ID: POLICY-2146 Signed-off-by: jhh <jorge.hernandez-herrero@att.com> Change-Id: Ifbf281a3742950c3cad2c5b56689122dd766b41a
2020-01-09Merge "Update tosca utils to remove code duplication"Jim Hahn2-63/+80
2020-01-09Merge "update Db provider to support query number"Jim Hahn8-38/+76
2020-01-08Update tosca utils to remove code duplicationliamfallon2-63/+80
Refactored the ToscaUtils class to remove code duplication. Issue-ID: POLICY-2315 Change-Id: Ic06a0881d1797dbb3c45ae1903a150fbda421e72 Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-01-08Store and return data types for policiesliamfallon6-29/+243
In this change, the data types of policy types are persisted to the database. All policy types currently in the database are returned on all policy type get requests. This will be made more intelligent in the next review. Issue-ID: POLICY-2315 Change-Id: I10065ab9b90e72114a453494fc706d8aabc50c0a Signed-off-by: liamfallon <liam.fallon@est.tech>
2020-01-08update Db provider to support query numberning.xi8-38/+76
Issue-ID: POLICY-1629 Signed-off-by: ning.xi <ning.xi@est.tech> Change-Id: I42c9542adc44d52b760a70e710ab4cc6fa8a1b3b
2020-01-07Support persistence of data typesliamfallon15-318/+573
Data types must be persisted to the database in order for them to be retrieved in policy type queries and later for policy validation. Issue-ID: POLICY-2315 Change-Id: Iacb88501a597aeee8f6d8bcc3d9604c13dc09090 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-12-23Merge "pdp statistics database provider implementation"Liam Fallon9-150/+593
2019-12-20pdp statistics database provider implementationning.xi9-150/+593
Issue-ID: POLICY-1629 Signed-off-by: ning.xi <ning.xi@est.tech> Change-Id: Ife65d50c862ed90c3c9a3cea91a2b9a8d874fa14
2019-12-17Modifications to decision request and policy fixesPamela Dragosh3-29/+60
Discovered while working on both the SDNC naming and optimization application work. Fixed the datatype for SDNC naming policy type Added a copy constructor for Decision request Added metadata for optimization Subscriber policy type Issue-ID: POLICY-2066 Change-Id: I83c99533f26747c856c591d05d22691714549cf2 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-12-11Fix timeout bug in dmaap simulatorJim Hahn4-10/+46
Also added a start script that can be used to execute the simulator in stand-alone mode (i.e., outside of a docker container). Change-Id: I26550ad36cfd2448c96cf0c09fec24e60ffd815b Issue-ID: POLICY-2298 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-12-11Merge "Fix minor checksyle issues in models"Pamela Dragosh24-124/+130
2019-12-11Merge "Update optimization policies"Jim Hahn3-158/+674
2019-12-10Update optimization policiesPamela Dragosh3-158/+674
These policies need to be updated. Issue-ID: POLICY-2066 Change-Id: Idc15aa36f4295477b37aa6398920853436909751 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-12-10Fix minor checksyle issues in modelsliamfallon24-124/+130
New checkstyle profile flagged some minor issues in policy models. Issue-ID: POLICY-2165 Change-Id: I17ed070a3d55601ad31e48fdfd29fff01d29fa42 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-12-10Merge "Add JpaPdpStatistics entity"Ram Krishna Verma10-0/+679
2019-12-09Merge "Add type_version to naming policy"Ram Krishna Verma1-1/+2
2019-12-09Merge "Refactor optimization policies"Pamela Dragosh15-70/+122
2019-12-09Add JpaPdpStatistics entityshaoqiu10-0/+679
Add JpaPdpStatistics entity which will be used in provider. Add Pdp Statistics entities Issue-ID: POLICY-1628 Signed-off-by: shaoqiu <tim.huang@est.tech> Change-Id: Iab12eb02e2e7f0e366aff64fa665b5d6674f2905 Signed-off-by: shaoqiu <tim.huang@est.tech>
2019-12-08Add type_version to naming policyPamela Dragosh1-1/+2
For testing purposes in the xacml-pdp JUnits. Issue-ID: POLICY-1740 Change-Id: Ia35583b5aac6a40f62542b907d7f3358fc1bcbcd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-12-07Refactor optimization policiesPamela Dragosh15-70/+122
Optimization policies need to be further refactored so that Resource vs Service type policies can be specified. Issue-ID: POLICY-2066 Change-Id: Ia40a947097692ea7dcc6ea8d13eb8669c37fac14 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-12-06Add models to support deltas to policy deploymentsJim Hahn6-0/+706
Change-Id: Ia5134e2ba4faeefe8bcc1333abe6acc57972c243 Issue-ID: POLICY-2274 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-12-06Point to new release version 1.6.1 policy/commonHOCKLA1-1/+1
Issue-ID: POLICY-1583 Change-Id: I63b7f3934b9d6e26400c0dd68e5e31b533be1881 Signed-off-by: HOCKLA <ah999m@att.com>
2019-12-06Merge "Add new Operational Policy Type"Jorge Hernandez8-102/+327
2019-12-05Add new Operational Policy TypePamela Dragosh8-102/+327
New operational policy type for Frankfurt. Updating examples. added sample CLAMP metadata. Issue-ID: POLICY-2217 Change-Id: I941c3a4187a4d164bf793ef2d82c34fccc1a2c35 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
2019-12-05Updated pom.xml to point to release versions of policy/parent and policy/commonHOCKLA1-2/+2
Issue-ID: POLICY-1594/POLICY-1583 Change-Id: Ib8280ab847d8a81d8470c4f4600a6b2a626ae28b Signed-off-by: HOCKLA <ah999m@att.com>
2019-12-04Adding Response model class for PdpGroup Create/Update operationa.sreekumar1-0/+35
Change-Id: Ifa3b4c1e51a1446f47adf8d263989440bddfa8b9 Issue-ID: POLICY-2273 Signed-off-by: a.sreekumar <ajith.sreekumar@est.tech>
2019-12-04Adding native policy type for apex-pdpramverma1-0/+207
Issue-ID: POLICY-2279 Change-Id: Icf9fc690aa885c490ada40b4ad8c6ea1a5fe8586 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-11-28Merge "Reduce volume of log information on A&AI calls"Ram Krishna Verma2-15/+61
2019-11-27Reduce volume of log information on A&AI callsliamfallon2-15/+61
The AaiManager class is logging all the http requests and responses to and from A&AI to logger.info, creating a large volume of logging text, the logging of these messages is now set logger.debug, so they are off by default but can be enabled for debugging. Issue-ID: POLICY-2125 Change-Id: I5f9674db0f9e5b271606e7af34d5218f5c629b09 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-26CDS actor payload to be JSON object when applicableRashmi Pujar3-12/+71
When the policy-payload supplied by CLAMP is a valid JSON string the CDS Blueprint payload must be a JSON object, else retain the CDS Blueprint payload to be a string. Issue-ID: POLICY-2253 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: I6380ab0424339603ecf52d298e4f6f0cd8df754b
2019-11-25Use dependency management for cds proto-definition artifactRashmi Pujar1-2/+0
Refer to: https://gerrit.onap.org/r/#/c/policy/parent/+/98733/ Issue-ID: POLICY-2254 Signed-off-by: Rashmi Pujar <rashmi.pujar@bell.ca> Change-Id: Ie1053ee05f68e8b06bae20c4ce8514dd3aa21d33
2019-11-22Merge "Added new policy types for native PDP policies"Jim Hahn3-0/+134
2019-11-21Allow wild cards in supported type filterJim Hahn2-2/+66
PAP was rejecting deployment of policies whose supported type contained a wild card. This was due to the fact that it was querying the Pdp Groups using a filter on the supported type, which did not take wild cards into consideration. Updated the filtering. Change-Id: I50b3202a00ac85ff09a9861d8bbe1efb6dd49ae3 Issue-ID: POLICY-1636 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-11-21Added new policy types for native PDP policiesChenfei Gao3-0/+134
Issue-ID: POLICY-2212 Change-Id: Ib29ad66994aa64a73f23bc36eebbc1bc03b2ac02 Signed-off-by: Chenfei Gao <cgao@research.att.com>
2019-11-21Fix minor checkstyle issuse in models A&AIliamfallon1-13/+11
Some minor checkstyle issues in the policy models Custom Query support in A&AI fixed. Issue-ID: POLICY-2125 Change-Id: I520caa044966acbe28d3cd864b53fb398df2f385 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-11-15Support wild cards in "supported policy types"Jim Hahn8-268/+663
Refactored PfConceptKey, extracting most of it into PfKeyImpl. Added PfSearchableKey as a subclass of PfKeyImpl. Change-Id: I524f4ce9208fc9ba09e77db4cc7dde5a21e1d7fc Issue-ID: POLICY-2224 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-11-15Merge "Removing Named Query."Pamela Dragosh71-4737/+112
2019-11-13Removing Named Query.pramod.jamkhedkar71-4737/+112
Removing all the related files and necessary modifications for removing named query. The code now only supports Custom Query Issue-ID: POLICY-2125 Change-Id: Ifa5ccb74142aa424359c0dea85b90bbcf70147cb Signed-off-by: pramod.jamkhedkar <pramod@research.att.com>
2019-11-13Remove duplicate dao objectJim Hahn1-1/+0
Code was creating the DAO object twice - removed the extra line. Note: this properly doesn't fix the race condition, but it should fix a memory leak. Change-Id: I5f5c6002d42f9bb0525d1b5013b1300e80264645 Issue-ID: POLICY-1832 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-11-08Fix sonar issue affecting in drools-applicationsJim Hahn1-13/+14
Drools-applications has a serializable class that contains AaiCqResponse. Sonar complained that the latter class must also be serializable, so made the change in policy-models to fix that. In addition, the latter class contained a list of Object. To ensure that those are also serializable, the list was changed to a list of Serializable instead. The latter change can be reverted, if it causes compilation issues elsewhere. However, it seems safer to enforce serializability in the list rather than risk having a later change inject a non-serializable object into the list. Change-Id: Ia741a1a96ec4efcc63451e9af31c19b4fe99dd7d Issue-ID: POLICY-2225 Signed-off-by: Jim Hahn <jrh3@att.com>