Acreditación

Vidrio y Cerámica

Errorea gertatu da txantiloia prozesatzerakoan.
Java method "com.sun.proxy.$Proxy139.getDLFileEntryByUuidAndGroupId(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy139 object "com.liferay.document.library.internal.service.FriendlyURLDLFileEntryLocalServiceWrapper@1c8344c"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #local dlFileEntry = dlFileEntryLocal...  [in template "20155#20195#21213650" in function "getEnlaceDescarga" at line 171, column 9]
	- Reached through: ${getEnlaceDescarga(guia["uuid"], gui...  [in template "20155#20195#21213650" at line 70, column 84]
----
1<#assign liferay_ui = PortletJspTagLibs["/META-INF/liferay-ui.tld"] /> 
2<#assign liferay_util = PortletJspTagLibs["/META-INF/liferay-util.tld"] /> 
3 
4 
5 
6<#assign configuracion> 
7
8
9		id:"UC", 
10		nombre:"UC", 
11		relacionados:"", 
12		idIntercambio:"321", 
13		clasificacion:"", 
14		estructura:"true" 
15
16
17</#assign> 
18 
19<#assign assetEntryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/> 
20<#assign incualAssetService = serviceLocator.findService("es.gob.educacion.incual.service.IncualAssetLocalService")/> 
21<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")/> 
22 
23<#list entries as entry> 
24	<#assign entry = entry /> 
25 
26	<#assign assetRenderer = entry.getAssetRenderer() /> 
27 
28	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
29 
30	<#assign unidadCompetencia = incualAssetService.obtenerValoresAssetTotal(entry, themeDisplay, configuracion) /> 
31	 
32	 
33	<div class="asset-abstract INC_detalle"> 
34		<div class="lfr-meta-actions asset-actions text-right"> 
35			<@getPrintIcon /> 
36 
37			<@getFlagsIcon /> 
38 
39			<@getEditIcon /> 
40		</div> 
41 
42    	<@getBackIcon/> 
43 
44		<h3 class="likeh4"> 
45			${unidadCompetencia.Codigo.data} - ${unidadCompetencia.Nombre.data? lower_case? cap_first} 
46		</h3> 
47		 
48	  <div class="asset-content"> 
49		  <div class="asset-summary"> 
50    		  <p> 
51 
52<#if (unidadCompetencia.Contexto_profesionalFieldSet.Contexto_profesionalFieldSetFieldSet.Medios_de_produccion.data)??> 
53	${unidadCompetencia.Contexto_profesionalFieldSet.Contexto_profesionalFieldSetFieldSet.Medios_de_produccion.data} 
54</#if>						 
55				</p> 
56			</div> 
57			<div class="INC_enlaces"> 
58				<#if unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.Glosario ??> 
59					<#if unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.Glosario.data?has_content> 
60						<#assign glosario = unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.Glosario.data?eval/> 
61						<#if glosario.uuid??> 
62						   <div class="INC_documentoPDF"><a href="${getEnlaceDescarga(glosario['uuid'], glosario['groupId'])}" target="_new" title="Ver Glosario. Abre PDF en ventana nueva.">Glosario</a></div> 
63						</#if> 
64					</#if>					 
65				</#if>					 
66				<#if unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.GuiaEvidencia ??> 
67				  <#if unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.GuiaEvidencia.data?has_content> 
68					  <#assign guia = unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.GuiaEvidencia.data?eval/> 
69					  <#if guia.uuid??> 
70					    <div class="INC_documentoPDF"><a href="${getEnlaceDescarga(guia['uuid'], guia['groupId'])}" target="_new" title="Ver Guía. Abre PDF en ventana nueva.">Guía de Evidencia</a></div> 
71					  </#if> 
72				  </#if>					 
73			  </#if>					 
74			  <#if unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.Cuestionario ??> 
75				  <#if unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.Cuestionario.data?has_content> 
76					  <#assign cuestionario = unidadCompetencia.DocumentosFieldSet.DocumentosFieldSetFieldSet.Cuestionario.data?eval/> 
77					  <#if cuestionario.uuid??>							   
78					     <div class="INC_documentoPDF"><a href="${getEnlaceDescarga(cuestionario['uuid'], cuestionario['groupId'])}" target="_new" title="Ver Cuestionario. Abre PDF en ventana nueva.">Cuestionario de Autoevaluación</a></div> 
79					  </#if> 
80				  </#if>					 
81			  </#if>					 
82			</div> 
83		</div> 
84	</div> 
85</#list> 
86 
87<#macro getEditIcon> 
88	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
89		<#assign redirectURL = renderResponse.createRenderURL() /> 
90 
91		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
92		${redirectURL.setWindowState("pop_up")} 
93 
94		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
95 
96		<#if validator.isNotNull(editPortletURL)> 
97			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
98			<#assign portletId = portalUtil.getPortletId(renderRequest)/> 
99			<#assign dialogParams = " 
100
101									modal: true, 
102									destroyOnHide:true, 
103									after: {  
104														destroy: 
105														function (event) { 
106															Liferay.Portlet.refresh('#p_p_id_${portletId}_'); 
107
108
109
110			"/>			 
111 
112			<@liferay_ui["icon"] 
113				image="edit" 
114				message=title 
115				url="javascript:Liferay.Util.openWindow({dialog: ${dialogParams?trim}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
116			/> 
117		</#if> 
118	</#if> 
119</#macro> 
120 
121<#macro getFlagsIcon> 
122	<#if enableFlags == "true"> 
123		<@liferay_ui["flags"] 
124			className=entry.getClassName() 
125			classPK=entry.getClassPK() 
126			contentTitle=entry.getTitle(locale) 
127			label=false 
128			reportedUserId=entry.getUserId() 
129		/> 
130	</#if> 
131</#macro> 
132 
133 
134<#macro getPrintIcon> 
135	<#if enablePrint == "true" > 
136		<#assign printURL = renderResponse.createRenderURL() /> 
137 
138		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
139		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
140		${printURL.setParameter("viewMode", "print")} 
141		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
142 
143		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
144			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
145				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
146			</#if> 
147 
148			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
149		</#if> 
150 
151		${printURL.setWindowState("pop_up")} 
152 
153		<@liferay_ui["icon"] 
154			image="print" 
155			message="print" 
156			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
157		/> 
158	</#if> 
159</#macro> 
160 
161<#macro getBackIcon> 
162    <#assign redirectURL = paramUtil.getString(renderRequest, "redirect", "") /> 
163	<#if redirectURL?has_content > 
164	    <a class="icon-circle-arrow-left previous-level" href="${redirectURL}" title="Atrás"> 
165	        <span class="helper-hidden-accessible"> Atrás </span> 
166	    </a> 
167	</#if> 
168</#macro> 
169 
170<#function getEnlaceDescarga uuid groupId> 
171	<#local dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId?number) /> 
172	<#local assetEntry = assetEntryService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) /> 
173	<#local assetRenderer = assetEntry.assetRenderer />												  
174	<#return assetRenderer.getURLDownload(themeDisplay)> 
175</#function>