Personregister

Virhe tapahtui prosessoidessa esitysmallia.
Java method "com.sun.proxy.$Proxy863.getArticle(long, String)" threw an exception when invoked on com.sun.proxy.$Proxy863 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@699344ef"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign avustajaArticle = journalArti...  [in template "20154#20194#1150852" at line 186, column 13]
----
1<#-- 
2Web content templates are used to lay out the fields defined in a web 
3content structure. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
10<#assign groupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService") /> 
11<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
12<#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") /> 
13 
14<#assign currentArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
15<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
16<#assign osastoVocabularyId = "" /> 
17<#assign yksikkoVocabularyId = "" /> 
18<#assign tehtavatVocabularyId = "" /> 
19 
20<#assign globalGroupId = groupLocalService.fetchCompanyGroup(portalUtil.getDefaultCompanyId()).getGroupId() /> 
21 
22<#list assetVocabularyLocalService.getGroupVocabularies(globalGroupId) as vocabulary> 
23    <#switch vocabulary.getName()> 
24        <#case "Osasto"> 
25            <#assign osastoVocabularyId = vocabulary.getVocabularyId() /> 
26        <#break> 
27        <#case "Yksikkö"> 
28            <#assign yksikkoVocabularyId = vocabulary.getVocabularyId() /> 
29        <#break> 
30        <#case "Tehtävät"> 
31            <#assign tehtavatVocabularyId = vocabulary.getVocabularyId() /> 
32        <#break>         
33    </#switch> 
34</#list> 
35 
36 
37<#assign categories = "" /> 
38<#assign yksikko = "" /> 
39<#assign osasto = "" /> 
40 
41<#assign tempEntry = assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey ) /> 
42<#if tempEntry?has_content> 
43    <#assign categories = tempEntry.getCategories() /> 
44    <#if categories?has_content> 
45        <#list categories as category> 
46            <#if category.getVocabularyId() == osastoVocabularyId> 
47                <#assign osasto = category.getTitle(locale) /> 
48            </#if> 
49            <#if category.getVocabularyId() == yksikkoVocabularyId> 
50                <#assign yksikko = category.getTitle(locale) /> 
51            </#if>             
52        </#list> 
53    </#if> 
54</#if> 
55 
56<#assign langPrefix = "" /> 
57<#assign t = {}  /> 
58 
59<#switch locale> 
60    <#case "en_US"> 
61        <#assign langPrefix = "/en" /> 
62        <#assign t = { 
63            "expertises" : "Expertises", 
64            "phone" : "Phone", 
65            "mobile" : "Mobile", 
66            "fax" : "Fax", 
67            "email" : "Email", 
68            "emailhint" : "firstname.lastname@lvm.fi", 
69            "backlink" : "back", 
70             
71            "by_name" : "By name", 
72            "by_expertises" : "By expertise", 
73            "by_expertises_link", themeDisplay.getLayout().getFriendlyURL()  + "/by-expertises", 
74            "by_departments_and_units" : "By departments and units", 
75            "by_departments_and_units_link" : langPrefix + "/departments-units"      
76        }  
77        />         
78        <#break> 
79    <#case "sv_SE"> 
80        <#assign langPrefix = "/sv" /> 
81        <#assign t = { 
82            "expertises" : "Expertises", 
83            "phone" : "Telefon", 
84            "mobile" : "Mobiltelefon", 
85            "fax" : "Fax", 
86            "email" : "E-post", 
87            "emailhint" : "fornamn.efternamn@lvm.fi", 
88            "backlink" : "tillbaka", 
89             
90            "by_name" : "Enligt namn", 
91            "by_expertises" : "Enligt arbeten", 
92            "by_expertises_link", themeDisplay.getLayout().getFriendlyURL()  + "/enligt-arbeten", 
93            "by_departments_and_units" : "Enligt avdelning och enhet", 
94            "by_departments_and_units_link" : langPrefix + "/avdelning-och-enhet"     
95        }  
96        />         
97        <#break>         
98    <#default> 
99        <#assign t = { 
100            "fax" : "Faksi", 
101            "phone" : "Puhelin", 
102            "mobile" : "Matkapuhelin", 
103            "expertises" : "Teht&auml;v&auml;t", 
104            "email" : "S&auml;hk&ouml;posti", 
105            "emailhint" : "etunimi.sukunimi@lvm.fi", 
106            "backlink" : "takaisin", 
107               
108            "by_name" : "Nimen mukaan", 
109            "by_expertises" : "Tehtävittäin", 
110            "by_expertises_link", themeDisplay.getLayout().getFriendlyURL()  + "/tehtavittain", 
111            "by_departments_and_units" : "Osastoittain ja yksiköittäin", 
112            "by_departments_and_units_link" : "/osastoittain-ja-yksikoittain" 
113        }  
114        />  
115</#switch> 
116 
117<#assign pageURL =  langPrefix + themeDisplay.getLayout().getFriendlyURL() /> 
118 
119<ul class="nav nav-tabs" role="tablist" >  
120   <li role="tab" class="active" aria-selected="true"> 
121        <a href="${pageURL}"><span>${t.by_name}</span></a> 
122    </li>  
123    <li role="tab"> 
124        <a href="${t.by_expertises_link}"><span>${t.by_expertises}</span></a> 
125    </li> 
126    <li role="tab"> 
127        <a href="${t.by_departments_and_units_link}"><span>${t.by_departments_and_units}</span></a>  
128    </li> 
129</ul> 
130 
131<#if .vars['reserved-article-small-image-url']?has_content && .vars['reserved-article-small-image-url'].data?has_content> 
132    <div class="photo" style="float: right;">  
133      <img itemprop="image" src="${.vars['reserved-article-small-image-url'].data}" alt="${Sukunimi.getData()} ${Etunimi.getData()}" />  
134    </div> 
135</#if> 
136 
137 
138<div class="information"> 
139    <h2 itemprop="name">${Sukunimi.getData()} ${Etunimi.getData()}</h2> 
140    <h4 itemprop="jobTitle">${Titteli.getData()}</h4> 
141    <div class="organization"> 
142     
143 
144        <#if yksikko?has_content> 
145            <h4 class="unit">${yksikko}</h4> 
146        </#if> 
147 
148        <#if osasto?has_content> 
149            <#if yksikko?has_content> 
150                <#if yksikko != osasto> 
151                    <h4 class="department">${osasto}</h4> 
152                </#if> 
153            <#else> 
154                <h4 class="department">${osasto}</h4> 
155            </#if> 
156        </#if> 
157    </div> 
158     
159    <@printTehtavat categories /> 
160 
161         
162    <div class="contact"> 
163        <#if Puhelin.getData()?has_content> 
164        <div class="phone"> 
165            <h4>${t.phone}</h4> 
166            <span itemprop="telephone">${Puhelin.getData()}</span> 
167        </div> 
168        </#if> 
169 
170        <#if Matkapuhelin.getData()?has_content> 
171        <div class="phone"> 
172        <h4>${t.mobile}</h4> 
173        <span itemprop="telephone">${Matkapuhelin.getData()}</span> 
174        </div> 
175        </#if> 
176 
177        <div class="email"> 
178            <h4>${t.email}</h4> 
179            ${Sähköposti.getData()} 
180        </div> 
181    </div> 
182     
183    <#if Avustajat.getData()?has_content> 
184        <div class="subordinate information"> 
185        <#list Avustajat.getData()?split(",") as avustajaArticleId> 
186            <#assign avustajaArticle = journalArticleLocalService.getArticle(groupId, avustajaArticleId) /> 
187            <@printAssistentti avustajaArticle /> 
188        </#list> 
189        </div> 
190    </#if> 
191 
192 
193    <br /> 
194    <a href="#" onclick="window.history.back();return false;">${t.backlink}</a> 
195 
196</div> 
197 
198<#macro printTehtavat categories> 
199    <#local tehtavatLi = "" /> 
200    <#list categories as category> 
201        <#if category.getVocabularyId() == tehtavatVocabularyId> 
202            <#local tehtavatLi> 
203${tehtavatLi}                 
204                <li>${category.getTitle(locale)}</li> 
205            </#local> 
206        </#if> 
207    </#list> 
208     
209    <#if tehtavatLi?has_content> 
210    <h4>${t.expertises}</h4> 
211    <ul> 
212    ${tehtavatLi} 
213    </ul> 
214    </#if> 
215</#macro> 
216 
217<#macro printAssistentti article> 
218        <#local docXml = saxReaderUtil.read(article.getContent()) /> 
219        <#local etunimi = docXml.getRootElement().selectSingleNode("//dynamic-element[@name='Etunimi']/dynamic-content") /> 
220        <#local sukunimi = docXml.getRootElement().selectSingleNode("//dynamic-element[@name='Sukunimi']/dynamic-content") /> 
221        <#local email = docXml.getRootElement().selectSingleNode("//dynamic-element[@name='Sähköposti']/dynamic-content") /> 
222        <#local titteli = docXml.getRootElement().selectSingleNode("//dynamic-element[@name='Titteli']/dynamic-content[@language-id=\""+locale.toString()+"\"]") /> 
223        <#local puhelin = docXml.getRootElement().selectSingleNode("//dynamic-element[@name='Puhelin']/dynamic-content") /> 
224        <#local matkapuhelin = docXml.getRootElement().selectSingleNode("//dynamic-element[@name='Matkapuhelin']/dynamic-content") /> 
225         
226        <#local assetEntry = assetEntryLocalService.fetchEntry("com.liferay.journal.model.JournalArticle", article.getResourcePrimKey() ) /> 
227        <#if assetEntry?has_content> 
228            <#local assistentsCategories = assetEntry.getCategories() > 
229        </#if> 
230         
231        <h2>${sukunimi.getText()} ${etunimi.getText()}</h2> 
232        <#if titteli?has_content> 
233            <h4>${titteli.getText()}</h4> 
234        </#if> 
235        <#if assistentsCategories?has_content> 
236            <@printTehtavat assistentsCategories /> 
237        </#if> 
238        <#if puhelin?has_content> 
239             
240            <div class="phone"> 
241                <h4>${t.phone}</h4> 
242                <span>${puhelin.getText()}</span> 
243            </div>             
244        </#if> 
245         
246        <#if matkapuhelin?has_content> 
247            <div class="phone"> 
248                <h4>${t.mobile}</h4> 
249                <span>${matkapuhelin.getText()}</span> 
250            </div>                  
251        </#if>   
252         
253        <div class="email"> 
254            <h4>${t.email}</h4> 
255            ${email.getText()} 
256        </div>         
257         
258</#macro> 

Ministeriets kontaktinformation

Växel: 0295 16001
Postadress: PB 31, 00023 Statsrådet
Besöksadress: Södra Esplanaden 4, Helsingfors

Dataskydd

Dataskyddsombud Ronja Kava
tietosuojavastaava.lvm@gov.fi
lvm.fi/dataskydd

Personuppgiftsansvarig

Kommunikationsministeriet
​​​​​​​

Behandling av personuppgifter

Behandling av personuppgifter (på finska)

Statsrådets telefonkatalog

Statsrådets elektroniska telefonkatalog innehåller samtliga ministeriers telefon- och faxnummer.

Statsrådets telefonkatalog

Statens kontaktregister

Kontaktregistret innehåller statliga organisationers kontaktuppgifter lätt och smidigt på samma ställe.

Statens kontaktregister

Medborgarrådgivning

Vi guidar dig till den rätta tjänsten, vi hjälper med digital ärendehantering och vi besvarar allmänna frågor om de offentliga tjänsterna.

Medborgarrådgivning