List of usage examples for com.liferay.portal.kernel.service UserServiceUtil getUserById
public static com.liferay.portal.kernel.model.User getUserById(long userId) throws com.liferay.portal.kernel.exception.PortalException
From source file:com.liferay.users.admin.web.internal.search.OrganizationUserChecker.java
License:Open Source License
@Override protected String getRowCheckBox(HttpServletRequest request, boolean checked, boolean disabled, String name, String value, String checkBoxRowIds, String checkBoxAllRowIds, String checkBoxPostOnClick) { try {/*from ww w .ja v a 2s . c om*/ long organizationId = GetterUtil.getLong(value); OrganizationServiceUtil.getOrganization(organizationId); name += Organization.class.getSimpleName(); } catch (Exception e1) { if (e1 instanceof NoSuchOrganizationException) { try { long userId = GetterUtil.getLong(value); UserServiceUtil.getUserById(userId); name += User.class.getSimpleName(); } catch (Exception e2) { return StringPool.BLANK; } } } return super.getRowCheckBox(request, checked, disabled, name, value, checkBoxRowIds, checkBoxAllRowIds, checkBoxPostOnClick); }