Last active
August 2, 2023 23:01
-
-
Save prince-neres/43da8e0804c101df25fdb2810a5bec35 to your computer and use it in GitHub Desktop.
Código freemarker para pegar atributo da expando bridge de usuário no liferay
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<#assign | |
userLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService") | |
userId = 0 | |
user = userLocalService.getUser(userId) | |
userPerfilType = user.getExpandoBridge().getAttribute("userPerfilType") | |
> | |
<p> | |
${userPerfilType} | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment