Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOSIP-27014 Fixed ack template issue. #894

Merged
merged 93 commits into from
Apr 25, 2023
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
f45c455
Fixed service history issue.
kameshsr Dec 13, 2022
3b8f2d0
Merge branch 'mosip:develop' into develop
kameshsr Dec 13, 2022
fbe3949
Merge branch 'mosip:develop' into develop
kameshsr Dec 14, 2022
be6e0fc
Merge branch 'mosip:develop' into develop
kameshsr Dec 15, 2022
f08b625
Merge branch 'mosip:develop' into develop
kameshsr Dec 16, 2022
35e6916
Merge branch 'mosip:develop' into develop
kameshsr Dec 19, 2022
d6af139
Merge branch 'mosip:develop' into develop
kameshsr Dec 19, 2022
9049410
Merge branch 'mosip:develop' into develop
kameshsr Dec 19, 2022
0048dac
Merge branch 'mosip:develop' into develop
kameshsr Dec 19, 2022
fd98ca7
Merge branch 'mosip:develop' into develop
kameshsr Dec 21, 2022
ec18f7a
Merge branch 'mosip:develop' into develop
kameshsr Dec 21, 2022
0fe62aa
Merge branch 'mosip:develop' into develop
kameshsr Dec 26, 2022
5dc32e7
Merge branch 'mosip:develop' into develop
kameshsr Dec 26, 2022
b2f03c2
Merge branch 'mosip:develop' into develop
kameshsr Dec 27, 2022
c87620f
Merge branch 'mosip:develop' into develop
kameshsr Dec 27, 2022
775c495
Merge branch 'mosip:develop' into develop
kameshsr Dec 27, 2022
81827c7
Merge branch 'mosip:develop' into develop
kameshsr Dec 29, 2022
c7f3475
Merge branch 'mosip:develop' into develop
kameshsr Dec 29, 2022
8a2d271
Merge branch 'mosip:develop' into develop
kameshsr Dec 30, 2022
b083a68
Merge branch 'mosip:develop' into develop
kameshsr Jan 2, 2023
1a21f69
Merge branch 'mosip:develop' into develop
kameshsr Jan 3, 2023
60b9a9a
Merge branch 'mosip:develop' into develop
kameshsr Jan 4, 2023
3af851b
Merge branch 'mosip:develop' into develop
kameshsr Jan 4, 2023
4dfad5a
Merge branch 'mosip:develop' into develop
kameshsr Jan 5, 2023
ceebe29
Merge branch 'mosip:develop' into develop
kameshsr Jan 6, 2023
31da1b5
Merge branch 'mosip:develop' into develop
kameshsr Jan 10, 2023
6fa308f
Merge branch 'mosip:develop' into develop
kameshsr Jan 10, 2023
cae3228
Merge branch 'mosip:develop' into develop
kameshsr Jan 11, 2023
c79f019
Merge branch 'mosip:develop' into develop
kameshsr Jan 11, 2023
75e48f4
Merge branch 'mosip:develop' into develop
kameshsr Jan 12, 2023
bbeb086
Merge branch 'mosip:develop' into develop
kameshsr Jan 12, 2023
2b9772e
Merge branch 'mosip:develop' into develop
kameshsr Jan 13, 2023
6d481bf
Merge branch 'mosip:develop' into develop
kameshsr Jan 13, 2023
a08892d
Merge branch 'mosip:develop' into develop
kameshsr Jan 13, 2023
c6a003c
Merge branch 'mosip:develop' into develop
kameshsr Jan 16, 2023
782164a
Merge branch 'mosip:develop' into develop
kameshsr Jan 16, 2023
5cae9d7
Merge branch 'mosip:develop' into develop
kameshsr Jan 17, 2023
b7349bd
Merge branch 'mosip:develop' into develop
kameshsr Jan 18, 2023
ce66191
Merge branch 'mosip:develop' into develop
kameshsr Jan 18, 2023
58c6c84
Merge branch 'mosip:develop' into develop
kameshsr Jan 19, 2023
681f8a4
Merge branch 'mosip:develop' into develop
kameshsr Jan 23, 2023
51dfb66
Merge branch 'mosip:develop' into develop
kameshsr Jan 25, 2023
9297c9d
Merge branch 'mosip:develop' into develop
kameshsr Jan 30, 2023
45cf2f9
Merge branch 'mosip:develop' into develop
kameshsr Jan 30, 2023
ed83d52
Merge branch 'mosip:develop' into develop
kameshsr Jan 31, 2023
dca2de7
Merge branch 'mosip:develop' into develop
kameshsr Feb 1, 2023
a608cd2
Merge branch 'mosip:develop' into develop
kameshsr Feb 1, 2023
d39d656
Merge branch 'mosip:develop' into develop
kameshsr Feb 8, 2023
e993e5d
Merge branch 'mosip:develop' into develop
kameshsr Feb 9, 2023
7e2b68a
Merge branch 'mosip:develop' into develop
kameshsr Feb 14, 2023
71f50e7
Merge branch 'mosip:develop' into develop
kameshsr Feb 15, 2023
00af4f6
Merge branch 'mosip:develop' into develop
kameshsr Feb 16, 2023
a7558c9
Merge branch 'mosip:develop' into develop
kameshsr Feb 16, 2023
0bcbe76
Merge branch 'mosip:develop' into develop
kameshsr Feb 17, 2023
f230f13
Merge branch 'mosip:develop' into develop
kameshsr Feb 17, 2023
8499fc5
Merge branch 'mosip:develop' into develop
kameshsr Feb 22, 2023
1e0f0d6
Merge branch 'mosip:develop' into develop
kameshsr Feb 22, 2023
d2eecba
Merge branch 'mosip:develop' into develop
kameshsr Feb 22, 2023
dc345f7
Merge branch 'mosip:develop' into develop
kameshsr Feb 24, 2023
3341cc7
Merge branch 'mosip:develop' into develop
kameshsr Feb 27, 2023
38c95a7
Merge branch 'mosip:develop' into develop
kameshsr Feb 27, 2023
2383df4
Merge branch 'mosip:develop' into develop
kameshsr Mar 2, 2023
f8394e4
Merge branch 'mosip:develop' into develop
kameshsr Mar 3, 2023
496d7af
Merge branch 'mosip:develop' into develop
kameshsr Mar 3, 2023
d6f9273
Merge branch 'mosip:develop' into develop
kameshsr Mar 6, 2023
5c97203
Merge branch 'mosip:develop' into develop
kameshsr Mar 6, 2023
8e50a4e
Merge branch 'mosip:develop' into develop
kameshsr Mar 7, 2023
aeeaca7
Merge branch 'mosip:develop' into develop
kameshsr Mar 7, 2023
8b997d5
Merge branch 'mosip:develop' into develop
kameshsr Mar 9, 2023
1a97121
Merge branch 'mosip:develop' into develop
kameshsr Mar 13, 2023
ac97b68
Merge branch 'mosip:develop' into develop
kameshsr Mar 15, 2023
4187ff2
Merge branch 'mosip:develop' into develop
kameshsr Mar 16, 2023
660a6d1
Merge branch 'mosip:develop' into develop
kameshsr Mar 21, 2023
aeab19f
Merge branch 'mosip:develop' into develop
kameshsr Mar 21, 2023
035d885
Merge branch 'mosip:develop' into develop
kameshsr Mar 21, 2023
6c038cc
Merge branch 'mosip:develop' into develop
kameshsr Mar 24, 2023
c0e491e
Merge branch 'mosip:develop' into develop
kameshsr Mar 24, 2023
6d9aeda
Merge branch 'mosip:develop' into develop
kameshsr Mar 28, 2023
58aaa85
Merge branch 'mosip:develop' into develop
kameshsr Mar 29, 2023
2c28c75
Merge branch 'mosip:develop' into develop
kameshsr Mar 30, 2023
c79a62e
Merge branch 'mosip:develop' into develop
kameshsr Mar 31, 2023
7248799
Merge branch 'mosip:develop' into develop
kameshsr Apr 10, 2023
3bc05f5
Merge branch 'mosip:develop' into develop
kameshsr Apr 11, 2023
dee3825
Merge branch 'mosip:develop' into develop
kameshsr Apr 12, 2023
1913009
Merge branch 'mosip:develop' into develop
kameshsr Apr 17, 2023
e998283
Merge branch 'mosip:develop' into develop
kameshsr Apr 17, 2023
0de722e
Merge branch 'mosip:develop' into develop
kameshsr Apr 17, 2023
99379d1
Merge branch 'mosip:develop' into develop
kameshsr Apr 19, 2023
fc13d0a
Merge branch 'mosip:develop' into develop
kameshsr Apr 19, 2023
bc8c343
Merge branch 'mosip:develop' into develop
kameshsr Apr 20, 2023
6f84051
Merge branch 'mosip:develop' into develop
kameshsr Apr 21, 2023
2fc3d31
Merge branch 'mosip:develop' into develop
kameshsr Apr 25, 2023
833e441
MOSIP-27014 Fixed ack template issue.
kameshsr Apr 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public class TemplateUtil {
private static final String LOGO_URL = "logoUrl";
private static final CharSequence GENERATED = "generated";
private static final CharSequence REVOKED = "revoked";
private static final String UNKNOWN = "Unknown";

@Autowired
private ResidentTransactionRepository residentTransactionRepository;
Expand Down Expand Up @@ -113,8 +114,15 @@ public Tuple2<Map<String, String>, ResidentTransactionEntity> getCommonTemplateV
templateVariables.put(TemplateVariablesConstants.PURPOSE, residentTransactionEntity.getPurpose());
templateVariables.put(TemplateVariablesConstants.ATTRIBUTE_LIST, getAttributesDisplayText(replaceNullWithEmptyString(
residentTransactionEntity.getAttributeList()), languageCode));
templateVariables.put(TemplateVariablesConstants.AUTHENTICATION_MODE,
getAuthTypeCodeTemplateValue(replaceNullWithEmptyString(residentTransactionEntity.getAuthTypeCode()), languageCode));
String authenticationMode =
getAuthTypeCodeTemplateValue(replaceNullWithEmptyString(residentTransactionEntity.getAuthTypeCode()), languageCode);
if(authenticationMode.equalsIgnoreCase(UNKNOWN)){
templateVariables.put(TemplateVariablesConstants.AUTHENTICATION_MODE,
replaceNullWithEmptyString(residentTransactionEntity.getAuthTypeCode()));
}else {
templateVariables.put(TemplateVariablesConstants.AUTHENTICATION_MODE,
authenticationMode);
}
try {
templateVariables.put(TemplateVariablesConstants.INDIVIDUAL_ID, getIndividualIdType());
} catch (ApisResourceAccessException e) {
Expand Down Expand Up @@ -295,7 +303,7 @@ public Tuple2<Map<String, String>, String> getAckTemplateVariablesForDownloadPer
/**
* This method will replace attribute placeholder in template and add attribute list into it.
* @param fileText This contains value of template.
* @param purpose This contains purpose of request type stored in template.
* @param attributes This contains attributes of request type stored in template.
* @param languageCode This contains logged-in language code.
* @return purpose after adding attributes.
*/
Expand Down