Avisos

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