Skip to content

Commit

Permalink
Move develop latest code to develop 121 (#965)
Browse files Browse the repository at this point in the history
* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#754)

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow

* Update postres-init_trigger.yml

* [MOSIP-25934], [MOSIP-25771] , [MOSIP-25363]  Added Audit logs (#757)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases (#758)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* MOSIP-25864 MOSIP-26010 MOSIP-25751 Added attribute Name in personalized card template. (#756)

* Fixed service history issue.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added configurable authentication Mode in enum.

* MOSIP-25864 Added javadoc.

* MOSIP-25864 Added javadoc.

* MOSIP-25861-resident-api-able-to-upload-document-with-all-invalid-details-as-input (#753)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

---------

Co-authored-by: Ritik Jain <[email protected]>

* Notification issue (#760)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

* revert changes in template util

* added test case

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-25864 Fixed template issue. (#761)

* Fixed service history issue.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added attribute Name in personalized card template.

* MOSIP-25864 Added configurable authentication Mode in enum.

* MOSIP-25864 Added javadoc.

* MOSIP-25864 Added javadoc.

* MOSIP-25864 Fixed template issue.

* [MOSIP-25637] Updated postgres-init_trigger.yml workflow (#759)

* MOSIP-23878  implemented interceptor (#602)

* MOSIP-23019 ordercard redirect url done

* MOSIP-23019 ordercard redirect test case url done

* MOSIP-23019 junit fixed

* Changes in order card and redirect URL is done

* Fix Junit and residenterror code changed

* Exception handle

* MOSIP-22888 ticket done

* chnages done  to get idatoken

* MOSIP-24860 Update event read status is done

* MOSIP-25005 Batch job bug fixed

* Removed whitespace

* Implemented interceptor

* Changes done for interceptor

* removed unused file

* Interceptor changes done

* code formatting

* Removed whitespace

* Removed whitespace

* Removed unused file

---------

Co-authored-by: Neha Farheen <[email protected]>

* Resolved test case (#764)

* MOSIP-23019 ordercard redirect url done

* MOSIP-23019 ordercard redirect test case url done

* MOSIP-23019 junit fixed

* Changes in order card and redirect URL is done

* Fix Junit and residenterror code changed

* Exception handle

* MOSIP-22888 ticket done

* chnages done  to get idatoken

* MOSIP-24860 Update event read status is done

* MOSIP-25005 Batch job bug fixed

* Removed whitespace

* Implemented interceptor

* Changes done for interceptor

* removed unused file

* Interceptor changes done

* code formatting

* Removed whitespace

* Removed whitespace

* Removed unused file

* Junit fixed

---------

Co-authored-by: Neha Farheen <[email protected]>

* removed throw exception (#765)

Co-authored-by: Ritik Jain <[email protected]>

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs (#762)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs (#766)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* MOSIP-24630 Fixed Security Vulnerability. (#767)

* Fixed service history issue.

* MOSIP-24630 Changed service history implementation.

* MOSIP-24630 Added jpa repo for service history api.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Fixed typo.

* MOSIP-24630 Reverted default start date.

* MOSIP-24630 Improved code coverage. (#768)

* Fixed service history issue.

* MOSIP-24630 Changed service history implementation.

* MOSIP-24630 Added jpa repo for service history api.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Fixed typo.

* MOSIP-24630 Reverted default start date.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* [MOSIP-25268] Fixed Sonar vulnerability (#769)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* MOSIP-24630 Improved code coverage. (#770)

* Fixed service history issue.

* MOSIP-24630 Changed service history implementation.

* MOSIP-24630 Added jpa repo for service history api.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Fixed typo.

* MOSIP-24630 Reverted default start date.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* MOSIP-24630 Improved code coverage.

* Fix class cast issue (#771)

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26247 fix update otp validation issue in update contact (#772)

* Fix class cast issue

* MOSIP-26247 WIP-fix-to-double-entry-for-update-contact

* Test fixes

* Code fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-25861-resident-api-able-to-upload-document-with-all-invalid-details-as-input (#763)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

* revert changes in template util

* added test case

* put validation on transaction id

* fixed transaction id validation

* added regex validation for eventId and transactionId

* validated documentid, transactionid and otp

* updated regex names

* fixed mumeric method name

* updated test properties

---------

Co-authored-by: Ritik Jain <[email protected]>
Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 25391 individualid decryption fix share cred status fix (#773)

* Fix class cast issue

* MOSIP-26247 WIP-fix-to-double-entry-for-update-contact

* Test fixes

* Code fix

* Individual ID decryption fixed in interceptor, share cred status initialized to NEW.

* pom fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26090-tech-story-fix-the-status-updates-for-vid-card-download-update-uin-events (#775)

* fixed automation issues

* fixed download service history API

* corrected the proprty name

* fixed 2 eventID generated error

* removed null condition

* validated doccatcode and doctypcode

* validate doctype based on doccat

* set indivudual id in db entity

* fixed batch job issue

* revert changes in template util

* added test case

* put validation on transaction id

* fixed transaction id validation

* added regex validation for eventId and transactionId

* validated documentid, transactionid and otp

* updated regex names

* fixed mumeric method name

* updated test properties

* changed status to new

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-24773 Fixed Download card issue. (#774)

* Fixed service history issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Fixed Download card issue.

* MOSIP-24773 Refactor code

* removed unused variable from request (#777)

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 26090 tech story fix the status updates for vid card download update uin events (#778)

* removed unused variable from request

* fixed batch job

* fixed code

* formatted code

* fixed batch job

* added stored status

* updated batch job and created download card link

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-26272] Added validation for update-uin API (#779)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* Mosip 26090 tech story fix the status updates for vid card download update uin events (#780)

* removed unused variable from request

* fixed batch job

* fixed code

* formatted code

* fixed batch job

* added stored status

* updated batch job and created download card link

* updated batch job and fixed download-card api

* fixed placeholder and method name

---------

Co-authored-by: Ritik Jain <[email protected]>

* [MOSIP-26272] updated update-uin PR, test cases (#781)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* updated PR

* MOSIP-24939 Improved code coverage. (#776)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* Fixed build issue (#782)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Mosip 26090 tech story fix the status updates for vid card download update uin events (#783)

* removed unused variable from request

* fixed batch job

* fixed code

* formatted code

* fixed batch job

* added stored status

* updated batch job and created download card link

* updated batch job and fixed download-card api

* fixed placeholder and method name

* added suffix for rid

* removed unused property

* update the data time

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-25854 Fixed vid card issue. (#785)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* Updated transactionId error message (#784)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* MOSIP-25854 Fixed vid card issue. (#786)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue. (#787)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* Updated Test cases for ResidentServiceResUpdate class (#788)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* MOSIP-25536 Added online verification partner id in jpa repo view history. (#790)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25536 Added online verification partner id in jpa repo view history.

* MOSIP-25536 Fixed test case failure.

* Fix for setting read status to false (#791)

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#792)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#793)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#794)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#796)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#797)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#798)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#799)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Revert mosip 26314 fix for read status for auth lock status (#800)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

* Minor fixes

* Ignoring test for build failure in github action. to be reverted and fixed

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26314 fix for read status for auth lock status 2 (#801)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

* Minor fixes

* Ignoring test for build failure in github action. to be reverted and fixed

* Fix for setting read status to false (#791)

Co-authored-by: Loganathan Sekar <[email protected]>

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 26350 fix share cred req (#802)

* Fix for setting read status to false

* Revert "Fix for setting read status to false (#791)"

This reverts commit c00a0512aac93ec9a38350ccf9c8617b80cee6a3.

* Check test fix

* Fix NPE in test in github

* Test fix

* logic fix in test

* Test fix

* Test fix

* Minor fixes

* Ignoring test for build failure in github action. to be reverted and fixed

* Fix for setting read status to false (#791)

Co-authored-by: Loganathan Sekar <[email protected]>

* Fix for share credential request to cred req service

* fix for is masked false

* Fix for isMasked

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* added log for number of entries (#804)

Co-authored-by: Ritik Jain <[email protected]>

* [MOSIP-26343] Created module specific audits (#803)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* Removed unwanted fields, fixed coding issue to avoid state in bean, o… (#805)

* Removed unwanted fields, fixed coding issue to avoid state in bean, organized imports

* Text fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-24939 Fixed service history issue. (#807)

* Fixed service history issue.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-24939 Improved code coverage.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25854 Fixed vid card issue.

* MOSIP-25536 Added online verification partner id in jpa repo view history.

* MOSIP-25536 Fixed test case failure.

* MOSIP-24939 Improved sonar coverage.

* MOSIP-24939 Improved sonar coverage.

* MOSIP-24939 Fixed service history issue.

* MOSIP-24939 Fixed service history issue.

* MOSIP-24939 Fixed service history issue.

* Mosip 26515 format fixing (#806)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

---------

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 26515 format fixing (#808)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

---------

Co-authored-by: Ritik Jain <[email protected]>

* batch job fix (#812)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-24737 Added proper error code for invalid page fetch value. (#813)

* Fixed service history issue.

* MOSIP-24737 Added proper error code for invalid page fetch value.

* MOSIP-24737 corrected id-schema value in update-uin.

* MOSIP-24737 corrected id-schema value in update-uin.

* MOSIP-26121-resident-ui-in-verify-phone-number-email-id-not-able-to-track-event-id-status-its-displayed-empty-screen (#814)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

---------

Co-authored-by: Ritik Jain <[email protected]>

* Automation fix dev3 (#816)

* Fixed service history issue.

* update-uin old api fix for id-schema version issue

* update-uin old api fix for id-schema version issue

* update-uin old api fix for id-schema version issue

* MOSIP-26292-resident-api-appropriate-error-message-is-not-displayed-when-purpose-is-empty (#819)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

* fixed missing parameter error

---------

Co-authored-by: Ritik Jain <[email protected]>

* Fix for email notification for failure case (#821)

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-26087],[MOSIP-26355] Added featureName in ack pdf filename (#820)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Fix failure notifications (#823)

* Fix for email notification for failure case

* Added missing file

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26121-resident-ui-in-verify-phone-number-email-id-not-able-to-track-event-id-status-its-displayed-empty-screen (#822)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

* fixed missing parameter error

* fixed ida token issue

* fixed to get individualId

---------

Co-authored-by: Ritik Jain <[email protected]>

* fixed individual id issue (#825)

* added log for number of entries

* fix batch job individual id null

* added notification for vid card download

* rename the method to get individual id from session

* update websub notification

* fix feature names

* fix share credential status update in batch job

* fixed docTypCode issue

* fixed 400 httpstatus code

* fixed missing parameter error

* fixed ida token issue

* fixed to get individualId

* fix individual id issue and added comments

* made constant

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-26289 bug fixed (#824)

* MOSIP-26289 changes done

* MOSIP-26289 changes done

---------

Co-authored-by: Neha Farheen <[email protected]>

* Bug fixed (#827)

* MOSIP-26289 changes done

* MOSIP-26289 changes done

* Bug fixed

---------

Co-authored-by: Neha Farheen <[email protected]>

* fixed id version for document APIs (#828)

Co-authored-by: Ritik Jain <[email protected]>

* updated enum names and removed duplicate constants (#829)

* fixed id version for document APIs

* update constant names

* used constant file_text

---------

Co-authored-by: Ritik Jain <[email protected]>

* MOSIP-24939 Fixed test case failure. (#831)

* Fixed service history issue.

* MOSIP-24939 Fixed test case failure.

* MOSIP-26693-api-resident-service-request-id-is-getting-generate-from-credential-issuance-when-credential-type-and-issuer-not-present-in-the-request-body (#830)

* fixed id version for document APIs

* update constant names

* used constant file_text

* added validation on req credential API

* added validation for req credential API

---------

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 25391 fix bell notification issue (#832)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-24494] Updated transliterate API error msg (#833)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* Added properties for default page size (#836)

* Added properties for default page size

* minor import fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Add property for default page size 2 (#837)

* Added properties for default page size

* minor import fix

* Fix to the default page size logic

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* MOSIP-26334 Fixed update uin invalid lang code error. (#838)

* Fixed service history issue.

* MOSIP-26334 Fixed update uin invalid lang code error.

* MOSIP-26334 Corrected code as per review comment.

* MOSIP-26334 Corrected code as per review comment.

* MOSIP-26334 Corrected code as per review comment.

* MOSIP-26334 Corrected code as per review comment.

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs (#839)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs

* MOSIP-26347-aid-stage-is-returning-success-even-though-it-is-failed-in-regproc (#835)

* fixed id version for document APIs

* update constant names

* used constant file_text

* added validation on req credential API

* added validation for req credential API

* removed duplicate code

* fixed rid status issue

* removed name from enum

* code fix for rid status issue

* update validate request body method

---------

Co-authored-by: Ritik Jain <[email protected]>

* Mosip 25391 fix bell notification issue (#840)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

* Fixed cred batch job issues

* Minor refactoring and fixes

* test fix

* Card status update fix

* added author

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 25391 fix bell notification issue 1 (#841)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

* Fixed cred batch job issues

* Minor refactoring and fixes

* test fix

* Card status update fix

* added author

* Added missing file

* Added jdoc

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 25391 fix bell notification issue 2 (#842)

* Fix for email notification for failure case

* Added missing file

* Fix bell notification icon issue

* Test fix

* Fixed cred batch job issues

* Minor refactoring and fixes

* test fix

* Card status update fix

* added author

* Added missing file

* Added jdoc

* Updated logging

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Removed logic to mark failure for unavailable req id (#844)

Co-authored-by: Loganathan Sekar <[email protected]>

* [MOSIP-26089] Added authentication mode (#845)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs

* [MOSIP-26089] Added authentication mode

* MOSIP-22871-api-add-api-to-convert-the-list-of-registration-centers-request-as-a-downloadable-pdf (#847)

* fixed id version for document APIs

* update constant names

* used constant file_text

* added validation on req credential API

* added validation for req credential API

* removed duplicate code

* fixed rid status issue

* removed name from enum

* code fix for rid status issue

* update validate request body method

* fixed registration center issue

---------

Co-authored-by: Ritik Jain <[email protected]>

* Added debug logging filter (#849)

* Added debug logging filter

* Added jdoc

* Minor cleanup

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 1 (#851)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Fixed Download UIN card using VID. (#848)

* Fixed service history issue.

* Fixed download card using vid.

* MOSIP-24818 Changed deprecated admin module proxy API endpoint. (#852)

* Fixed service history issue.

* MOSIP-24818 Changed deprecated admin module proxy API endpoint.

* MOSIP-24818 Removed un-necessary commits.

* Mosip 22874 authtype lock websub issue 3 (#853)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 3 (#854)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 4 (#855)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

* junit fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 5 (#857)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

* junit fix

* WIP-fixing auth txn saving

* Updated logic to save auth txn

* Added Y and N status for getting description

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Mosip 22874 authtype lock websub issue 5 (#858)

* Added debug logging filter

* Added jdoc

* Minor cleanup

* Added condition for debug log

* Added support to auto repeat of servlet request stream, added topic resubscription support

* Minor fix

* Removed unwanted file

* Test fixes

* Fix auth type lock unlock notification

* Fix for notification count for entries having olv partner id

* junit fix

* WIP-fixing auth txn saving

* Updated logic to save auth txn

* Added Y and N status for getting description

* Test fix

---------

Co-authored-by: Loganathan Sekar <[email protected]>

* Fixed Sonar bugs (#859)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as per review

* updated PR

* updated PR

* Updated build

* [MOSIP-24494] Updated trasnliterate API error msg

* updated PR

* updated PR

* [MOSIP-25363],[MOSIP-24796],[MOSIP-25711] Updated audit logs

* [MOSIP-26089] Added authentication mode

* Fixed Sonar Bugs

* updated PR

* updated as per review

* Updated Sonar bug fix (#860)

* [MOSIP-24670] Updated API correction id and version

* [MOSIP-24670] Updated API body correction

* [MOSIP-22640] Fixed Sonar Bugs

* updated PR

* updated PR

* updated review code

* [MOSIP-22640] Fixed sonar bugs

* updated PR

* updated PR

* [MOSIP-22639] Resolved security hotspots in code

* [MOSIP-24630] Fixed Security Vulnerability in code

* added error for isValidUrl method

* renamed vaildateURL method

* updated PR

* updated PR

* [MOSIP-24670] Made corrections in  id and version

* resolved conflicts

* updated PR

* updated PR

* [MOSIP-24670] Made corrections n API body, response code

* updated PR

* updated PR

* updated dateTime

* updated PR

* [MOSIP-25539] Made corrections in API body, response code

* [MOSIP-25539] made corrections in API body

* updated error message

* updated error code

* updated trasactionid dto change

* added equals

* [MOSIP-25539] made corrections in api body

* [MOSIP-25539] Corrected API response body Task 5

* resolved build failure

* [MOSIP-25539] Task 2 Added error code for vaildateOtp API

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25539] Updated validateotp method

* updated PR

* [MOSIP-25798] Added validations

* updated PR

* updated PR

* updated PR

* updated PR

* updated PR

* [MOSIP-25791] Added purpose as mandatory

* Added error

* Added Audit logs

* updated test cases

* [MOSIP-22913],[MOSIP-22914],[MOSIP-24653],[MOSIP-24796] Added Audit logs

* updated logs

* updated auditlog code

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* updated enum name for audit logs

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-25268] Fixed Sonar vulnerability

* [MOSIP-26272] Added validation for /update-uin API

* updated PR

* updated update-uin PR

* Fixed build issue

* Updated transactionId error message

* Updated Test cases ResidentServiceResUpdateTest class

* [MOSIP-26343] Created module specific audits

* updated PR

* updated PR

* [MOSIP-26087] Added featureName in pdf name

* updated PR

* Updated PR as …
  • Loading branch information
9 people authored Jun 13, 2023
1 parent 0da170f commit 5eda715
Show file tree
Hide file tree
Showing 59 changed files with 1,826 additions and 1,049 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
import io.mosip.resident.entity.ResidentTransactionEntity;
import io.mosip.resident.exception.ApisResourceAccessException;
import io.mosip.resident.exception.ResidentServiceCheckedException;
import io.mosip.resident.function.QuadFunction;
import io.mosip.resident.function.FiveArgsFunction;
import io.mosip.resident.function.FourArgsFunction;
import io.mosip.resident.util.TemplateUtil;
import io.mosip.resident.util.Utility;
import reactor.util.function.Tuple2;
Expand Down Expand Up @@ -129,28 +130,28 @@ public void preUpdateInBatchJob(Environment env, Utility utility, ResidentTransa
private static final String PREFIX_RESIDENT_REQUEST_IN_PROGRESS_STATUS_LIST = "resident.request.in-progress.status.list.";
private static final String PREFIX_RESIDENT_REQUEST_NEW_STATUS_LIST = "resident.request.new.status.list.";
private static final String SEPARATOR = ",";
private QuadFunction<TemplateUtil, String, String, Integer, Tuple2<Map<String, String>, String>> ackTemplateVariablesFunction;
private FiveArgsFunction<TemplateUtil, String, String, Integer, String, Tuple2<Map<String, String>, String>> ackTemplateVariablesFunction;
private String featureName;
private BiFunction<TemplateUtil, NotificationTemplateVariableDTO, Map<String, Object>> notificationTemplateVariablesFunction;
private QuadFunction<TemplateUtil, ResidentTransactionEntity, String, String, String> getDescriptionTemplateVariables;
private FourArgsFunction<TemplateUtil, ResidentTransactionEntity, String, String, String> getDescriptionTemplateVariables;
private String namingProperty;

private String name;

private RequestType(String name,
QuadFunction<TemplateUtil, String, String, Integer, Tuple2<Map<String, String>, String>> ackTemplateVariablesFunction,
FiveArgsFunction<TemplateUtil, String, String, Integer, String, Tuple2<Map<String, String>, String>> ackTemplateVariablesFunction,
String featureName,
BiFunction<TemplateUtil, NotificationTemplateVariableDTO, Map<String, Object>> notificationTemplateVariablesFunction,
QuadFunction<TemplateUtil, ResidentTransactionEntity, String, String, String> getDescriptionTemplateVariables) {
FourArgsFunction<TemplateUtil, ResidentTransactionEntity, String, String, String> getDescriptionTemplateVariables) {
this(name, ackTemplateVariablesFunction,
featureName, notificationTemplateVariablesFunction, getDescriptionTemplateVariables, null);
}

private RequestType(String name,
QuadFunction<TemplateUtil, String, String, Integer, Tuple2<Map<String, String>, String>> ackTemplateVariablesFunction,
FiveArgsFunction<TemplateUtil, String, String, Integer, String, Tuple2<Map<String, String>, String>> ackTemplateVariablesFunction,
String featureName,
BiFunction<TemplateUtil, NotificationTemplateVariableDTO, Map<String, Object>> notificationTemplateVariablesFunction,
QuadFunction<TemplateUtil, ResidentTransactionEntity, String, String, String> getDescriptionTemplateVariables,
FourArgsFunction<TemplateUtil, ResidentTransactionEntity, String, String, String> getDescriptionTemplateVariables,
String namingProperty) {
this.name = name;
this.ackTemplateVariablesFunction = ackTemplateVariablesFunction;
Expand Down Expand Up @@ -295,8 +296,8 @@ public String getSummaryTemplateCodeProperty(TemplateType templateType) {
return String.format(PREFIX_RESIDENT_TEMPLATE_SUMMARY, templateType.getType(), getFeatureName());
}

public Tuple2<Map<String, String>, String> getAckTemplateVariables(TemplateUtil templateUtil, String eventId, String languageCode, Integer timeZoneOffset) {
return ackTemplateVariablesFunction.apply(templateUtil, eventId, languageCode, timeZoneOffset);
public Tuple2<Map<String, String>, String> getAckTemplateVariables(TemplateUtil templateUtil, String eventId, String languageCode, Integer timeZoneOffset, String locale) {
return ackTemplateVariablesFunction.apply(templateUtil, eventId, languageCode, timeZoneOffset, locale);
}

public Map<String, Object> getNotificationTemplateVariables(TemplateUtil templateUtil, NotificationTemplateVariableDTO dto) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ private ResidentConstants() {
public static final String PINNED_EVENTID_ID = "resident.pinned.eventid.id";
public static final String UNPINNED_EVENTID_ID = "resident.unpinned.eventid.id";
public static final String AUTH_PROXY_PARTNERS_ID = "resident.auth.proxy.partners.id";
public static final String AUTH_HISTORY_ID = "resident.authhistory.id";
public static final String EVENTS_EVENTID_ID = "resident.events.eventid.id";
public static final String UPDATE_UIN_ID = "resident.updateuin.id";
public static final String NOTIFICATION_CLICK_ID = "resident.notification.click.id";
public static final String NOTIFICATION_ID = "resident.notification.id";
public static final String SERVICE_HISTORY_ID = "resident.service.history.id";
public static final String PROFILE_ID = "resident.profile.id";

public static final String NAME_FROM_PROFILE = "mosip.resident.name.token.claim-name";
public static final String UNKNOWN = "Unknown";
Expand Down Expand Up @@ -193,8 +200,8 @@ private ResidentConstants() {
public static final String ACTION_PERFORMED = "actionPerformed";
public static final String VID_TYPE = "vidType";
public static final String MASKED_VID = "*masked VID*";
public static final String UI_DATE_TIME_PATTERN = "resident.ui.datetime.pattern";
public static final String FILENAME_DATETIME_PATTERN = "resident.filename.datetime.pattern";
public static final String UI_DATE_TIME_PATTERN_DEFAULT = "resident.ui.datetime.pattern.default";
public static final String FILENAME_DATETIME_PATTERN_DEFAULT = "resident.filename.datetime.pattern.default";

public static final String NO_ID = "NO_ID";
public static final String NO_ID_TYPE = "NO_ID_TYPE";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public class AcknowledgementController {
@GetMapping("/ack/download/pdf/event/{eventId}/language/{languageCode}")
public ResponseEntity<Object> getAcknowledgement(@PathVariable("eventId") String eventId,
@PathVariable("languageCode") String languageCode,
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset) throws ResidentServiceCheckedException, IOException {
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset,
@RequestHeader(name = "locale", required = false) String locale) throws ResidentServiceCheckedException, IOException {
logger.debug("AcknowledgementController::acknowledgement()::entry");
InputStreamResource resource = null;
String featureName = null;
Expand All @@ -78,11 +79,11 @@ public ResponseEntity<Object> getAcknowledgement(@PathVariable("eventId") String
}
try {
auditUtil.setAuditRequestDto(EventEnum.getEventEnumWithValue(EventEnum.GET_ACKNOWLEDGEMENT_DOWNLOAD_URL, "acknowledgement"));
byte[] pdfBytes = acknowledgementService.getAcknowledgementPDF(eventId, languageCode, timeZoneOffset);
byte[] pdfBytes = acknowledgementService.getAcknowledgementPDF(eventId, languageCode, timeZoneOffset, locale);
resource = new InputStreamResource(new ByteArrayInputStream(pdfBytes));
auditUtil.setAuditRequestDto(EventEnum.GET_ACKNOWLEDGEMENT_DOWNLOAD_URL_SUCCESS);
logger.debug("AcknowledgementController::acknowledgement()::exit");
featureName = templateUtil.getFeatureName(eventId);
featureName = templateUtil.getFeatureName(eventId, locale);
} catch(ResidentServiceCheckedException e) {
auditUtil.setAuditRequestDto(EventEnum.GET_ACKNOWLEDGEMENT_DOWNLOAD_URL_FAILURE);
logger.error(LoggerFileConstant.SESSIONID.toString(), LoggerFileConstant.APPLICATIONID.toString(),
Expand All @@ -93,7 +94,7 @@ public ResponseEntity<Object> getAcknowledgement(@PathVariable("eventId") String
}
return ResponseEntity.ok().contentType(MediaType.APPLICATION_PDF)
.header("Content-Disposition", "attachment; filename=\"" +
utility.getFileNameAsPerFeatureName(eventId, featureName, timeZoneOffset) + ".pdf\"")
utility.getFileNameAsPerFeatureName(eventId, featureName, timeZoneOffset, locale) + ".pdf\"")
.body(resource);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public class DownLoadMasterDataController {
@GetMapping("/download/registration-centers-list")
public ResponseEntity<Object> downloadRegistrationCentersByHierarchyLevel(@RequestParam(name="langcode") String langCode,
@RequestParam(name="hierarchylevel") Short hierarchyLevel, @RequestParam("name") String name,
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset)
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset,
@RequestHeader(name = "locale", required = false) String locale)
throws ResidentServiceCheckedException, IOException, Exception {
logger.debug("DownLoadMasterDataController::getRegistrationCentersByHierarchyLevel()::entry");
DOWNLOADABLE_REGCEN_FILENAME = "regcenter-";
Expand All @@ -102,15 +103,16 @@ public ResponseEntity<Object> downloadRegistrationCentersByHierarchyLevel(@Reque
"attachment; filename=\"" + utility.getFileName(null,
Objects.requireNonNull(this.environment.getProperty(
ResidentConstants.DOWNLOAD_REGISTRATION_CENTRE_FILE_NAME_CONVENTION_PROPERTY)),
timeZoneOffset) + ".pdf\"")
timeZoneOffset, locale) + ".pdf\"")
.body(resource);
}

@GetMapping("/download/nearestRegistrationcenters")
public ResponseEntity<Object> downloadNearestRegistrationcenters(@RequestParam(name="langcode") String langCode,
@RequestParam(name="longitude") double longitude, @RequestParam(name="latitude") double latitude,
@RequestParam(name="proximitydistance") int proximityDistance,
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset)
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset,
@RequestHeader(name = "locale", required = false) String locale)
throws ResidentServiceCheckedException, IOException, Exception {
logger.debug("DownLoadMasterDataController::getRegistrationCentersByHierarchyLevel()::entry");
DOWNLOADABLE_REGCEN_FILENAME = "regcenter-";
Expand All @@ -135,13 +137,14 @@ public ResponseEntity<Object> downloadNearestRegistrationcenters(@RequestParam(n
.header("Content-Disposition", "attachment; filename=\"" + utility.getFileName(null,
Objects.requireNonNull(this.environment.getProperty(
ResidentConstants.DOWNLOAD_NEAREST_REGISTRATION_CENTRE_FILE_NAME_CONVENTION_PROPERTY)),
timeZoneOffset) + ".pdf\"")
timeZoneOffset, locale) + ".pdf\"")
.body(resource);
}

@GetMapping(path = "/download/supporting-documents", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseEntity<Object> downloadSupportingDocsByLanguage(@RequestParam(name = "langcode") String langCode,
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset)
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset,
@RequestHeader(name = "locale", required = false) String locale)
throws ResidentServiceCheckedException, IOException, Exception {
logger.debug("DownLoadMasterDataController::getSupportingDocsByLanguageCode()::entry");
DOWNLOADABLE_SUPPORTING_FILENAME = "supportingDocs-";
Expand All @@ -166,7 +169,7 @@ public ResponseEntity<Object> downloadSupportingDocsByLanguage(@RequestParam(nam
"attachment; filename=\"" + utility.getFileName(null,
Objects.requireNonNull(this.environment.getProperty(
ResidentConstants.DOWNLOAD_SUPPORTING_DOCUMENT_FILE_NAME_CONVENTION_PROPERTY)),
timeZoneOffset) + ".pdf\"")
timeZoneOffset, locale) + ".pdf\"")
.body(resource);
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public class DownloadCardController {
@ApiResponse(responseCode = "404", description = "Not Found", content = @Content(schema = @Schema(hidden = true))) })
public ResponseEntity<Object> downloadCard(
@Validated @RequestBody MainRequestDTO<DownloadCardRequestDTO> downloadCardRequestDTOMainRequestDTO,
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset)
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset,
@RequestHeader(name = "locale", required = false) String locale)
throws ResidentServiceCheckedException {
logger.debug("DownloadCardController::downloadCard()::entry");
auditUtil.setAuditRequestDto(EventEnum.REQ_CARD);
Expand Down Expand Up @@ -114,15 +115,16 @@ public ResponseEntity<Object> downloadCard(
downloadCardRequestDTOMainRequestDTO.getRequest().getIndividualId(),
Objects.requireNonNull(this.environment
.getProperty(ResidentConstants.DOWNLOAD_CARD_NAMING_CONVENTION_PROPERTY)),
timeZoneOffset) + ".pdf\"")
timeZoneOffset, locale) + ".pdf\"")
.header(ResidentConstants.EVENT_ID, tupleResponse.getT2()).body(resource);
}

@PreAuthorize("@scopeValidator.hasAllScopes(" + "@authorizedScopes.getPostPersonalizedCard()" + ")")
@PostMapping("/download/personalized-card")
public ResponseEntity<Object> downloadPersonalizedCard(
@Validated @RequestBody MainRequestDTO<DownloadPersonalizedCardDto> downloadPersonalizedCardMainRequestDTO,
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset)
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset,
@RequestHeader(name = "locale", required = false) String locale)
throws ResidentServiceCheckedException {
logger.debug("DownloadCardController::downloadPersonalizedCard()::entry");
auditUtil.setAuditRequestDto(EventEnum.DOWNLOAD_PERSONALIZED_CARD);
Expand All @@ -134,7 +136,7 @@ public ResponseEntity<Object> downloadPersonalizedCard(
environment.getProperty(ResidentConstants.MOSIP_RESIDENT_DOWNLOAD_PERSONALIZED_CARD_ID)));
throw e;
}
Tuple2<byte[], String> tupleResponse = downloadCardService.downloadPersonalizedCard(downloadPersonalizedCardMainRequestDTO, timeZoneOffset);
Tuple2<byte[], String> tupleResponse = downloadCardService.downloadPersonalizedCard(downloadPersonalizedCardMainRequestDTO, timeZoneOffset, locale);
InputStreamResource resource = new InputStreamResource(new ByteArrayInputStream(tupleResponse.getT1()));
if(tupleResponse.getT1().length==0){
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
Expand All @@ -143,20 +145,21 @@ public ResponseEntity<Object> downloadPersonalizedCard(
.header("Content-Disposition", "attachment; filename=\""
+ utility.getFileName(tupleResponse.getT2(),
Objects.requireNonNull(this.environment.getProperty(
ResidentConstants.DOWNLOAD_PERSONALIZED_CARD_NAMING_CONVENTION_PROPERTY)), timeZoneOffset)
ResidentConstants.DOWNLOAD_PERSONALIZED_CARD_NAMING_CONVENTION_PROPERTY)), timeZoneOffset, locale)
+ ".pdf\"")
.header(ResidentConstants.EVENT_ID, tupleResponse.getT2())
.body(resource);
}

@GetMapping("/request-card/vid/{VID}")
public ResponseEntity<Object> requestVidCard(@PathVariable("VID") String vid,
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset) throws BaseCheckedException {
@RequestHeader(name = "time-zone-offset", required = false, defaultValue = "0") int timeZoneOffset,
@RequestHeader(name = "locale", required = false) String locale) throws BaseCheckedException {
auditUtil.setAuditRequestDto(EventEnum.RID_DIGITAL_CARD_REQ);
Tuple2<ResponseWrapper<VidDownloadCardResponseDto>, String> tupleResponse = null;
try {
requestValidator.validateDownloadCardVid(vid);
tupleResponse = downloadCardService.getVidCardEventId(vid, timeZoneOffset);
tupleResponse = downloadCardService.getVidCardEventId(vid, timeZoneOffset, locale);
} catch (ResidentServiceException | InvalidInputException e) {
auditUtil.setAuditRequestDto(EventEnum.RID_DIGITAL_CARD_REQ_FAILURE);
e.setMetadata(Map.of(ResidentConstants.REQ_RES_ID,
Expand Down
Loading

0 comments on commit 5eda715

Please sign in to comment.