Page
Official Website of Reserve Bank of India
Press Releases
An error occurred while processing the template.
The following has evaluated to null or missing: ==> DLFileEntryLocalService.fetchFileEntry(UUID,groupId?number) [in template "20099#20125#28513988" at line 116, column 65] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: DLFileEntry = DLFileEntryLocalService... [in template "20099#20125#28513988" at line 116, column 53] ----
1<#assign
2 AssetEntryLocalServiceUtil=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")
3 DLFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
4<#assign UUID="" groupId="" fileSize="" docURL="" />
5<#assign currDate=.now?date />
6<#assign currLocale=locale.toString()/>
7<div class="Notification-content-wrap full-width covid-19-content-wrap press-release-caution-main" tabindex="0">
8 <div class="container">
9 <div class="row no-gutters">
10 <div class="col-12">
11 <div class="notifications-row-wrapper list-row-wrap show-row-view grid-view-icon-wrapper">
12 <div class="row">
13 <#if entries?has_content>
14 <#assign index =0 />
15 <#list entries as curEntry>
16 <#assign assetEntry=AssetEntryLocalServiceUtil.fetchEntry(curEntry.getClassName(),
17 curEntry.getClassPK()) />
18 <#assign assetRenderer=curEntry.getAssetRenderer()
19 article=assetRenderer.getArticle()
20 URL=article.getExpandoBridge().getAttribute("pdf-url")
21 content=saxReaderUtil.read(assetRenderer.getArticle().getContentByLocale(locale))
22 groupId=article.getGroupId()
23 displayDate=article.getDisplayDate()
24 viewURL=assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry)
25 viewURL=assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL)
26 index =index+1
27 publishDate=article.displayDate
28 modifiedDate=content.valueOf("//dynamic-element[@name='Date33120032' ]/dynamic-content")
29 />
30 <#if index gt 5>
31 <div class="col-12 toggle-content-each list-row d-none">
32 <#else>
33 <div class="col-12 toggle-content-each list-row">
34 </#if>
35 <div class="notification-row-each">
36 <div class="notification-row-each-inner">
37 <#if publishDate?has_content>
38 <div class="notification-date font-resized">
39 <#if currLocale=="hi_IN">
40 ${dateUtil.getDate(publishDate?date, "dd MMM yyyy", locale)}
41 <#else>
42 ${dateUtil.getDate(publishDate?date,"MMM dd, yyyy", locale)}
43 </#if>
44 <#if currDate?string==publishDate?date?string>
45 <div class="tag-new">
46 <span>New</span>
47 </div>
48 </#if>
49 <#if validator.isNotNull(modifiedDate)>
50 <#assign modifiedDate_DateObj = dateUtil.parseDate("yyyy-MM-dd", modifiedDate, locale) />
51 <div class="tag-withdrawn-date tag-new">
52 <span> ${languageUtil.get(locale,"updated")} : ${dateUtil.getDate(modifiedDate_DateObj, "MMM dd, yyyy", locale)}</span>
53 </div>
54 </#if>
55 </div>
56 </#if>
57
58 <!-- START -->
59
60
61 <a href="${viewURL}" class="mtm_list_item_heading">
62 <div
63 class="notifications-heading c-tooltips position-relative">
64 <span class="mtm_list_item_heading truncatedContent font-resized">${assetEntry.getTitle(locale)}</span>
65 <div class="custom-tooltip press-release-caution-main-tooltip">
66 <div class="tooltip-arrow-up"></div>
67 <div class="tooltip-content">${assetEntry.getSummary(locale)}
68 </div>
69 <div class="tooltip-content-hidden" style="display:none">${assetEntry.getSummary(locale)}</div>
70 </div>
71 </div>
72
73 <div class="notifications-heading-hidden" style="display:none">${assetEntry.getTitle(locale)?left_pad(115)[0..*115]}</div>
74 </a>
75
76 <div class="notifications-description font-resized d-none">
77 <#if assetEntry.getSummary(locale)?has_content >
78 ${assetEntry.getSummary(locale)}
79 </#if>
80 </div>
81
82 <div class="notifications-description-hidden" style="display:none">
83 <#if assetEntry.getSummary(locale)?has_content >
84 ${assetEntry.getSummary(locale)}
85 </#if>
86 </div>
87
88
89 <!-- END -->
90
91
92 <#if URL?has_content>
93 <#list URL?keys as key>
94 <#if key==locale>
95 <#assign docURL=URL?values[key_index] />
96 </#if>
97 <#if !docURL?has_content && key == "en_US">
98 <#assign docURL=URL?values[key_index] />
99 </#if>
100 </#list>
101 </#if>
102 <#if docURL?has_content>
103 <#list docURL?split("/") as sValue>
104 <#if sValue?is_last>
105 <#list sValue?split("?") as uuid>
106 <#if uuid?is_first>
107 <#assign UUID=uuid />
108 </#if>
109 </#list>
110 </#if>
111 </#list>
112 </#if>
113
114 <#if UUID?has_content>
115 <#assign
116 DLFileEntry=DLFileEntryLocalService.fetchFileEntry(UUID,groupId?number)
117 fileSize=DLFileEntry.getSize()
118 fileAssetEntry=AssetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",DLFileEntry.getFileEntryId())
119 docURL=fileAssetEntry.getAssetRenderer().getURLDownload(themeDisplay) />
120 </#if>
121 <!--buttons-->
122
123
124 <#if docURL?? && docURL?has_content>
125 <div class="btn-wrap">
126 <img src="/documents/70233/0/fileDownload.svg" class="downloadFile"
127 alt="Download File" title="Download File">
128 <a href="${docURL?split('?')[0]?replace("/"+UUID,"")}" class="matomo_download " target="_blank">
129 PDF (<span class="fileSize">${fileSize}</span> )
130 </a>
131 </div>
132 </#if>
133 </div>
134
135 </div>
136 </div>
137 </#list>
138
139
140 <!-- viewMoreUrl to reirect to new page-->
141
142<#assign viewMoreUrl = themeDisplay.getPortalURL() + "/web/rbi/rbi-cautions/press-releases" />
143
144 <div class="col-12 view-toggle-cta">
145 <div class="view-all-wrap toggle-view-content all-you-wanted-view-btn">
146 <a href="${viewMoreUrl}" role="button" class="toggle-view-more link-view-more link-animation-hover">
147 <span class="txtToggle"> ${languageUtil.get(locale, "view-more")} </span>
148
149 <!--right arrow added-->
150 <span>
151 <img alt="view more" src="/documents/87730/97420/icon-arrow-right.svg" title="view more">
152 </span>
153 </a>
154
155 </div></div>
156 </#if>
157 </div>
158 </div>
159 </div>
160 </div>
161 </div>
162</div>
163<script>
164
165$( document ).ready(function() {
166
167 $(".fileSize").each(function() {
168 var fileSize = $( this ).html()
169 if(fileSize !=""){
170 $(this).html(formatFileSize(parseInt(fileSize),2))
171 }
172 });
173
174 function formatFileSize(bytes,decimalPoint) {
175 if(bytes == 0)
176 return '0 Bytes';
177 var k = 1024,
178 dm = decimalPoint || 2,
179 sizes = [ 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'],
180 i = Math.floor(Math.log(bytes) / Math.log(k));
181 return (parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i]);
182 }
183});
184</script>
Videos

Caution against Fictitious Mails - 1
RBI Internet Banking 30 Sec Spot Hindi Father and Son

Caution against Fictitious Mails - 2
RBI Internet Banking 30 Sec Spot Hindi Husband and Wife
Audio
Caution against Fictitious Mails
Caution against Fictitious Mails
Page Last Updated on: November 23, 2022