Buscando, por favor espere...

Registro Municipal de Solares y Edificios a Rehabilitar - Documentos - València

Documentos

Se ha producido un error al procesar la plantilla.
No compatible overloaded variation was found; wrong number of arguments.
The FTL type of the argument values were: extended_hash+string (Class wrapped into f.e.b.StringModel).
The matching overload was searched among these members:
    static com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil.forClass(Class, ClassLoader),
    static com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil.forClass(Class, String, ClassLoader)

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign dynamicQuery = dynamicQueryFa...  [in template "20115#20151#29402956" at line 18, column 25]
----
1<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
2<#assign catPropLocalService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") /> 
3<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
4<#assign dlFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
5<#assign assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
6 
7<#assign customTitle= themeDisplay.getPortletDisplay().getTitle() /> 
8 
9<div class="container comisiones-plenos"> 
10    <div class="row"> 
11        <div class="col-12 pagina"> 
12            <#assign parentCategoryId = "23724194" /> 
13			<#assign parentCategoryIdLong = parentCategoryId?number?long /> 
14 
15			<#assign classLoader = staticUtil["com.liferay.portal.kernel.util.PortalClassLoaderUtil"]/> 
16	        <#assign categoryValueClass = staticUtil["com.liferay.petra.lang.ClassResolverUtil"].resolve("com.liferay.asset.kernel.model.AssetCategory",classLoader.getClassLoader()) > 
17           	<#assign dynamicQueryFactory = staticUtil["com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil"]> 
18			<#assign dynamicQuery = dynamicQueryFactory.forClass(categoryValueClass) > 
19			<#assign propertyFactory = staticUtil["com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil"]> 
20			<#assign VOID = dynamicQuery.add(propertyFactory.forName("parentCategoryId").eq(parentCategoryIdLong))> 
21			<#assign results = catLocalService.dynamicQuery(dynamicQuery) > 
22			<#assign categoryChilds = results /> 
23            <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> 
24 
25            <#list categoryChilds as category> 
26                <div class="panel panel-default"> 
27                   <div class="panel-heading" role="tab" id="category-${category.getCategoryId()}"> 
28                     <span class="panel-title"> 
29                       <a class="collapsed a-anyos-comisiones" role="button"  data-toggle="collapse" data-parent="#accordion" href="#collapse${category.getCategoryId()}" aria-expanded="false" aria-controls="collapse${category.getCategoryId()}"> 
30                        <span class="iconoEnlacesRedesSociales fa fa-chevron-right"></span><span>${category.getTitle(locale)}</span> 
31                       </a> 
32                     </span> 
33                   </div> 
34                   <div id="collapse${category.getCategoryId()}" class="collapse " role="tabpanel" aria-labelledby="category-${category.getCategoryId()}"> 
35                    <div class="panel-body"> 
36                    <!-- en el panel-body mostramos las entradas de cada categoria hija--> 
37                      <#if entries?has_content> 
38                          <#assign z = 0> 
39                          <#list entries as curEntry> 
40                            <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curEntry.getClassPK())) /> 
41                            <#assign entryId = curEntry.getClassPK() /> 
42                            <#assign articleCategories = catLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", getterUtil.getLong(entryId)) /> 
43                            <#assign contiene = "false" /> 
44                            <#list articleCategories as c> 
45                                <#if c?number?long == category.getCategoryId() > 
46                                 <#assign contiene = "true" /> 
47                                 <#continue> 
48                                </#if> 
49                             </#list> 
50                             <#if contiene == "true" > 
51                                <!-- pintar los articulos en el panel-body --> 
52                               <#assign title = article.getTitle(locale) > 
53                               <#assign content = article.getContentByLocale(locale) /> 
54                               <#assign rootElement = saxReaderUtil.read(content).getRootElement() /> 
55                               <#assign aArticleXML = saxReaderUtil.read(content) /> 
56                               <#assign enlaceNode = aArticleXML.valueOf("//dynamic-element[@name='enlace']/dynamic-content/text()") /> 
57 
58                                <#assign enlace = "" /> 
59                                <#if enlaceNode?? && enlaceNode !=""> 
60                                     <#assign jsonObject = enlaceNode?eval> 
61                                     <#assign entryUuid = jsonObject.uuid /> 
62                                     <#assign entryGroupId = getterUtil.getLong(jsonObject.groupId) /> 
63                                     <#assign dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
64                                     <#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) /> 
65                                     <#assign assetRenderer = assetEntry.assetRenderer /> 
66                                     <#assign enlace = assetRenderer.getURLDownload(themeDisplay) /> 
67                                 </#if> 
68 
69                                 <#if z%3 == 0> 
70							    	<#if z == 0> 
71								        <div class="row row-recurso"  id="collapse-${curEntry.getClassPK()}-${z}" class="collapse" data-parent="category-${category.getCategoryId()}" style="list-style:none;"> 
72							    	<#else> 
73									    </div> 
74									    <div class="row row-recurso"  id="collapse-${curEntry.getClassPK()}-${z}" class="collapse" data-parent="category-${category.getCategoryId()}" style="list-style:none;"> 
75								    </#if> 
76						      </#if> 
77 
78						      <div class="col-4 col-xl-4 col-lg-4 col-md-4 col-sm-12 col-xs-12 recurso recurso-documento"> 
79                                <div class="flex"> 
80                                    <div class="recurso-imagen"> 
81                                        <h3 class="mt-4">${title}</h3> 
82                                    </div> 
83                                    <div> 
84                                        <a href="${enlace}" target="_blank" alt="${title}" rel="noopener noreferrer" class="btn"><@liferay.language key="descargar" /></a> 
85                                    </div> 
86                                </div> 
87                            </div> 
88                            <#if curEntry?is_last> 
89                                </div> 
90		                	</#if> 
91 
92                             <#assign z++> 
93                            </#if> 
94 
95                          </#list> 
96 
97                       </#if> 
98 
99                       </div>  <!-- cierre panel body --> 
100                   </div> <!-- cierre id="collapse${category.getTitle(locale)}"  --> 
101               </div>  <!-- cierre panel-default  --> 
102            </#list> 
103 
104        </div> 
105      </div> 
106     </div> 
107   </div> 
108 
109<style> 
110.recurso .flex { 
111	float: left; 
112    margin: 0em 0.5em 0.5em 0em; 
113	position: relative; 
114    width: 100%; 
115    height: auto; 
116    min-height: 100px; 
117    overflow: hidden; 
118    text-align: center; 
119    padding: 10px; 
120    border: 1px solid #ddd; 
121    border-radius: 5px; 
122    box-shadow: 3px 3px 8px #ccc; 
123
124 
125.recurso h3 { 
126    font-family: 'Montserrat', 'Calibri', Arial, Helvetica, sans-serif; 
127    text-transform: uppercase; 
128    margin-left: 0; 
129    padding: 1em; 
130    height: auto; 
131    font-size: 0.8rem; 
132    line-height: 130%; 
133    text-align: left; 
134    box-sizing: border-box; 
135    font-weight: 600; 
136    color: #000; 
137    text-shadow: none; 
138    display: table-cell; 
139    vertical-align: middle; 
140    width: calc(100% - 50px); 
141 
142
143 
144.recurso > div p { 
145    font-size: 0.7em; 
146    color: #333; 
147    text-align: left; 
148    line-height: 140%; 
149    height: auto; 
150    padding: 1em; 
151    margin: 0; 
152    max-height: fit-content; 
153
154.recurso a.btn { 
155    color: #000; 
156    font-weight: 600; 
157    opacity: 1; 
158    font-size: 12px; 
159    border: 2px solid #ffcd40; 
160    border-radius: 4px; 
161    background-color: #ffcd40; 
162    display: block; 
163    text-align: center; 
164    text-decoration: none; 
165    text-transform: uppercase; 
166    transition: all .5s ease; 
167    -moz-transition: all .5s ease; 
168    -ms-transition: all .5s ease; 
169    -o-transition: all .5s ease; 
170    -webkit-transition: all .5s ease; 
171    width: 70%; 
172    margin: 0 15% !important; 
173
174 
175.recurso a.btn:hover { 
176    color: #ffcd40; 
177    background-color: #565656; 
178
179 
180 
181 
182@media only screen and (min-width: 1224px) { 
183.row-recurso{ 
184	margin-left: 1em; 
185
186
187</style> 
188<script> 
189$(document).ready(function(){ 
190 
191    $('.panel-body').each(function(){ 
192 
193 
194}) 
195}) 
196$(".a-anyos-comisiones").click(function(){ 
197	if($(this).hasClass("icon-expand-alt")) 
198
199		$(this).removeClass("icon-expand-alt"); 
200		$(this).addClass("icon-collapse-alt"); 
201
202    else if($(this).hasClass("icon-collapse-alt")) 
203
204		$(this).addClass("icon-expand-alt"); 
205		$(this).removeClass("icon-collapse-alt"); 
206
207}); 
208 
209</script>