header partecipa

Asset Publisher

An error occurred while processing the template.
Denied resolving class java.lang.Class by java.lang.Class
1<div class="filter-home"> 
2    <span> 
3        <a href="/web/partecipa/avvisi-e-notizie">archivio notizie</a> 
4            <span class="icon-stack icon-1x">  
5                <i class="icon-stop icon-stack-base"></i>  
6                <i class="icon-arrow-right icon-light"></i>  
7            </span> 
8    </span> 
9</div> 
10 
11 
12#set ($GroupLocalService = $serviceLocator.findService("com.liferay.portal.service.GroupLocalService")) 
13#set ($LayoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService")) 
14 
15#set ($entryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService")) 
16#set ($assetEntryQuery2 = $portal.getClass().forName('com.liferay.portlet.asset.service.persistence.AssetEntryQuery').newInstance()) 
17 
18##ottengo tramite un filtro id sui contenuti di tipo "Intestazioni e note id: 12580" 
19#set ($void = $assetEntryQuery2.setClassTypeIds($getterUtil.getLong(29251)))  
20#set ($count = 0) 
21 
22#if (!$entries.isEmpty()) 
23 
24    #foreach ($entry in $entries) 
25        #set ($last= false) 
26         
27		#if ($count == 0) 
28			<div class="row-fluid news-asset"> 
29		#end 
30	 
31	 
32       #set($RoomTitle = "")  
33	 
34	 
35		#set ($scopeGroupId =  $entry.getGroupId()) 
36        #set ($layoutId = $getterUtil.getLong($request.theme-display.plid)) 
37        #set ($scopeGroup = $GroupLocalService.getGroup($scopeGroupId))     
38        #set ($LayoutList = $LayoutLocalService.getLayouts($scopeGroupId,false)) 
39	 
40		#set ($void = $assetEntryQuery2.setGroupIds($scopeGroupId))  
41        #set ($roomEntries = $entryLocalService.getEntries($assetEntryQuery2))  
42		 
43		 
44        #foreach ($roomEntry in $roomEntries) 
45         
46            #set($renderer2 = $roomEntry.getAssetRenderer() ) 
47            #set($className = $renderer2.getClassName() ) 
48             
49    		#if( $className == "com.liferay.portlet.journal.model.JournalArticle" ) 
50                #set( $journalArticle2 = $renderer2.getArticle() ) 
51                #set( $document2 = $saxReaderUtil.read($journalArticle2.getContent()) ) 
52                #set( $rootElement2 = $document2.getRootElement() ) 
53    			 
54    			#foreach( $dynamicElement in $rootElement2.elements() ) 
55     
56 
57                    #if( "RoomTitle" == $dynamicElement.attributeValue("name") ) 
58                        #set($RoomTitle = $dynamicElement.element("dynamic-content").getData() ) 
59                         
60                        #set ($RoomTitle = $RoomTitle + " - ") 
61                         
62                    #end 
63 
64    			#end 
65    		#end 
66        #end 
67	 
68        #set($renderer = $entry.getAssetRenderer() ) 
69        #set($className = $renderer.getClassName() ) 
70        #if( $className == "com.liferay.portlet.journal.model.JournalArticle" ) 
71            #set( $journalArticle = $renderer.getArticle() ) 
72            #set( $document = $saxReaderUtil.read($journalArticle.getContent()) ) 
73            #set( $rootElement = $document.getRootElement() ) 
74			 
75			#foreach( $dynamicElement in $rootElement.elements() ) 
76			 
77                #if( "Data_visualizzata" == $dynamicElement.attributeValue("name") ) 
78                    #set($data = $dynamicElement.element("dynamic-content").getData() ) 
79					#set($data_visualizzata_DateObj = $dateUtil.newDate($getterUtil.getLong($data))) 
80					#set($data = $dateUtil.getDate($data_visualizzata_DateObj, "dd MMM yyyy", $locale)) 
81                #end 
82				 
83				#if( "Sommario" == $dynamicElement.attributeValue("name") ) 
84                    #set($sommario = $dynamicElement.element("dynamic-content").getData() ) 
85                #end 
86				 
87				#if( "Categoria" == $dynamicElement.attributeValue("name") ) 
88                    #set($categoria = $dynamicElement.element("dynamic-content").getData() ) 
89                #end 
90			#end 
91			 
92			           
93            #set( $link = $renderer.getURLViewInContext($renderRequest, $renderResponse, '') ) 
94                           			 
95			<div class="span3 text-left"> 
96				<div class="row-fluid"> 
97					<div> 
98						 
99 
100						<div class="titolo-post"> 
101							<a href="$link">$entry.getTitle($locale)</a> 
102						</div> 
103						 
104						<div class="meta"> 
105 
106							##<span class="categoria $categoria">$RoomTitle $categoria - </span> 
107							<span class="data">$data</span> 
108						</div> 
109						 
110						<div class="testo"> 
111							$sommario 
112						</div> 
113						<div class="readmore"> 
114 
115							<a href="$link" class="rosso">leggi</a> 
116						</div> 
117					</div> 
118				</div> 
119			</div>	 
120		#end 
121			 
122			#set ($count = $count +1) 
123 
124			#if ($count == 4) 
125				 
126				</div> 
127				#set($last = true) 
128				#set($count = 0) 
129			#end 
130			 
131			 
132        #end 
133        #if ($last == "false") 
134            </div> 
135        #end 
136     
137    <!-- /div --> 
138#end