-
Notifications
You must be signed in to change notification settings - Fork 1
/
Thymeleaf_SampleTemplate.txt
151 lines (151 loc) · 6.92 KB
/
Thymeleaf_SampleTemplate.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"bg_img_pos": "end",
"subtitle": "",
"title": "[[${title}]]",
"isInput": "false",
"title": "",
"bg_color": "[[${ #strings.isEmpty(bg_color) ? "#FFFFFF" : bg_color }]]",
"tuple_bg_color": "#FFFFFF",
"logo": "",
"close_icon_avail": false,
"desc_type": "brandCollection",
"bg_img": "",
"maxVisible": 5,
"minVisible":3,
"options": [ [# th:with="tileArray = ${ad.getJSONArray('tiles')} " ] [# th:each=" i: ${#numbers.sequence(0, tileArray.length() - 1)}"]
"ubaEvent":{
"name":"brandingView",
"data":{
"cId": [(${tileArray.get(i).get("campaignDetails").get("campaignId")})],
"coId": [(${tileArray.get(i).get("campaignDetails").get("companyId")})],
"gId": [(${tileArray.get(i).get("campaignDetails").get("groupId")})],
"adId": [(${tileArray.get(i).get("campaignDetails").get("adId")})],
"subscriptionId": [(${tileArray.get(i).get("campaignDetails").get("subscriptionId")})],
"type": "[(${ adType })]",
"filtered": {
"fareaIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("fareaIds")})],
"locationIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("locationIds")})],
"domainIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("entityDeptIds")})]
}
"label": "[(${tileArray.get(i).get("campaignDetails").get("label")})]"
}
},
"type": "brandCollectionCard",
"properties": { [# th:with="groupId = ${tileArray.get(i).get('campaignDetails').get('groupId')} , label=${tileArray.get(i).get('campaignDetails').get('label')}"]
"title": "[(${recruiter_company_service_branding[groupId-1].groupName})]",
"tags": [(${recruiter_company_service_branding[groupId-1].customizedTags})],
"label": "[(${tileArray.get(i).get("campaignDetails").get("label")})]",
"description":"TBD",
"isFollowing": false,
"jobOpening": 800,
"logo": "TBD",
"id": [(${tileArray.get(i).get("campaignDetails").get("campaignId")})],
"groupId": [(${groupId})]],
},
"rightCTA": {
"title": "View jobs",
"hitType": "inApp",
"inAppTitle":"[(${recruiter_company_service_branding[groupId-1].groupName})]",
"shouldRefreshImsOnCtaAction": false,"status":true,
"fallbackUrl": "abcdecompanypage://www.abcde.com/company/deloitte/jobs",
"url": "https://www.abcde.com/[(${recruiter_company_service_group[groupId-1].overviewUrl})]?tab=jobs",
"Event": {
"name":"brandClick",
"data":{
"cId": [(${tileArray.get(i).get("campaignDetails").get("campaignId")})],
"cId": [(${tileArray.get(i).get("campaignDetails").get("companyId")})],
"gId": [(${tileArray.get(i).get("campaignDetails").get("groupId")})],
"adId": [(${tileArray.get(i).get("campaignDetails").get("adId")})],
"subscriptionId": [(${tileArray.get(i).get("campaignDetails").get("subscriptionId")})],
"type": "[(${ adType })]",
"filtered": {
"fareaIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("fareaIds")})],
"locationIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("locationIds")})],
"domainIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("entityDeptIds")})]
}
"label": "[(${tileArray.get(i).get("campaignDetails").get("label")})]",
"CTA" : "Follow"
}
}
},
"leftCTA": {
"title": "Follow",
"id": "[(${tileArray.get(i).get("campaignDetails").get("groupId")})]",
"code": "Follow",
"inAppTitle":"[(${ recruiter_company_service_group[groupId-1].groupName })]",
"Event": {
"name":"brandingClick",
"data":{
"caId": [(${tileArray.get(i).get("campaignDetails").get("campaignId")})],
"coId": [(${tileArray.get(i).get("campaignDetails").get("companyId")})],
"gId": [(${tileArray.get(i).get("campaignDetails").get("groupId")})],
"adId": [(${tileArray.get(i).get("campaignDetails").get("adId")})],
"subscriptionId": [(${tileArray.get(i).get("campaignDetails").get("subscriptionId")})],
"type": "[(${ adType })]",
"filtered": {
"fareaIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("fareaIds")})],
"locationIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("locationIds")})],
"domainIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("entityDeptIds")})]
}
"label": "[(${tileArray.get(i).get("campaignDetails").get("label")})]",
"CTA" : "Follow"
}
}
},
"click": {
"shouldOnCtaAction": false,
"inAppTitle":"[(${ recruiter_company_service_group[groupId-1].groupName })]",
"hitType": "inApp",
"fallbackUrl": "abcdecompanypage://www.abcde.com/company/deloitte",
"viewImagePath": "chevron",
"url": "https://www.abcde.com/[(${recruiter_company_service_group[groupId-1].overviewUrl})]",
"treatWholeWidget" : true,
"ubaEvent": {
"name":"brandClick",
"data":{
"caId": [(${tileArray.get(i).get("campaignDetails").get("campaignId")})],
"coId": [(${tileArray.get(i).get("campaignDetails").get("companyId")})],
"groupId": [(${tileArray.get(i).get("campaignDetails").get("groupId")})],
"adId": [(${tileArray.get(i).get("campaignDetails").get("adId")})],
"subscriptionId": [(${tileArray.get(i).get("campaignDetails").get("subscriptionId")})],
"type": "[(${ adType })]",
"filtered": {
"fareaIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("fareaIds")})],
"locationIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("locationIds")})],
"domainIds":[(${tileArray.get(i).get("campaignDetails").get("filters").get("entityDeptIds")})]
}
"label": "[(${tileArray.get(i).get("campaignDetails").get("label")})]",
"CTA" : "Follow"
},
"label": "[(${tileArray.get(i).get("campaignDetails").get("label")})]",
"CTA" : "Tuple"
}
}
],[/][/][/]
"totalItemsCount":[(${ad.getJSONArray('tiles').length()})],
"positiveCTA": {
"title": "View all",
"type": "1",
"isBtn": false,
"loginUrl": "",
"treatWholeWidget": false,
"inAppTitle": "",
"shouldOnCtaAction": true,
"url": "https://www.abcde.com/brandingWidgets?label=[(${ad.getJSONArray('tiles').get(0).get("campaignDetails").get("label") })]",
"hitType": "inApp",
"failUrl": "https://www.abcde.com/brandingWidgets?title=[(${ad.getJSONArray('tiles').get(0).get("campaignDetails").get("label") })]",
"ubaEvent": {
"name":"brandClick",
"data":{
"CTA" : "View all",
"type": "[(${ adType })]",
"label": "[(${ad.getJSONArray('tiles').get(0).get("campaignDetails").get("label")})]",
"filters": {
"fareaIds":[(${ad.getJSONArray('tiles').get(0).get("campaignDetails").get("filters").get("fareaIds")})],
"locationIds":[(${ad.getJSONArray('tiles').get(0).get("campaignDetails").get("filters").get("locationIds")})],
"domainIds":[(${ad.getJSONArray('tiles').get(0).get("campaignDetails").get("filters").get("entityDeptIds")})]
}
}
}
}
}