aboutsummaryrefslogtreecommitdiffstats
path: root/models-pap/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2019-03-29Update comment in models-pap.Jim Hahn1-1/+1
Change-Id: If51abf12cec951d82738ce7579b583fa97a1a26b Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-27Add support for legacy guard policiesliamfallon1-86/+0
Support for legacy guard policies added. Support for translation of all legacy policies to TOSCA format now complete. Fix merge problems with dummy provider implementation. Issue-ID: POLICY-1095 Change-Id: I3dd1775b78d39078a884e1834502b832ff40be18 Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-25Add PolicyIdentOptVersionJim Hahn9-91/+153
Added additional PolicyIdentXxx classes. Added PdpDeployPolicies, which makes use of it, thus eliminating the need for PdpPolicies, which will be deleted once the PAP has been modified to use the new code. Added Validated class to facilitate field validation. Added utility methods to Validated class. Use new validator methods in PolicyIdentXxx classes. Use addError() method in validator class. Use parameter types instead of "?". Use static Validator instead of local. Get "result" from each call to a validateXxx() method. Derived PolicyIdentOptVersion from PfConceptKey. Moved PolicyIdent classes to models-pdp. Added PolicyIdent classes to models-pap. Also removed copy constructors from classes in models-pap, as those are plain POJOs that will not be copied. Copy constructors will be added to new classes that will be added to models-pdp in a separate review. Forgot to include the new Ident classes in models-pap. Change-Id: I923132c464c7802ee3e9225685cde44f36c64620 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-23Use enums from models-pdp in models-papJim Hahn2-3/+3
Modified models-pap to use enums from models-pdp instead of from pdp-common. Change-Id: I3bc296358c672dff9c218c734583a135e5503e4c Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-22Merge "Add models-pdp to models repo"Pamela Dragosh1-3/+3
2019-03-22Add models-pdp to models repoJim Hahn1-3/+3
Also changed supportedPolicyTypes to PfConceptKey. Updated licenses. Removed trailing whitespace from pom. Provide default request id. Rebased to fix merge conflict. Added SupportedPolicyType class. Renamed SupportedPolicyType to PolicyTypeIdent, and moved it to models-base. Also updated models-pap to use it. Deleted models-pdp Policy and replaced it with ToscaPolicy. Updated test method name. Change-Id: Id65f769c2f308c6b56e79978bd50b84f2e0b3d02 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-22Implement Database providerliamfallon1-0/+86
This review brings in the structure of the database provider with complete unit test coverage. The provider delegates the details of each database interactino to the appropriate package in the model. Resolved merge conflict. Issue-ID: POLICY-1195 Change-Id: I9d01146415531d18bc9648dcf232b425bc09578d Signed-off-by: liamfallon <liam.fallon@est.tech>
2019-03-21Add copy constructors for models-papJim Hahn4-11/+101
Also added a method to PfUtils to simplify cloning lists. Change-Id: Iae667be02cced57b0b9578e0a96c5cda38111b97 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-20Adding classes to models-papramverma6-5/+80
Change-Id: I59acfeeef5e2b93d7d16dbf5c26811a037e255c1 Issue-ID: POLICY-1541 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-03-15Merge "Adding PdpStatistics model to mdoels-pap"Jorge Hernandez1-0/+44
2019-03-15Adding PdpStatistics model to mdoels-papramverma1-0/+44
Change-Id: Ie229b76fbd848811fe919d28eead19060a487157 Issue-ID: POLICY-1541 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
2019-03-15Add list of policy groups to API modelsJim Hahn1-0/+37
The PDP Group Deploy REST API should take a list of PdpGroup, not a single PdpGroup. Change-Id: I0d626ce16793f5bcb3d34b697116f8545861d9f6 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-14Add classes for PDP "simple" REST APIsJim Hahn4-10/+80
Change-Id: I81a624a9cfb93df488bbd447f3ee24d1880048d6 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-13Move PDP Group classes to concepts subdirectoryJim Hahn2-2/+2
Had already done this, but apparently it didn't make it into a review. Change-Id: If4b8083ec0ea6286e6531b6f229405473a8d8430 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-13Added PDP Group model classesjh73582-0/+78
Change-Id: I16298228f9e390362d4783750274703a4db57811 Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn <jrh3@att.com>
2019-03-12Adding models-pap module to policy/modelsramverma3-0/+143
1) Adding models-pap module to policy/models for storing models required by PAP REST API's. 2) Adding test cases. Change-Id: I4e8c38f1ebe96e7a50a188f19f4f4a5bed835f99 Issue-ID: POLICY-1541 Signed-off-by: ramverma <ram.krishna.verma@est.tech>