aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2019-04-25Fix policy callssebdet1-11/+9
Fix policy calls so that the url is now right + update camel version to latest Issue-ID: CLAMP-357 Change-Id: Iffc83f53eb2361d7551b43b28c8e822fbf38c619 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-25Rework code for policy typesebdet2-2/+2
Rework unit tests + test resources and code for policy type renaming Issue-ID: CLAMP-356 Change-Id: Id64c620b42347d6f5535523f33a0a04a54a60fa2 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-23Fixed various sonar identified code smellsp.borelowski4-308/+300
- introduced a few String constants, - removed unused code, - added @FunctionalInterface annotation, - made most fields private (when possible) Change-Id: If8c523125de6a5e5c756e18bd04efd548b19ba91 Issue-ID: CLAMP-346 Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
2019-04-23Merge "Fix logging issues"Sébastien Determe4-387/+535
2019-04-23Fix logging issuesxg353y4-387/+535
Fix the logging issues created by the api defined by camel. Adding the entering/exiting and invoking/invoking return logs as based on the ONAP Logging Requirement. Issue-ID: CLAMP-351 Change-Id: I5cb314ade5a716993206a917dfdbdab3f2572b3a Signed-off-by: xg353y <xg353y@intl.att.com>
2019-04-23Merge "Fixed generic Sonar issue in the clamp project Remove duplicated ↵Sébastien Determe1-4/+7
literal in DefaultUserConfiguration"
2019-04-23Fixed generic Sonar issue in the clamp projectm.kowalski31-4/+7
Remove duplicated literal in DefaultUserConfiguration Change-Id: I8318b568d4dd093e9a57a30341ce607c6668c5d1 Issue-ID: CLAMP-346 Signed-off-by: Marcin Kowalski <m.kowalski3@partner.samsung.com>
2019-04-23Merge "Fixed generic Sonar issue in the clamp project"Sébastien Determe8-92/+87
2019-04-23Merge "Fixed Sonar issues in the onap.clamp.clds.client packages"Sébastien Determe4-11/+20
2019-04-22Fix Checkstyle issuesVidyashree Rama28-149/+237
Fix Checkstyle issues Issue-ID: CLAMP-328 Change-Id: Ic03e0a00094a5de8b592ecd3ce3b9ae0ecdb59f8 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-04-19Fixed generic Sonar issue in the clamp projectk.kedron8-92/+87
Fixed Sonar issue: - name convection for static field in AuthorizationController - optimize condition flow in AuthorizationController - remove not used import in BlueprintParserMappingConfiguration - remove not used field in AuthorizationController, SdcControllersConfiguration, CldsService - add private constructor to the AwtUtils - change redundant EnableAutoConfiguration annotation to SpringBootApplication annotation - remove duplications of code in the CldsDao Change-Id: I49d8be9ec44b5930f76bace0fc9d8cf61ee000f5 Issue-ID: CLAMP-346 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-04-19Merge "Fix Checkstyle issues"Xue Gao26-141/+166
2019-04-19Fix Checkstyle issuesVidyashree Rama26-141/+166
Fix Checkstyle issues Change-Id: I67fa832cc1ac3e4992837a8022bb7673ab81913d Issue-ID: CLAMP-328 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-04-18Removed unused fields from AbstractModelElementp.borelowski5-50/+47
Removed 3 unused private fields from the class org.onap.clamp.clds.model.properties.AbstractModelElement along with the following changes within 4 other classes and 1 test class Change-Id: Id4cc30964ca5478add446601f642c6c0ed190ab7 Issue-ID: CLAMP-347 Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
2019-04-17Merge "Removed unused code from GuardPolicyDelegate and ↵Xue Gao2-27/+14
GuardPolicyDeleteDelegate"
2019-04-17Fixed Sonar issues in the onap.clamp.clds.client packagesk.kedron4-11/+20
Fixed Sonar issues: - change the HasMap to more optimized(in this case) EnumMap in GuardPolicyAttributesConstructor - remove no necessary casting in the TcaRequestFormatter - remove not used value in the DcaeDispatcherServices Additionally correct javadoc in PolicyClient. Change-Id: I6435fe093248073fee9749366e98d5720a8fe375 Issue-ID: CLAMP-346 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-04-17Removed unused code from GuardPolicyDelegate and GuardPolicyDeleteDelegatep.borelowski2-27/+14
Removed unused code from GuardPolicyDelegate and GuardPolicyDeleteDelegate according to Sonar Change-Id: I9a58765b4bcf7015b0ca2e3b1dce272358657052 Issue-ID: CLAMP-345 Signed-off-by: p.borelowski <p.borelowski@partner.samsung.com>
2019-04-17Fixed Sonar vulnerabilities in CldsDaok.kedron1-33/+50
Fixed Sonar vulnerabilities in CldsDao: - used StringBuilder instead of String concatenation to build the query Change-Id: Idc5fb50eae240352edd93329398eca0ef1b3d1f8 Issue-ID: CLAMP-344 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-04-16Merge "Removed code duplication in PolicyClient"Xue Gao1-14/+7
2019-04-16Removed code duplication in PolicyClientk.kedron1-14/+7
Removed code duplication in PolicyClient according to Sonar analysis Change-Id: I7fd7bdee228eb80661a8416ffc0aab0b2e8c7e04 Issue-ID: CLAMP-343 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com>
2019-04-16Fix Checkstyle issuesVidyashree Rama21-39/+75
Fix Checkstyle issues Issue-ID: CLAMP-328 Change-Id: Idecd87abbf3765a7e77e2219df1063e732bb04b0 Signed-off-by: Vidyashree Rama <vidyashree.rama@huawei.com>
2019-04-11Fix PolicyID for DCAEsebdet1-5/+6
Replace PolicyID by the real microservice policy name as it's known in the csar installer code Issue-ID: CLAMP-304 Change-Id: Ifbd1796cb52b6271218fe63927af32ec392ed81a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-11Add pdp groupsebdet1-9/+26
Add pdp group code to add/remove policies from active PDP group Issue-ID: CLAMP-303 Change-Id: I3fcffd229bc7703231b813948aac14ce63437127 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-10Add delete supportsebdet3-160/+8
Move delete code to Camel way so that it's more flexible + introduce removal of the loop + test Issue-ID: CLAMP-315 Change-Id: I7df87e1441d4511ad6b42d0d269c3b2c8c7d8eef Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-10Rework Gson in Camelsebdet3-64/+178
Create new Camel DataFormat class to handle the Clamp JSon model specific type Issue-ID: CLAMP-303 Change-Id: I2abd173c7d2a96a03d333a8def4307bc3cf082d7 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-09PDP Group supportsebdet1-0/+26
Add support to push all policies to pdp group + log Issue-ID: CLAMP-303 Change-Id: Ie53b1dfd11ef8db9c2b5ccca0511e6f6343fb70a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-09Fix guard payloadsebdet1-6/+8
Fix guard payload nullpointerException when guard list is empty or null Issue-ID: CLAMP-303 Change-Id: I6f714a877036cbc531dd35505202dde227cc224a Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-08Create submit routesebdet3-6/+16
Create required components for Submit route in camel + unit tests + Policy payload generation + emulator feature for new policy api Issue-ID: CLAMP-303 Change-Id: If9033cfa3f4e346e2cbd7f891baff1f2c04a40a2 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-08Fix dom4j issuesebdet2-66/+96
Upgrade Spring and Camel to latest version so that it fixes thesecurity issues Issue-ID: CLAMP-338 Change-Id: I214ac3520be3c388ec2f7e715b7d37e0db5d5a9c Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-08Fix config policysebdet2-4/+6
Fix saving of config policy due to refactoring + fix missing model type in config policy Issue-ID: CLAMP-303 Change-Id: I863f3bb6b2acef8ed7bf534e142c1730b1493b67 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-05Merge "Introduce Camel route"Xue Gao3-195/+100
2019-04-05Merge "LoopLog repository"Xue Gao12-122/+256
2019-04-05Merge "Update Csar handler"Sébastien Determe1-1/+22
2019-04-05Introduce Camel routesebdet3-195/+100
Camel route for Submit operation using http4 component Issue-ID: CLAMP-303 Change-Id: I29804a7db6286dfa84f7eed63813f25299a385e6 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-05LoopLog repositorysebdet12-122/+256
Introduction of the loop log repo + refactoring Issue-ID: CLAMP-303 Change-Id: I3e806993d35f82fd9258e55592391a48eb7e199f Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-04-03Update Csar handlerxg353y1-1/+22
Update Csar handler, return the content of policies.yaml concatenateed with data.yaml while getting the policy model yaml. Issue-ID: CLAMP-261 Change-Id: I8ef7bcb9b2daaea37f13ca9d3ad9f38b889d6041 Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-29Refactoringsebdet6-52/+40
Small refactoring of the Http library Issue-ID: CLAMP-333 Change-Id: I90a5488241ab84636bc0cec5849e97c4f98f3a38 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-03-28Rework the submit operationxg353y11-25/+401
Rework the logic to create/delete ms config policies. Issue-ID: CLAMP-303 Change-Id: I317e262ab68280a7518a6e31e82e5fcb0a7f94ed Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-25Rework deploy/undeploy UIxg353y2-149/+5
Rework the deploy/undeploy Ui based on the new data model. Issue-ID: CLAMP-334 Change-Id: I03d591bea81cb050e12031782dfa383656f1a32c Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-22Rework the deploy/undeploy methodxg353y5-8/+312
Create the camle box for depoy/undeploy closed loop with the new loop data model Issue-ID: CLAMP-334 Change-Id: Ica77163877c30b31efc37ab489b3810fe1251012 Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-20Create common library for RESTxg353y2-4/+151
Create the common library to establish http/https calls Issue-ID: CLAMP-333 Change-Id: I4fbb8a45bb75cb370e46bbf63b5e2ce0ea9b834c Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-20Fix check style issuesxg353y25-100/+275
Fix the issues found by check style. Issue-ID: CLAMP-328 Change-Id: I709bbad46fd35d04174af5f85f314e05dce6929f Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-19Merge "Fix check style issues"Sébastien Determe25-85/+237
2019-03-19Merge "Fix tosca parser"Sébastien Determe1-8/+1
2019-03-19Fix tosca parsersebdet1-8/+1
Fix the parser so that we support the new tosca policy discussed Issue-ID: CLAMP-186 Change-Id: I3051dddf749f1969f8b1d12d726c65f6aad48d51 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-03-19Checkstyle improvementsChrisC8-635/+1048
Aligning couple of files with dublin checkstyle rules Issue-ID: CLAMP-328 Change-Id: Id6d97adefaeb9ddd7f8dc3253de61aeda13d27bf Signed-off-by: ChrisC <christophe.closset@intl.att.com>
2019-03-18Fix check style issuesxg353y25-85/+237
Fix the issues raised by the check style Issue-ID: CLAMP-328 Change-Id: I07f80274968e032d060a7d881f4851568616a832 Signed-off-by: xg353y <xg353y@intl.att.com>
2019-03-15Merge "Fix policy Tosca converter"Eddy Hautot1-47/+44
2019-03-15Fix policy Tosca convertersebdet1-47/+44
Fix converter so that it can understand the new Policy Yaml model Issue-ID: CLAMP-306 Change-Id: I4d2f8640b2344e7ceee2cfec2d7e3175777f591b Signed-off-by: sebdet <sebastien.determe@intl.att.com>
2019-03-15Rework UIxg353y1-1/+2
Fix bugs due to the data model change Issue-ID: CLAMP-318 Change-Id: If3750505a5f496caae61c01c2179e058e79eba52 Signed-off-by: xg353y <xg353y@intl.att.com>