aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
AgeCommit message (Collapse)AuthorFilesLines
2018-09-21Format Java code to ONAP standardmark.j.leonard58-4559/+4367
Use the Eclipse formatter to automatically format the code to adhere to the defined standards. Change-Id: I42a8c90c5b272facc4cc2a0c85233061ed64ba3f Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Organise imports to ONAP Java standardsmark.j.leonard25-93/+66
Fix all import ordering. Change-Id: Ia0a0ef64eab7b1560c7dd1d54a1a9e1adee67a5e Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Use a URI builder to create URLsmark.j.leonard2-234/+109
Also refactor the connection code to remove duplicated Exception handling. Change-Id: Ica77b6ba3d8939e89b763a33a6b940d11b066b85 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Reorder HTTP Controller methodsmark.j.leonard1-343/+342
Put public methods before private methods, following the standard Java conventions. Issue-ID: AAI-1650 Change-Id: I527b1e73f92a28cade0a2e792dcee841fafeef43 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Use Builder Pattern to create Operation Resultsmark.j.leonard2-96/+130
Simplify the creation of OperationResult objects using a Builder to encapsulate the common behaviours. Change-Id: Ifacd75f0a808338d1ab4735a79009de7a2cb5351 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Reduce code duplication in the HTTP Controllermark.j.leonard1-157/+86
Refactor repeated code snippets into helper methods, in order to reduce cognitive complexity. Change-Id: Ic04ce219b67017075d2b0b7c6e6bc7250ccff926 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Replace duplicated String literals with Constantsmark.j.leonard1-70/+81
Refactor to address Sonar violations for duplicated literal strings in the HTTP Controller class. Change-Id: I54cc33851df0269a0af917fd7b38ee0c14fda935 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-20Replace 2xx result codes with Java constantsmark.j.leonard1-61/+49
Use standard Java Status Response enums and constants instead of hard-coding magic values in the HTTP Controller. Change-Id: Ic509e2a85808dc3e0faab1b455a2e7851cd86408 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-19Specify Content-Type in all HTTP requestsmark.j.leonard1-6/+1
Explicitly specify all HTTP payload content as JSON, for compatibility with Elasticsearch 6.x Change-Id: Ibd6ad7bfd627a5c1bdfb04a950472e4cedfd790d Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-19Reformat HTTP Controller code to ONAP standardsmark.j.leonard1-1471/+1329
Use the Eclipse formatter to re-organise the HTTP Controller class, prior to introducing HTTPS support. Change-Id: I41015c16bc9b4e84ea0b267a262e89007ef329e6 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-14Fix to not remove whitespaces in the payload to ESEdwin Lawrance2-25/+39
Change-Id: I3547e79ff27220a49539d9cfdf48ac534f155f10 Issue-ID: AAI-1596 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
2018-08-13Fixing the docker jenkins jobArul.Nambi1-1/+1
Issue-ID: AAI-1449 Change-Id: I887151b393ad046ef013463af9d90c3504866a52 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2018-08-02Merge "Updating Search service to be ES 6.1.2 compliant"James Forsyth3-7/+129
2018-08-01Updating Search service to be ES 6.1.2 compliantEdwin Lawrance3-7/+129
Payload to Elastic Search is translated to comply ES6.1.2 PUT and POST calls now have content-type header Added functionality for dynamic templates Change-Id: I2a44a8a9999ec01a3bad1fb6999fe35bb6ef70d1 Issue-ID: AAI-1376 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
2018-07-16Fix variable declarationBogumil Zebek1-1/+1
Change-Id: I19b34476fd1e196857f60cb9a3b780821593ccf8 Issue-ID: AAI-1383 Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com>
2018-06-13remove the creation of aaiadmin userRogers, Reneal(rr267j)1-9/+0
Remove the creation of the aaiadmin user in the docker container Issue-ID: AAI-1226 Change-Id: I6841b2aab5102cb8968eec74219f3d00dc93f88b Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-06-12fix ping communication with search to datarouterrenealr8-88/+34
Add the fix needed in order for the search ping to communicate with data router as well as add some fixes to the start script and dockerfile Issue-ID: AAI-1224 Change-Id: I74ab3b8def4b85513401b7329d33dc6a3bc518bc Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-05-23Dynamically determine image architectureMohammed Naser1-1/+1
The image architecture is currently hardcoded, this patch removes that hardcoded value to allow for ARM64 builds to go through. Change-Id: I282e75b089147cab5006db869acca95954f3c528 Issue-ID: CIMAN-154 Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
2018-05-09Remove backport dependencymkorzeni4-4/+6
since we already have built-in in JDK8 Change-Id: I73ccb1c084405c45eabd50b0a58278b1037ac5f8 Issue-ID: AAI-1130 Signed-off-by: mkorzeni <mateusz.korzeniowski@nokia.com>
2018-04-16Add cosumes and produces type where necessaryShwetank Dave1-5/+4
Change-Id: I4e4a458a65dc870218de33e19ca76f060b436739 Issue-ID: AAI-598 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-06Rename Path search-db to search-data-service.Shwetank Dave2-40/+42
Fix mixtakes in processGet Remove requestBody from where it's not needed. Remove elastic-search dependency Issue-ID: AAI-598 Change-Id: Ib9693297230daba43ed604013c9cf4d32355da92 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-04[AAI-804] Updating dockerfile and start script.Shwetank Dave2-1/+8
Issue-ID: AAI-804 Change-Id: I45c9beeca2d6e27d8aec787e76e3bb50780bead9 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-04-03[AAI-804] Updating files to fix search service.Shwetank Dave3-53/+33
Issue-ID: AAI-804 Change-Id: Ie50f821cd235ccd5c627c11294da4b29bf29fc16 Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-03-29Removing AJSC and moving to SpringBootShwetank Dave52-1387/+1053
[AAI-804] Deleting AJSC files. [AAI-804] Adding Spring Boot Dependencies Issue-ID: AAI-804 Change-Id: Ibda01496d56cc4613f6d2be3b8737d823cee342a Signed-off-by: Shwetank Dave <shwetank.dave@amdocs.com>
2018-03-19add endpoint to query suggestion via ESrenealr8-449/+755
Added logic to ensure that search data service is able to handle suggests type request Issue-ID: AAI-896 Change-Id: I11b3e8dadc5f7023017f01055c24e9c014813eb5 Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-03-16Adding pass through shema creationrv871f4-5/+133
Issue-ID: AAI-888 Change-Id: Ifc094758682b39a5f2c5607bccd418de6e36d841 Signed-off-by: rv871f <richard.vondadelszen@amdocs.com>
2018-03-13Update license date and textsblimkie57-228/+114
Update license date and disable license plugin Change-Id: I61390789684bf93c29b5d230bc189fe8b7411efb Issue-ID: AAI-870 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2017-09-21Renaming openecomp to onapArul.Nambi10-30/+30
Issue-ID: AAI-208 Change-Id: I3b46b263b4570054e77b2fdccfc2f51406e9e9ce Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2017-09-14Renaming openecomp to onapArul.Nambi61-125/+132
Issue-ID: AAI-208 Change-Id: I0f634abc5501adb5fc29523594af8d1f1356adb5 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2017-07-31Updating License and trademarkARUL NAMBI57-399/+285
Issue-ID: AAI-90 Change-Id: I5d38bbca2c614db04bcb24326fd0fcabb4d98317 Signed-off-by: ARUL NAMBI <arul.nambi@amdocs.com>
2017-07-20Reject doc create requests if index does not existFraboni, Gino (gf403a)3-10/+78
[AAI-62] Search Data Service should not implicitly create indexes on document write... Search Data Service will now explicitly block a document create or update if the associated index does not already exist in the document store. Change-Id: Ie96364da754aa6a2cb554b06f62a7a647181bcce Signed-off-by: gfraboni <gino.fraboni@amdocs.com>
2017-06-09Configurable max heap size and PID fixabatos2-2/+3
Change-Id: I9db736bd124b9ffba96a7aa307e82f1b1f74de30 Signed-off-by: abatos <adrian.batos-parac@amdocs.com>
2017-05-16Change to log level of the ES DAO shutdown logsgfraboni1-5/+5
Change-Id: I1a3c0fabd0ca4f745812306d35c3648dfe8507d5 Signed-off-by: gfraboni <gino.fraboni@amdocs.com>
2017-05-09Initial search service commitDaniel Silverthorn92-0/+9567
Changing common logging dep Change-Id: I454697a9df0ee63f43d7b7d2a3818fe2d9b7bcf2 Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>