aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/dao/ElasticSearchHttpController.java
AgeCommit message (Collapse)AuthorFilesLines
2019-03-01Add elasticsearch with searchguard DockerfileLee, Tian (tl5884)1-1410/+0
Add Dockerfile that produces an image of ElasticSearch with SearchGuard plugin pre-installed, and restructure the Maven project to build both the old search-data-service Dockerfile and the new elasticsearch-sg Dockerfile. Change-Id: Iff7cb79e3c09da78b6233422f40cb03eeef5bfdb Issue-ID: AAI-2203 Signed-off-by: Lee, Tian (tl5884) <TianL@amdocs.com>
2019-02-25Search service configurable index settingssblimkie1-9/+11
When deploying the search service, an optional settings-confg.json file can be used to define the index settings if the deployer does not want to use the default settings. Change-Id: I67902684ac4a432b5a010a7177e9980a0c7592d1 Issue-ID: AAI-2191 Signed-off-by: sblimkie <steven.blimkie@amdocs.com>
2018-12-14Add option to bypass user authorizationPopescu, Serban1-0/+4
the es.auth.authorization.enabled property, if set to false, will bypass user authorization Issue-ID: AAI-2007 Change-Id: I46e3e087ee13eacdf977bbdc9c439045b0072a33 Signed-off-by: Serban Popescu <serban.popescu@amdocs.com>
2018-11-28support clear text/jetty obfuscated passwordBansal, Nitin (nb121v)1-1/+2
support clear text/jetty obfuscated password for talking to secure Elastic search Change-Id: I864320f3884da1171b7c7980edbe8858197afc97 Issue-ID: AAI-1971 Signed-off-by: Bansal, Nitin (nb121v) <nitin.bansal@amdocs.com>
2018-11-07fix bulk api to support secure rest calls to an ESrenealr1-1/+6
implement client authorization when performing bulk request to a secure ES update content type support by ES Issue-ID: AAI-1883 Change-Id: I72bd3af0af4680b55fd74c6e7fbd77990fa0ee5b Signed-off-by: renealr <reneal.rogers@amdocs.com>
2018-09-26Implement client authentication to ElasticSearchmark.j.leonard1-2/+7
Add configuration to the existing Elastic Search properties to allow Basic Authentication and/or TLS (SSL) connectivity using HTTPS. The new configuration is optional and this commit is intended to be backwards compatible with existing deployments. Change-Id: I19ec3da9ff810c3f6eabd6f5faf71adde182c861 Issue-ID: AAI-1650 Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-26Fix minor code smellsmark.j.leonard1-11/+3
Further simple changes to remove Sonar code smells Issue-ID: AAI-1650 Change-Id: Ibae60a3aa1e8c7e85b3442d3e267eb6c1a74efbc Signed-off-by: mark.j.leonard <mark.j.leonard@gmail.com>
2018-09-21Use a URI builder to create URLsmark.j.leonard1-227/+84
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.leonard1-96/+40
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 Lawrance1-8/+5
Change-Id: I3547e79ff27220a49539d9cfdf48ac534f155f10 Issue-ID: AAI-1596 Signed-off-by: Edwin Lawrance <Edwin.Lawrance@amdocs.com>
2018-08-01Updating Search service to be ES 6.1.2 compliantEdwin Lawrance1-6/+25
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-06-12fix ping communication with search to datarouterrenealr1-8/+10
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-09Remove backport dependencymkorzeni1-1/+1
since we already have built-in in JDK8 Change-Id: I73ccb1c084405c45eabd50b0a58278b1037ac5f8 Issue-ID: AAI-1130 Signed-off-by: mkorzeni <mateusz.korzeniowski@nokia.com>
2018-03-29Removing AJSC and moving to SpringBootShwetank Dave1-253/+332
[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 ESrenealr1-294/+324
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 creationrv871f1-0/+61
Issue-ID: AAI-888 Change-Id: Ifc094758682b39a5f2c5607bccd418de6e36d841 Signed-off-by: rv871f <richard.vondadelszen@amdocs.com>
2018-03-13Update license date and textsblimkie1-4/+2
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.Nambi1-6/+6
Issue-ID: AAI-208 Change-Id: I3b46b263b4570054e77b2fdccfc2f51406e9e9ce Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
2017-09-14Renaming openecomp to onapArul.Nambi1-0/+1634
Issue-ID: AAI-208 Change-Id: I0f634abc5501adb5fc29523594af8d1f1356adb5 Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>