Relatório das ações realizadas pelos Conselhos da Comunidade Orientados pela FECCOMPAR

 

*Relatório de Pesquisa Medidas Protetivas de Urgência: Perspectivas desde o pedido à sua decisão


28ª Semana Nacional da Justiça pela Paz em Casa


29ª Semana Nacional da Justiça pela Paz em Casa

An error occurred while processing the template.
Java method "com.liferay.portal.webserver.WebServerServletTokenImpl.getToken(long)" couldn't be called: The value of the 1st argument was null, but the target Java parameter type (long) is primitive and so can't store null.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${webServerToken.getToken($smallImage...  [in template "10132#10165#32710858" at line 46, column 93]
----
1#macro(showThumb $imagem $imagemLegenda $imagemAlign $imagemId) 
2	## service and image ids from selected URL in image field 
3	#set ( $imageService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") )  
4	#set ( $imageUuid = $httpUtil.getParameter($imagem, 'uuid', false) ) 
5	#set ( $imageGroupId = $httpUtil.getParameter($imagem, 'groupId', false) ) 
6	 
7	## retrieve all kind of image id from it's URL for compatibility 
8	#set ( $imageId = $httpUtil.getParameter($imagem, 'fileEntryId', false) ) 
9	#if ( $imageUuid.empty && $imageGroupId.empty && $imageId.empty )  
10		#set ($imageId = $httpUtil.getParameter($imagem, 'image_id', false) ) 
11		#if ( $imageId.empty )  
12			#set ( $imageId = $httpUtil.getParameter($imagem, 'img_id', false) ) 
13			#if ( $imageId.empty )  
14	 			#set ( $imageId = $httpUtil.getParameter($imagem, 'i_id', false) ) 
15	 		#end 
16		#end 
17	#end 
18	 
19	## retrieve the image file object 
20	#if( !$imageId.empty || ( !$imageUuid.empty && !$imageGroupId.empty ) ) 
21		#if( !$imageId.empty )  
22			#set ( $dlFileEntry = $imageService.getFileEntry($getterUtil.getLong($imageId)) ) 
23			 
24		#elseif( !$imageUuid.empty && !$imageGroupId.empty )  
25			#set ( $dlFileEntry = $imageService.getFileEntryByUuidAndGroupId($imageUuid, $getterUtil.getLong($imageGroupId)) )  
26		#end 
27	 
28		## test if image was found 
29		#if ( $dlFileEntry ) 
30		 	## get specific service to retrieve image custom sizes for compatibility 
31			## try to get big image if available (750px) - quality requirement 
32		    #set ( $smallImageId = $dlFileEntry.getCustom2ImageId() ) 
33		    #if( $smallImageId <= 0 )  
34				## try to get medium image if available (450px) - quality requirement 
35		        #set ( $smallImageId = $dlFileEntry.getCustom1ImageId() ) 
36		        #if( $smallImageId <= 0 )  
37		        	##get smallest image - thumbnail (150px) 
38		            #set ( $smallImageId = $dlFileEntry.getSmallImageId() ) 
39				#end 
40		    #end 
41		    #if ( $smallImageId > 0 )  
42		    	#set ( $imageService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLAppLocalService") ) 
43		    	#set ( $fileEntry = $imageService.getFileEntry($dlFileEntry.getFileEntryId()) ) 
44		    	## method invoked to generate custom thumbnails if it doesn't exists 
45		    	#set ( $imagem = $dlUtil.getImagePreviewURL($fileEntry, $themeDisplay) ) 
46		        #set ( $imagem = "/documents/7613613/0/Sem%20t%C3%ADtulo%203.png}&t=${webServerToken.getToken($smallImageId)}" ) 
47		    #end  
48		#else 
49			#set ( $imagem = "" ) 
50		#end 
51		 
52	#elseif( !$imagem.empty ) 
53		#set ( $imagem = $imagem + $imagemSize ) 
54	#end 
55 
56	#if( !$imagem.empty ) 
57	    <a id="$imagemId" class="thumbnail $imagemAlign" href="$imagem" title="$imagemLegenda"> 
58	        <img alt="$imagemLegenda" src="$imagem" /> 
59            <span>$imagemLegenda</span> 
60        </a> 
61    #end 
62#end 
63 
64## get first structure fields 
65#set ( $imagem = $Texto.getChildren().get(1).getData() ) 
66#if( $imagem.empty ) 
67    #set ( $imagem = $reserved-article-small-image-url.data ) 
68#end 
69#set ( $imagemSize = '&imageThumbnail=3' ) 
70#set ( $imagemAlign = $Texto.getChildren().get(0).getData() ) 
71#set ( $imagemLegenda = "" ) 
72#if( $Texto.getChildren().get(1).getChildren().size() > 0 ) 
73    #set ( $imagemLegenda = $Texto.getChildren().get(1).getChildren().get(0).getData() ) 
74#end 
75 
76#if( $imagemAlign == "Esquerda" ) 
77    #set ( $imagemAlign = 'pull-left' ) 
78#elseif($imagemAlign == "Direita") 
79    #set ( $imagemAlign = 'pull-right' ) 
80#else 
81    #set ( $imagemAlign = 'text-center' ) 
82#end 
83 
84<div id="modelo_noticia" class="row-fluid"> 
85	<div class="row-fluid"> 
86        #showThumb("$imagem" "$imagemLegenda" "" "imagem_corpo") 
87        <br/> 
88	    <div class="text-center"> 
89        	<blockquote class="clear-fix text-center"> 
90        	    <p class="lead"> 
91        	        $reserved-article-title.data<br/> 
92    	            <small><cite title="$reserved-article-description.data">$reserved-article-description.data</cite> 
93    	            <br/>$reserved-article-modified-date.data 
94    	            </small> 
95        	    </p> 
96        	</blockquote> 
97    	</div> 
98	    $Texto.getData() 
99	</div> 
100    <div class="row-fluid"> 
101        <ul class="thumbnails" > 
102    	    #foreach( $imagemQuadro in $TituloImagens.getChildren().get(0).getSiblings() ) 
103    	        #set ( $imagem = $imagemQuadro.getData() ) 
104    	        #set ( $imagemLegenda = "" ) 
105    	        #if( $imagemQuadro.getChildren().size() > 0 ) 
106    	            #set ( $imagemLegenda = $imagemQuadro.getChildren().get(0).getData() ) 
107    	        #end 
108    	        #if( !$imagem.empty ) 
109    	        <li id="imagem_galeria" class="span4"> 
110    	        	#showThumb("$imagem" "$imagemLegenda" "" "imagem_galeria") 
111    	        </li> 
112    	        #end 
113    	    #end 
114        </ul> 
115    </div> 
116</div> 
117 
118<script type="text/javascript"> 
119    AUI().ready('aui-image-viewer-gallery', function(A) {   
120        var viewportRegion = A.getDoc().get('viewportRegion'); 
121	    var maxHeight = (viewportRegion.height); 
122	    var maxWidth = (viewportRegion.width); 
123        var imageGallery1 = new A.ImageGallery({   
124           links : '.thumbnail',   
125           caption : 'Imagens',   
126           autoPlay : true,   
127           paginator : {},  
128		   maxHeight : maxHeight, 
129	       maxWidth : maxWidth, 
130           delay : 5000   
131        }).render();   
132    });   
133</script>  
134 
135<style> 
136    #imagem_corpo { 
137        width: 100%; 
138
139    #imagem_corpo img { 
140        max-height: 450px; 
141
142     
143    #imagem_galeria { 
144        margin-left: 5px; 
145        min-height: 200px; 
146
147     
148    #imagem_galeria img { 
149        max-height: 200px; 
150
151     
152    @media (max-width: 679px) { 
153        #imagem_galeria { 
154            margin-left: 3px; 
155
156         
157        #imagem_galeria img { 
158            max-height: 100%; 
159
160
161</style> 

CEVID - Relatório dos 21 dias de ativismo - Ed. 2024