Portal Función Pública
Fecha publicación: 23 de enero de 2019
PRESENTACIO´N PAAC, PARTICIPACIÓN Y CAMPAÑA GRAL.pdf
Publicado por: | Función Publica Comunicaciones Dafp |
Fecha actualización: | 23 de enero de 2019 |
Palabras clave: |
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy160.getGroupFileEntriesCount(long, long)" threw an exception when invoked on com.sun.proxy.$Proxy160 object "com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl@7032f79f"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign countentries = DLAppService.g... [in template "418512#418548#41017131" at line 31, column 13] ----
1<#-- Web content templates are used to lay out the fields defined in a web content structure. Please use the left panel
2 to quickly add commonly used variables. Autocomplete is also available and can be invoked by typing "${" . -->
3 <#setting locale="es_ES">
4 <#assign
5 serviceContext=staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
6 <#assign themeDisplay=serviceContext.getThemeDisplay() />
7 <#assign userid=serviceContext.getUserId() />
8 <#assign url=themeDisplay.getURLCurrent() />
9 <#assign entryId=httpUtil.getParameter(url, "entryId" , false) />
10 <#assign urlsinparametros=themeDisplay.getPortalURL() +url?split('?')[0] />
11 <#assign
12 portalentryId=httpUtil.getParameter(url,"_com_liferay_contacts_web_portlet_ContactsCenterPortlet_entryId",
13 false) />
14 <#assign
15 dlFileEntryService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
16
17 <#if entryId?has_content>
18 <#assign entry=dlFileEntryService.getFileEntry(entryId?number) />
19 <#else>
20 <#assign entry=dlFileEntryService.getFileEntry(portalentryId?number) />
21
22 </#if>
23
24
25 <#assign UserLocalService=serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService")
26 usuarioDoc=UserLocalService.getUserById(entry.getUserId()) />
27 <#assign DLAppService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")>
28 <!--
29<#assign entries = DLAppService.getFileEntries(entry.getRepositoryId(),entry.getFolderId()) > countentries-->
30
31 <#assign countentries=DLAppService.getGroupFileEntriesCount(entry.getGroupId(), entry.getUserId())>
32 <#assign entries=DLAppService.getGroupFileEntries(entry.getGroupId(), entry.getUserId(),0,countentries)>
33 <!--<#assign entries = DLAppService.getFileEntries(entry.getRepositoryId(),entry.getFolderId()) >-->
34 <#assign
35 dlFileEntryTypeService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryTypeService') />
36 <#assign
37 SocialRelationLocalServiceUtil=serviceLocator.findService('com.liferay.social.kernel.service.SocialRelationLocalService')
38 showFollowButton=SocialRelationLocalServiceUtil.isRelatable(userid,entry.getUserId(),8)
39 showUnFollowButton=SocialRelationLocalServiceUtil.hasRelation(userid,entry.getUserId(), 8)
40 followurl=renderResponse.createActionURL() unfollowurl=renderResponse.createActionURL() />
41 ${followurl.setPortletId('com_liferay_contacts_web_portlet_ContactsCenterPortlet')}
42 ${followurl.setParameter("javax.portlet.action", "addSocialRelation")}
43 ${followurl.setParameter("type", "8")}
44 ${followurl.setParameter("userIds",entry.getUserId()?string)}
45 ${followurl.setParameter("entryId", entry.getFileEntryId()?string)}
46 ${unfollowurl.setPortletId('com_liferay_contacts_web_portlet_ContactsCenterPortlet')}
47 ${unfollowurl.setParameter("javax.portlet.action", "deleteSocialRelation")}
48 ${unfollowurl.setParameter("type", "8")}
49 ${unfollowurl.setParameter("userIds",entry.getUserId()?string)}
50 ${unfollowurl.setParameter("entryId", entry.getFileEntryId()?string)}
51 <#assign
52 assetEntryLocalServiceUtil=objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")
53 assetEntry=assetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",entry.getFileEntryId())
54 renderer=assetEntry.getAssetRenderer()
55 fields=renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()>
56 <#if fields?has_content>
57 <#list fields as field>
58 <#if field.getName()=="EnlaceAudiolibro">
59 <#assign urlaudiolibro=field.getValue().getString(locale)>
60 </#if>
61 <#if field.getName()=="TituloPublicacion">
62 <#assign titulo=field.getValue().getString(locale)>
63 </#if>
64 </#list>
65 </#if>
66 <div class="cuerpo">
67
68 <div id="logo-entidad"><img alt="" src="${usuarioDoc.getPortraitURL(themeDisplay)}"></div>
69
70 <div class="radius-box-fp-gray" id="ultimas-noticias_sp">
71 <div class="h-boletin-head" id="detalle-publicacion-sidebar">
72 <div class="entidad-autora-tag">Entidad autora de esta publicación:</div>
73
74 <div class="entidad-autora">${usuarioDoc.getFirstName()} ${usuarioDoc.getLastName()}
75 </div>
76
77 <div class="entidad-autora-nombrecompleto txt-capital">${usuarioDoc.getJobTitle()?lower_case}</div>
78
79 <div id="contenedor-botones">
80 <!-- <span id="boton-azul-new"><a
81 href="${usuarioDoc.getDisplayURL(themeDisplay)?string}"
82 id="boton-azul-new">Ver perfil</a></span> -->
83 <!-- <#if showFollowButton && !showUnFollowButton>
84 <span id="boton-borde-azul-new"><a href="${followurl?string+"
85 &entryId="+entry.getUserId()?string}"
86 id="boton-borde-azul-new">Seguir</a></span>
87 </#if>
88 <#if showUnFollowButton>
89 <span id="boton-borde-azul-new"><a href="${unfollowurl?string+"
90 &entryId="+entry.getUserId()?string}"
91 id="boton-borde-azul-new">Dejar de seguir</a></span>
92 </#if> -->
93
94 </div>
95
96 <hr>
97 <h2>Últimas<br>
98 publicaciones</h2>
99
100 <hr>
101 <#if entries?has_content>
102 <#list entries?sort_by("createDate")?reverse as curFileEntry>
103 <#if curFileEntry?counter < 6>
104 <div>
105 <#assign
106 entrylist=dlFileEntryService.getFileEntry(curFileEntry.fileEntryId) />
107 <#assign
108 entryType=dlFileEntryTypeService.getFileEntryType(entrylist.getFileEntryTypeId()) />
109 <#if entryType.getName()?contains("Manual")>
110 <p class="etiqueta-manual">${entryType.getName()}</p>
111 </#if>
112 <#if entryType.getName()?contains("Guía")>
113 <p class="etiqueta-guia">${entryType.getName()}</p>
114
115 </#if>
116 <#if entryType.getName()?contains("Cartilla")>
117 <p class="etiqueta-cartilla">${entryType.getName()}</p>
118 </#if>
119 <#if entryType.getName()?contains("Investigacion")>
120 <p class="etiqueta-investigacion">${entryType.getName()}</p>
121 </#if>
122 <p class="date-news">${curFileEntry.createDate?string("dd 'de' MMMMM
123 'de' yyyy")}</p>
124
125 <h5><a class="link-noticia_eva" href="${"/web/eva/detalle-publicacion?entryId="+curFileEntry.fileEntryId}">
126 <#assign
127 assetEntryLocalServiceUtil=objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")
128 assetEntry=assetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",curFileEntry.fileEntryId)
129 renderer=assetEntry.getAssetRenderer()
130 fields=renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()>
131 <#if fields?has_content>
132 <#assign
133 tituloEntries=""/>
134 <#list fields as field>
135 <#if field.getName()=="TituloPublicacion">
136 <#assign
137 tituloEntries=field.getValue().getString(locale)>
138 </#if>
139 </#list>
140 </#if>
141 <#if tituloEntries?has_content>
142 ${tituloEntries}
143 </#if>
144 <#if !tituloEntries?has_content>
145 ${curFileEntry.title}
146 </#if>
147 </a></h5>
148
149 <hr>
150 </div>
151 <#else>
152 <#break>
153 </#if>
154 </#list>
155 </#if>
156
157
158
159 </div>
160 </div>
161
162 <div class="otra-busqueda" style="margin-top:10px">
163 <p id="boton-borde-azul-new"><a href="/web/eva/publicaciones"
164 id="boton-borde-azul-new">Realizar nueva búsqueda</a></p>
165 </div>
166 </div>