List of usage examples for com.liferay.portal.kernel.service GroupServiceUtil getGroup
public static com.liferay.portal.kernel.model.Group getGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException
From source file:com.liferay.site.admin.web.internal.display.context.SiteAdminDisplayContext.java
License:Open Source License
public Group getGroup() throws PortalException { long groupId = getGroupId(); if (groupId > 0) { _group = GroupServiceUtil.getGroup(groupId); }//ww w . jav a 2 s . c o m return _group; }
From source file:com.liferay.site.admin.web.internal.portlet.action.ActionUtil.java
License:Open Source License
public static List<Group> getGroups(ResourceRequest request) throws Exception { long[] groupIds = ParamUtil.getLongValues(request, "rowIds"); List<Group> groups = new ArrayList<>(); for (long groupId : groupIds) { Group group = GroupServiceUtil.getGroup(groupId); groups.add(group);//w w w. java2 s .c om } return groups; }