Caminho de Navegação

Ouvidoria Interna

Um erro ocorreu enquanto processava o modelo.
Java method "com.sun.proxy.$Proxy280.getWebsites(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy280 object "com.liferay.portal.service.impl.WebsiteServiceImpl@2acb8910"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign OrganizationWebsite = Website...  [in template "20099#20125#254360" at line 58, column 5]
----
1<#if (organizationId.getData()) != ""> 
2  <#assign OrganizationLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.OrganizationLocalService") /> 
3  <#assign EmailAddressLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.EmailAddressLocalService") /> 
4  <#assign ContactLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.ContactLocalService") /> 
5  <#assign PhoneLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.PhoneLocalService") /> 
6  <#assign WebsiteService = serviceLocator.findService("com.liferay.portal.kernel.service.WebsiteService")/> 
7  <#assign UserLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService")/> 
8 
9  <#assign OrganizationID = getterUtil.getLong(organizationId.getData()) /> 
10  <#assign userPrimaryKeys = [] /> 
11  <#assign team = [] /> 
12  <#assign usuarios_chefia = [] /> 
13  <#assign OrganizationName = "" /> 
14  <#assign chefia = [ 
15  "CHEFE DA AUDITORIA", 
16  "CHEFE DA CONSULTORIA LEGISLATIVA", 
17  "CHEFE DA CONSULTORIA TECNICO LEGISLATIVA", 
18  "CHEFE DE ASSESSORIA", 
19  "CHEFE DE DIVISAO", 
20  "CHEFE DE GAB. PARLAMENTAR", 
21  "CHEFE DE GABINETE DE MEMBRO DA MESA", 
22  "CHEFE DE GABINETE PARLAMENTAR", 
23  "CHEFE DE NUCLEO", 
24  "CHEFE DE NÚCLEO", 
25  "CHEFE DE NUCLEO DE APOIO", 
26  "CHEFE DE SECAO", 
27  "CHEFE DE SEÇÃO", 
28  "CHEFE DE SETOR", 
29  "CHEFE DE UNIDADE", 
30  "COORDENADOR", 
31  "COORDENADOR DE COMISSAO", 
32  "COORDENADOR DE POLICIA LEGISLATIVA", 
33  "DIRETOR", 
34  "GERENTE COORDENADOR-FASCAL", 
35  "PRESIDENTE CPC", 
36  "PROCURADOR-GERAL", 
37  "SECRETARIO DA PROCURADORIA ESPECIAL DA MULHER", 
38  "SECRETARIO DE COMISSAO", 
39  "SECRETARIO EXECUTIVO DA 1 SECRETARIA", 
40  "SECRETARIO EXECUTIVO DA 2 SECRETARIA", 
41  "SECRETARIO EXECUTIVO DA 3 SECRETARIA", 
42  "SECRETARIO EXECUTIVO DA VICE-PRESIDENCIA", 
43  "SECRETARIO GERAL PRESIDENCIA", 
44  "CHEFE DE NUCLEO", 
45  "CHEFE DE NÚCLEO", 
46	"CHEFE DA AGENCIA CLDF DE NOTICIAS", 
47  "CHEFE DA PUBLICIDADE INSTITUCIONAL", 
48  "CHEFE DA TV E RADIO LEGISLATIVA" 
49  ] /> 
50 
51  <#if OrganizationLocalService.fetchOrganization(OrganizationID)?? > 
52    <#assign OrganizationDta = OrganizationLocalService.getOrganization(OrganizationID) /> 
53    <#assign CompanyId = getterUtil.getLong(OrganizationDta.companyId) /> 
54    <#assign OrganizationService = "com.liferay.portal.kernel.model.Organization"/> 
55    <#assign OrganizationClassNameId = portalUtil.getClassNameId(OrganizationService) /> 
56    <#assign OrganizationEmailAddresses = EmailAddressLocalService.getEmailAddresses(CompanyId, OrganizationService, OrganizationID)/> 
57    <#assign OrganizationPhone = PhoneLocalService.getPhones(CompanyId, OrganizationService, OrganizationID) /> 
58    <#assign OrganizationWebsite = WebsiteService.getWebsites(OrganizationService, OrganizationID) /> 
59    <#assign OrganizationAdresses = OrganizationDta.getAddresses() /> 
60    <#assign userPrimaryKeys = OrganizationLocalService.getUserPrimaryKeys(OrganizationID)![] /> 
61    <#assign OrganizationName = OrganizationDta.getGroup().getName(locale) /> 
62 
63    <#if OrganizationDta.getExpandoBridge().getAttribute("Sigla")?has_content> 
64      <#assign OrganizationSigla = OrganizationDta.getExpandoBridge().getAttribute("Sigla") /> 
65      <#assign OrganizationName = OrganizationSigla /> 
66    </#if> 
67  </#if> 
68</#if> 
69 
70<#if descriptionTitle.getData()??> 
71  <h6 class="text-azul-escuro h6 c-mt-40">${descriptionTitle.getData()}</h6> 
72</#if> 
73 
74<#if (description.getData())?? > 
75  <div class="mt-4 c-ml-md-90 c-mr-md-90 text-justify">${description.getData()}</div> 
76</#if> 
77 
78<div class="c-mt-40"> 
79  <#if sectionTitle.getData() != ""> 
80    <h6 class="text-azul-escuro h6 mb-4">${sectionTitle.getData()}</h6> 
81  <#elseif (OrganizationDta)?? && (OrganizationPhone?has_content || OrganizationAdresses?has_content || OrganizationEmailAddresses?has_content || OrganizationWebsite?has_content)> 
82    <h6 class="text-azul-escuro h6 mb-4">Fale com ${OrganizationSigla?has_content?then(OrganizationSigla, OrganizationDta.name)}</h6> 
83  </#if> 
84 
85  <#if subsection.subsectionTitle.getData()?has_content> 
86    <#assign listDta = subsection.getSiblings() /> 
87 
88    <#list listDta as subsec> 
89      <#assign infos = subsec.subsectionContent.getSiblings() /> 
90 
91      <div class="c-ml-md-90 c-mr-md-90 ml-xs-5 mr-xs-5"> 
92        <#if (subsec.subsectionTitle.getData() != "")> 
93          <div class="mt-3 bold">${subsec.subsectionTitle.getData()}</div> 
94        </#if> 
95 
96        <#list infos as info> 
97          <div class="d-flex align-items-center"> 
98            <div class="icon-text-esverdeado">${info.icon.getData()}</div> 
99            <span class="text-icon">${info.iconText.getData()}</span> 
100          </div> 
101        </#list> 
102      </div> 
103    </#list> 
104  <#elseif OrganizationDta?has_content> 
105    <div class="c-ml-md-90 c-mr-md-90 ml-xs-5 mr-xs-5"> 
106      <#list OrganizationPhone as phone> 
107        <div class="d-flex align-items-center"> 
108          <div class="icon-text-esverdeado"> 
109            <i class="${(phone.typeId != 12011)?then('las la-phone', 'lab la-whatsapp')}"></i> 
110          </div> 
111          <span class="text-icon">${phone.number}</span> 
112        </div> 
113      </#list> 
114 
115      <#if (OrganizationAdresses)??> 
116        <#list OrganizationAdresses as address> 
117          <div class="d-flex align-items-center"> 
118            <div class="icon-text-esverdeado"> 
119              <i class="las la-map-marked-alt"></i> 
120            </div> 
121 
122            <span class="text-icon"> 
123              <#if address.street1?has_content> 
124                ${address.street1} 
125              </#if> 
126              <#if address.street2?has_content> 
127                - ${address.street2} 
128              </#if> 
129              <#if address.street3?has_content> 
130                - ${address.street3} 
131              </#if> 
132            </span> 
133          </div> 
134        </#list> 
135      </#if> 
136 
137      <#if (OrganizationEmailAddresses)??> 
138        <#list OrganizationEmailAddresses as email> 
139          <div class="d-flex align-items-center"> 
140            <div class="icon-text-esverdeado"> 
141              <i class="las la-at"></i> 
142            </div> 
143            <span class="text-icon">${email.address}</span> 
144          </div> 
145        </#list> 
146      </#if> 
147 
148      <#if (OrganizationWebsite)??> 
149        <#list OrganizationWebsite as webSite> 
150          <div class="d-flex align-items-center"> 
151            <div class="icon-text-esverdeado"> 
152              <i class="las la-external-link-alt"></i> 
153            </div> 
154            <span class="text-icon">${webSite.url}</span> 
155          </div> 
156        </#list> 
157      </#if> 
158    </div> 
159  </#if> 
160</div> 
161 
162<#if (othersContent.additionalSectionTitle.getData())??> 
163  <div class="c-mt-32 bold"> 
164    <h6 class="text-azul-escuro h6">${othersContent.additionalSectionTitle.getData()}</h6> 
165  </div> 
166</#if> 
167 
168<#if (othersContent.additionalSectionText.getData())??> 
169  <div class="mt-3 c-ml-md-90 c-mr-md-90 c-ml-xs-32 c-mr-xs-32 text-justify">${othersContent.additionalSectionText.getData()}</div> 
170</#if> 
171 
172<#if userPrimaryKeys?has_content> 
173  <#list userPrimaryKeys as userId> 
174    <#assign user = UserLocalService.getUser(getterUtil.getLong(userId)) /> 
175    <#if user.isActive() > 
176      <#if user.getExpandoBridge().getAttribute("cargo")?has_content> 
177        <#if !chefia?seq_contains(user.getExpandoBridge().getAttribute("cargo")?trim)> 
178          <#assign team = team + [user] /> 
179        <#else> 
180          <#assign usuarios_chefia = usuarios_chefia + [user] /> 
181        </#if> 
182      <#else> 
183        <#assign team = team + [user] /> 
184      </#if> 
185    </#if> 
186  </#list> 
187</#if> 
188 
189<#if usuarios_chefia?has_content> 
190  <div class="c-mt-80"> 
191    <h2 class="text-azul-escuro font-weight-bold text-center w-100 border-bottom border-w-2">Chefia</h2> 
192  </div> 
193 
194  <div class="row justify-content-center portlet-contatos-resultados-container"> 
195  <#list usuarios_chefia as user> 
196    <#if user.getExpandoBridge().getAttribute("cargo")?has_content> 
197      <#assign jobtitle = user.getExpandoBridge().getAttribute("cargo") /> 
198    <#else> 
199      <#assign jobtitle = "Sem cargo" /> 
200    </#if> 
201 
202    <div class="col-md-3 mb-3" data-screen-name="${user.getScreenName()}"> 
203      <div class="card m-0 h-100"> 
204        <div class="card-header"> 
205          <div class="position-user-card"> 
206            <img alt="thumbnail" class="mr-2 rounded-circle sticker sticker-primary rounded float-left img-fluid profile-pic" src="${user.getPortraitURL(themeDisplay)}"  width="32" height="32" style="object-fit:cover" /> 
207 
208            <${user.getDisplayURL(themeDisplay)?has_content?then('a', 'span')} 
209            ${user.getDisplayURL(themeDisplay)?has_content?then('href="${user.getDisplayURL(themeDisplay)}"', '')} 
210            data-senna-off="true" 
211            className="py-2" 
212            target="_blank" 
213
214            <p><b>${user.getExpandoBridge().getAttribute("Nome Social")?has_content?then('${user.getExpandoBridge().getAttribute("Nome Social")}','${user.getFullName()}')}</b></p> 
215          </${user.getDisplayURL(themeDisplay)?has_content?then('a', 'span')}> 
216        </div> 
217      </div> 
218 
219      <div class="card-body"> 
220        <div class="position-info-cards"> 
221          <ul class="info"> 
222            <li class="cargo">${jobtitle}</li> 
223 
224            <li class="unidade"> 
225              <i class="las la-id-badge"></i> ${OrganizationName} 
226            </li> 
227 
228            <#if user.getPhones()?has_content> 
229              <#list user.getPhones() as phone> 
230                <li class="email"> 
231                  <a class="text-secondary" href="tel:${phone.getNumber()}"> 
232                    <i class="las la-phone-volume"></i> ${phone.getNumber()} 
233                  </a> 
234                </li> 
235              </#list> 
236            </#if> 
237 
238            <li class="email"> 
239              <a class="text-secondary" href="mailto:${user.emailAddress}"> 
240                <i class="las la-at"></i> ${user.emailAddress} 
241              </a> 
242            </li> 
243 
244            <#if user.getEmailAddresses()?has_content> 
245              <#list user.getEmailAddresses() as email> 
246                <li class="email"> 
247                  <a class="text-secondary" href="mailto:${email.getAddress()}"> 
248                    <i class="las la-at"></i> ${email.getAddress()} 
249                  </a> 
250                </li> 
251              </#list> 
252            </#if> 
253          </ul> 
254        </div> 
255      </div> 
256    </div> 
257    </div> 
258  </#list> 
259  </div> 
260</#if> 
261 
262<#assign sortedTeam = [] /> 
263 
264<#if team?has_content> 
265  <#list team as user> 
266    <#assign sortedTeam = sortedTeam + [{ "user": user, "name": user.getFullName()?lower_case }]> 
267  </#list> 
268</#if> 
269 
270<#assign sortedTeam = sortedTeam?sort_by("name")> 
271 
272<#if sortedTeam?has_content> 
273  <div class="panel panel-secondary mt-5 border-0" role="tablist"> 
274    <button 
275            aria-controls="panelWithCustomTitle" 
276            aria-expanded="false" 
277            class="btn btn-unstyled panel-header panel-header-link collapse-icon collapse-icon-middle bg-transparent collapsed border-0" 
278            data-target="#collapsePanelWithCustomTitle" 
279            data-toggle="collapse" 
280            role="tab" 
281
282      <h5 class="font-weight-bold m-0">Equipe</h5> 
283      <span class="collapse-icon-closed text-cinza-claro-4"> 
284        <i class="las la-angle-right"></i> 
285      </span> 
286      <span class="collapse-icon-open text-cinza-claro-4"> 
287        <i class="las la-angle-down"></i> 
288      </span> 
289    </button> 
290 
291    <div 
292            class="panel-collapse collapse" 
293            id="collapsePanelWithCustomTitle" 
294            role="tabpanel" 
295
296      <div class="list-group m-0"> 
297          <#list sortedTeam as sortedItem> 
298          <#if sortedItem.user.getExpandoBridge().getAttribute("cargo")?has_content> 
299            <#assign jobtitle = sortedItem.user.getExpandoBridge().getAttribute("cargo") /> 
300          <#else> 
301            <#assign jobtitle = "Sem cargo" /> 
302          </#if> 
303 
304          <${sortedItem.user.getDisplayURL(themeDisplay)?has_content?then('a', 'span')} 
305          ${sortedItem.user.getDisplayURL(themeDisplay)?has_content?then('href="${sortedItem.user.getDisplayURL(themeDisplay)}"', '')} 
306          class="list-group-item list-group-item-flex text-secondary border-0 px-0 py-2 ${sortedItem.user.getDisplayURL(themeDisplay)?has_content?then('', 'text-decoration-none')}" 
307          data-job-title="${jobtitle?trim}" 
308          data-senna-off="true" 
309
310          <div class="autofit-col p-0"> 
311            <div class="sticker sticker-secondary rounded-circle"> 
312                  <span class="inline-item"> 
313                    <img alt="thumbnail" class="rounded-circle" src="${sortedItem.user.getPortraitURL(themeDisplay)}" width="32" height="32" style="object-fit:cover" /> 
314                  </span> 
315            </div> 
316          </div> 
317          <div class="autofit-col autofit-col-expand"> 
318            <div class="list-group-title font-weight-light">${sortedItem.user.getExpandoBridge().getAttribute("Nome Social")?has_content?then('${sortedItem.user.getExpandoBridge().getAttribute("Nome Social")}','${sortedItem.user.getFullName()}')} | ${OrganizationName}</div> 
319          </div> 
320        </${sortedItem.user.getDisplayURL(themeDisplay)?has_content?then('a', 'span')}> 
321        </#list> 
322      </div> 
323    </div> 
324  </div> 
325</#if> 

Formulário