summaryrefslogtreecommitdiffstats
path: root/aai-core/src/main
AgeCommit message (Collapse)AuthorFilesLines
2022-10-14Remove the apache commons-lang dependency in aai-commonFiete Ostkamp20-93/+108
Issue-ID: AAI-3551 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de> Change-Id: Ib68b6fb43044532abf39c1ac088ef969c5aa00c2
2021-07-02Fix all blocker sonar issues and some checkstyleLiard Samuel19-286/+332
Issue-ID: AAI-3362 Signed-off-by: sliard <samuel.liard@gmail.com> Change-Id: I365be3e8afe75b54f5a65deadb054df73857274e
2021-04-06Fixed Concurrent Updates overriding the AAI objectNiharika Sharma1-0/+16
Issue-ID: AAI-3308 Signed-off-by: Niharika Sharma <niharika.sharma@amdocs.com> Change-Id: I7d2d591928987b9f5f9465325fc1c4d03dee3db2
2021-01-06Use data owner attribute instead of owning entity for OwnerCheckM.Hosnidokht2-30/+29
Issue-ID: AAI-3226 Signed-off-by: Mohammad Hosnidokht <mohammad.hosnidokht@yoppworks.com> Change-Id: I8222546e7264e99ca3e53fe1212a45008c1064e6
2020-11-10Filter get all pnf by owning entity if multi tenancy is enabledRodrigo Lima2-11/+28
Issue-ID: AAI-3214 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: I97e62e12f06938294d9969d21b4dcacae9d01d78
2020-10-06Fixed concurrency issue in PNF uploadingNiharika Sharma1-4/+23
Issue-ID: AAI-3100 Signed-off-by: Niharika Sharma <niharika.sharma@amdocs.com> Change-Id: I34fe77179efc5590f6e70b0bb2b97e7229f0adf3
2020-09-15Add ownercheck side effect to enrichData method in dbserializerRodrigo Lima1-1/+2
Issue-ID: AAI-3184 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: I3c8b3d33613c5345fc767fb03f1c4be79a321acc
2020-09-11Update ownercheck side effectRodrigo Lima1-2/+2
- Use both E and both V to select owning entity Issue-ID: AAI-3176 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: I2e453dfd3c52c0de67981b8344434576fc514d0f
2020-09-10Add side effect to check pnf owning entityRodrigo Lima3-4/+174
- Create side effect to check : user's groups contains pnf's owning entity name - Create unit tests for side effect - Add new process method in HttpEntry to pass set of groups - Pass set of groups to db serializer Issue-ID: AAI-3176 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: I4bc7ab6e22bce8cbe60bd7ef6bb5db73dac3a1c4
2020-07-13Merge "TreeFormat - Removed problems triggering Sonar errors"William Reehil1-45/+61
2020-07-13Merge "Fix sonar issues in SchemaGenerator"William Reehil1-51/+55
2020-07-13Merge "Fix minor sonar issues"William Reehil2-9/+7
2020-07-13Merge "Removed problems triggering Sonar errors"William Reehil1-52/+76
2020-07-10Fix sonar issues in SchemaGeneratorFrancis Toth1-51/+55
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: I1ba6fd929992699477502c46c1a5595a162d3209 Issue-ID: AAI-2902
2020-07-10Fix minor sonar issuesFrancis Toth2-9/+7
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: Iea540bb663429d55ce90879f9d9a22888c583833 Issue-ID: AAI-2128
2020-07-09Merge "Fix minor sonar issues in SchemaGenerator4Hist"William Reehil2-76/+40
2020-07-06Merge "Removed critical code smell"William Reehil1-3/+4
2020-07-06Merge "Critical Sonar bug fix"William Reehil1-2/+2
2020-06-15Fix sonar issues in AggregateRodrigo Lima1-2/+2
- check obj.isPresent() in method processInput - return Optional.empty instead of null in method createPropertiesObject Issue-ID: AAI-2934 Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com> Change-Id: Iebe0184ce39f244dd56e6861617cbf4e5dafb06c
2020-06-15TreeFormat - Removed problems triggering Sonar errorsChris André1-45/+61
- Removed all unchecked access to Optional.get() - Renamed LOGGER to TREE_FORMAT_LOGGER, following Sonar's suggestion Issue-ID: AAI-2931 Signed-off-by: Chris Andre <chris.andre@yoppworks.com> Change-Id: I7536309220f2dfb4b75ecbcd6b9e36797c5f1826
2020-06-08Removed problems triggering Sonar errorsChris André1-52/+76
- Made recurrent strings constant - Refactored `createFilteredPropertyMap` to use a more functional approach - Added test for the presence of Optional in `getPropertyFilteredObject` & `filterProperties` Issue-ID: AAI-2926 Signed-off-by: Chris Andre <chris.andre@yoppworks.com> Change-Id: I6078bd1d903d6739326ce7154cb83c1ded1e6b04
2020-06-03Removed critical code smellezhil1-3/+4
Removed critical code smell in AAIUnmarshallingException Issue-ID: AAF-1120 Change-Id: I0949e9f2f466ac98db39cfa1adf50f86a531b3a5 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2020-06-03Critical Sonar bug fixezhil1-2/+2
Sonar critical bug fix in HttpsAuthClient Issue-ID: AAF-1120 Change-Id: I840d7d4ac56767fd56f687f850bec879a4edeca9 Signed-off-by: ezhil <ezhrajam@in.ibm.com>
2020-05-12aai-common support for v20LaMont, William(wl2432)13-87/+732
Issue-ID: AAI-2904 Change-Id: I6dca2f785882b38ca2b2474a11affaa0328c003a Signed-off-by: LaMont, William(wl2432) <wl2432@att.com>
2020-05-07Fix minor sonar issues in SchemaGenerator4HistFrancis Toth2-76/+40
Signed-off-by: Francis Toth <francis.toth@yoppworks.com> Change-Id: Ie4f64b8d9f43bf98c76c1751025ceaf2dae59180 Issue-ID: AAI-2901
2020-04-21AAI-common sonar fixesDavid Brilla13-218/+146
Issue-ID: AAI-2786 Change-Id: Ia37e660886fce56c8ab5c53888fcbf265692a359 Signed-off-by: David Brilla <david.brilla@tieto.com>
2020-03-10Reenable spring-boot2 in aai-commonJimmy Forsyth2-18/+15
Issue-ID: AAI-2831 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: I9f3f1d8d1d9ef45786d0f17afa5c824e90c77263
2020-03-10Move back to spring-boot 1.5 for bugfixJimmy Forsyth2-15/+18
Issue-ID: AAI-2831 Signed-off-by: Jimmy Forsyth <jf2512@att.com> Change-Id: I1e3d278fe343e4f05cdfd71d2443aef19c8541c2
2020-03-03Update aai-common to be spring boot 2 compatibleHarish Venkata Kajur2-18/+15
Issue-ID: AAI-2806 Change-Id: Idad79373209ef25bb26551253aa8ad86e4a75549 Signed-off-by: Harish Venkata Kajur <vk250x@att.com>
2020-02-25Enhancements for the aai-common libraryKajur, Harish (vk250x)150-7680/+6549
Issue-ID: AAI-2806 Change-Id: I2dbb46b897b35136ac1bb802978d3f974af1b307 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2020-02-21AAI-common sonar fixesDavid Brilla5-23/+21
Fixing bugs, code smells of aai-common repo found on sonar. Issue-ID: AAI-2786 Change-Id: I421f8b46f385c7334b0f3cd80c07cb2f833f127f Signed-off-by: David Brilla <david.brilla@tieto.com>
2020-02-14[AAI-2528] | Update to spring-boot 2.1.6.RELEASESneha Dantkale1-19/+15
Issue-ID: AAI-2528 Change-Id: I87756450c12538af3f21e4affa24ef76724d232c Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com> Change-Id: I9437899ba1c7f2aec816a8076c954b080f9512fb Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com> Change-Id: If3ad26f98c815e4872320b2652cf6c2e0b675de0 Signed-off-by: Sneha Dantkale <Sneha.dantkale@amdocs.com>
2020-02-13ListEndpoints fixMatej Babej1-6/+5
Fixing 4 code smells Issue-ID: AAI-2794 Change-Id: Ica204021dd343ec7deac01587287e361efda4643 Signed-off-by: Matej Babej <matej.babej@tieto.com>
2020-02-11Use "instanceof" instedDavid Brilla1-3/+4
Bug correction, from class.toString comparing to instanceof Issue-ID: AAI-2786 Change-Id: Idbbdaaa37208b8c40556a42255aa43175c14b1c7 Signed-off-by: David Brilla <david.brilla@tieto.com>
2020-02-11Use isAssignableFrom insteadDavid Brilla1-3/+3
Change from class -> string -> equals to isAssignableFrom Issue-ID: AAI-2786 Change-Id: I0f48ad5b7ad5728b397c54bfa883fea9431dd0a5 Signed-off-by: David Brilla <david.brilla@tieto.com>
2019-08-28Update core logic to change how toKajur, Harish (vk250x)1-322/+313
handle cassandra shutdown so that it returns an approprate 500 error Issue-ID: AAI-2082 Change-Id: Ia1b668de9dca90c44fa36b75a901b7cd596fe7d5 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-08-20Merge "Fixed Sonar "Blocker Bugs""James Forsyth2-50/+38
2019-07-25Sonar Fix- URIParser.javadinesha1-9/+7
Fixed sonar issues across this file Issue-ID: AAI-2525 Change-Id: Ibc7f1e9a64de5283bcc9845522817c1dff30e5e6 Signed-off-by: dinesha <dineshgs@in.ibm.com>
2019-05-27Fixed Sonar "Blocker Bugs"Vasyl Razinkov2-50/+38
Fixed potential "thread-Leak" Signed-off-by: Vasyl Razinkov <vasylrazinkov@sidero.ie> Issue-ID: AAI-2459 Change-Id: Ic36ff778486a7a860070b05873dc88d7d31f736b
2019-04-11AAI-1523 Batch reformat aai-coreKeong Lim229-19540/+19972
Use maven plugins from AAI-2198 to do batch reformat of aai-core to consistent code style. Change-Id: If43889a61778f3a766c3663098064cdcc8e507bf Issue-ID: AAI-1523 Signed-off-by: Keong Lim <keong.lim@huawei.com>
2019-04-10Update DBSerializer to properly deal1.4.3Kajur, Harish (vk250x)1-1/+12
with adding relationships to edge rules in older versions of the api that might not be in the latest versions of the API Issue-ID: AAI-2325 Change-Id: I78fa1c747c4c52a01d2d6ed762e0dc4cdf448fee Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-10Remove the generation code for swagger and xsdKajur, Harish (vk250x)22-5672/+0
The following code has been moved to schema service Issue-ID: AAI-2313 Change-Id: I58911dffef70ab2c32a73de79ac971c3650106e6 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-09Merge "Update dmaap to use logging context"James Forsyth6-22/+67
2019-04-09Merge "Fix logic in Schema Generator to properly"James Forsyth1-2/+2
2019-04-09Merge "Optimize the areas where its creating extra memory"James Forsyth3-84/+84
2019-04-09Merge "Update schema service to fail to start"James Forsyth15-81/+102
2019-04-08Update schema service to fail to startKajur, Harish (vk250x)15-81/+102
when all of the schema failed to load so the microservice wouldn't be in a bad state and also have the microservice dictate what versions of schema they are using Issue-ID: AAI-2329 Change-Id: Ie2e6e2bb3bac37b2ad57ada613e7c0e65647b64e Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-07Update dmaap to use logging contextKajur, Harish (vk250x)6-22/+67
Change from using the MDC to use Logging Context When an update happens on a vertex, there is no need to update the aai-node-type as a vertex type will not be modified and this causes some issues with how janusgraph works Issue-ID: AAI-2325 Change-Id: Iee51fea0dcd5e80636b8303f5f69346f8d653aa0 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-07Fix logic in Schema Generator to properlyKajur, Harish (vk250x)1-2/+2
check if indexes are needed on dbaliased properties Added test to verify indexes are created. Issue-ID: AAI-2333 Change-Id: Ib80de5cce3dfc99277d7cbd6e1a51530ff588478 Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>
2019-04-07Optimize the areas where its creating extra memoryKajur, Harish (vk250x)3-84/+84
After doing some analysis using profiler found that the most cases where memory is being spent when doing an GET is during the conversion from one case to another case and instead cached that during the start of the application Issue-ID: AAI-2331 Change-Id: I291d5f953d4158daca293198cf6fc7f5cf86d25d Signed-off-by: Kajur, Harish (vk250x) <vk250x@att.com>