Um erro ocorreu enquanto processava o modelo.
No signature of method getDate matches the arguments
1<#-- 
2	############################ 
3	## Parâmetros do template ## 
4	############################ 
5--> 
6<#assign titulo_lista = "Noticiário do Exercito" /> <#-- titulo da listagem de conteúdos --> 
7<#assign portlet_display = themeDisplay.getPortletDisplay() /> 
8<#assign portlet_title = htmlUtil.escape(portlet_display.getTitle()) /> 
9<div class="titulo-sem-borda"> 
10    <header class="portlet-topper"> 
11        <h1 class="portlet-title"> 
12            <span class="portlet-title-text"> 
13                ${portlet_title}  
14            </span> 
15        </h1>  
16    </header> 
17</div> 
18<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
19 
20 
21<#list entries as entry> 
22	<#assign entry = entry /> 
23 
24	<#assign assetRenderer = entry.getAssetRenderer() /> 
25 
26	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) />  
27 
28	<#assign targetViewUrl = "noticias/noticiario-do-exercito" /> 
29    <#assign targetPortletID = "MjaG93KcunQI" /> 
30    <#assign viewURL = "/web/${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${entry.getEntryId()}" /> 
31	 
32    <#assign assetCategoryLocalServiceUtil = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService") /> 
33     
34    <#assign assetVocabularyLocalServiceUtil = serviceLocator.findService("com.liferay.portlet.asset.service.AssetVocabularyLocalService") /> 
35     
36    <#assign articleResourcePrimKey = entry.getAssetRenderer().getArticle().getResourcePrimKey() /> 
37    <#assign temasVocabularyId = 0 /> 
38	<#assign tiposVocabularyId = 0 /> 
39     
40    <#list assetVocabularyLocalServiceUtil.getAssetVocabularies(-1, -1) as vocabulary> 
41        <#if vocabulary.getName() == "Temas"> 
42            <#assign temasVocabularyId = vocabulary.getVocabularyId() /> 
43        </#if> 
44		<#if vocabulary.getName() == "Tipos"> 
45            <#assign tiposVocabularyId = vocabulary.getVocabularyId() /> 
46        </#if> 
47    </#list> 
48	 
49    <#assign dateFormat2 = "dd/MM/yy" /> 
50 
51	<#assign dateFormat3 = "HH:mm" /> 
52	 
53 
54	<div class="asset-abstract"> 
55		<div class="row-fluid"> 
56			 
57			<div class="detalhes span2"> 
58				<div class="data"> 
59					<i class="icon-calendar"></i> 
60					${dateUtil.getDate(entry.getPublishDate(), dateFormat2, locale, timeZoneUtil.getTimeZone(user.getTimeZoneId()))} 
61	 
62				</div> 
63				<div class="hora"> 
64					<i class="icon-time"></i> 
65					${dateUtil.getDate(entry.getPublishDate(), dateFormat3, locale)} 
66				</div> 
67                <#list assetCategoryLocalServiceUtil.getCategories("com.liferay.portlet.journal.model.JournalArticle", articleResourcePrimKey) as item> 
68                    <#if item.getVocabularyId() == tiposVocabularyId> 
69                    	<div class="tipos"> 
70                    		<#if item.name?matches("not[íi]?cias?", "i")> 
71								<i class="icon-align-left"></i> 
72                        	</#if> 
73                        	<#if item.name?matches("v[íi]?deos?", "i")> 
74								<i class="icon-facetime-video"></i> 
75                        	</#if> 
76                        	<#if item.name?matches("[áaÁA]?udios?", "i")> 
77								<i class="icon-volume-up"></i> 
78                        	</#if> 
79                        	<#if item.name?matches("documentos?", "i")> 
80								<i class="icon-folder-open"></i> 
81                        	</#if> 
82                        	${item.name} 
83                        </div> 
84                    </#if> 
85                </#list> 
86			</div> 
87			<div class="resumo span10"> 
88				<div class="container-chapeu">  
89	                <#list assetCategoryLocalServiceUtil.getCategories("com.liferay.portlet.journal.model.JournalArticle", articleResourcePrimKey) as item> 
90	                    <#if item.getVocabularyId() == temasVocabularyId> 
91	                    	<div class="chapeu"> 
92	                        	${item.getName()} 
93	                        </div> 
94	                    </#if> 
95	                </#list> 
96				</div> 
97				<div class="imagem"> 
98						<#if entry.getAssetRenderer().getThumbnailPath(renderRequest)?contains("/images/file_system/large/article.png") > 
99							 
100						<#else> 
101 
102							<a href="${viewURL}"> 
103								<img src="${entry.getAssetRenderer().getThumbnailPath(renderRequest)}" alt="${entry.getTitle(locale)}" /> 
104							</a> 
105 
106						</#if> 
107				</div> 
108				<div class="sumario"> 
109					 
110					<h3 class="asset-title"> 
111						<a href="${viewURL}">${entryTitle}</a> 
112					</h3> 
113					<div class="asset-summary"> 
114 
115						${htmlUtil.escape(assetRenderer.getSummary(locale))} 
116 
117					</div> 
118					<div class="tags"> 
119						<@getMetadataField fieldName="tags" /> 
120					</div> 
121				</div> 
122			</div>	 
123			<div class="lfr-meta-actions asset-actions"> 
124				<@getEditIcon /> 
125			</div>	 
126		</div>	 
127	</div> 
128 
129</#list> 
130 
131<#macro getDiscussion> 
132	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
133		<br /> 
134 
135		<#assign discussionURL = renderResponse.createActionURL() /> 
136 
137		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
138 
139		<@liferay_ui["discussion"] 
140			className=entry.getClassName() 
141			classPK=entry.getClassPK() 
142			formAction=discussionURL?string 
143			formName="fm" + entry.getClassPK() 
144			ratingsEnabled=enableCommentRatings == "true" 
145			redirect=portalUtil.getCurrentURL(request) 
146			userId=assetRenderer.getUserId() 
147		/> 
148	</#if> 
149</#macro> 
150 
151<#macro getEditIcon> 
152	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
153		<#assign redirectURL = renderResponse.createRenderURL() /> 
154 
155		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
156		${redirectURL.setWindowState("pop_up")} 
157 
158		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
159 
160		<#if validator.isNotNull(editPortletURL)> 
161			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
162 
163			<@liferay_ui["icon"] 
164				image="edit" 
165				message=title 
166				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
167			/> 
168		</#if> 
169	</#if> 
170</#macro> 
171 
172<#macro getFlagsIcon> 
173	<#if enableFlags == "true"> 
174		<@liferay_ui["flags"] 
175			className=entry.getClassName() 
176			classPK=entry.getClassPK() 
177			contentTitle=entry.getTitle(locale) 
178			label=false 
179			reportedUserId=entry.getUserId() 
180		/> 
181	</#if> 
182</#macro> 
183 
184<#macro getMetadataField 
185	fieldName 
186
187	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
188		<span class="metadata-entry metadata-"${fieldName}"> 
189			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
190			<#assign dateFormat2 = "dd/mm/yy" /> 
191			<#assign dateFormat3 = "HH:mm:ss" /> 
192 
193			<#if fieldName == "author"> 
194				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
195			<#elseif fieldName == "categories"> 
196				<@liferay_ui["asset-categories-summary"] 
197					className=entry.getClassName() 
198					classPK=entry.getClassPK() 
199					portletURL=renderResponse.createRenderURL() 
200				/> 
201			<#elseif fieldName == "create-date"> 
202				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
203			<#elseif fieldName == "expiration-date"> 
204				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
205			<#elseif fieldName == "modified-date"> 
206				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
207			<#elseif fieldName == "publish-date"> 
208				${dateUtil.getDate(entry.getPublishDate(), dateFormat2, locale)} 
209			<#elseif fieldName == "priority"> 
210				${entry.getPriority()} 
211			 
212			<#elseif fieldName == "tags"> 
213				<@liferay_ui["asset-tags-summary"] 
214					className=entry.getClassName() 
215					classPK=entry.getClassPK() 
216					portletURL=renderResponse.createRenderURL() 
217				/> 
218			<#elseif fieldName == "view-count"> 
219				<@liferay_ui["icon"] 
220					image="history" 
221				/> 
222 
223				${entry.getViewCount()} <@liferay.language key="views" /> 
224			</#if> 
225		</span> 
226	</#if> 
227</#macro> 
228 
229<#macro getPrintIcon> 
230	<#if enablePrint == "true" > 
231		<#assign printURL = renderResponse.createRenderURL() /> 
232 
233		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
234		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
235		${printURL.setParameter("viewMode", "print")} 
236		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
237 
238		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
239			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
240				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
241			</#if> 
242 
243			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
244		</#if> 
245 
246		${printURL.setWindowState("pop_up")} 
247 
248		<@liferay_ui["icon"] 
249			image="print" 
250			message="print" 
251			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
252		/> 
253	</#if> 
254</#macro> 
255 
256<#macro getRatings> 
257	<#if (enableRatings == "true")> 
258		<div class="asset-ratings"> 
259			<@liferay_ui["ratings"] 
260				className=entry.getClassName() 
261				classPK=entry.getClassPK() 
262			/> 
263		</div> 
264	</#if> 
265</#macro> 
266 
267<#macro getRelatedAssets> 
268	<#if enableRelatedAssets == "true"> 
269		<@liferay_ui["asset-links"] 
270			assetEntryId=entry.getEntryId() 
271		/> 
272	</#if> 
273</#macro> 
274 
275<#macro getSocialBookmarks> 
276	<#if enableSocialBookmarks == "true"> 
277		<@liferay_ui["social-bookmarks"] 
278			displayStyle="${socialBookmarksDisplayStyle}" 
279			target="_blank" 
280			title=entry.getTitle(locale) 
281			url=viewURL 
282		/> 
283	</#if> 
284</#macro>