/** * Adds the groups to the role. * * @param roleId the primary key of the role * @param groupIds the primary keys of the groups * @throws PortalException if a portal exception occurred */ @Override public void addRoleGroups(long roleId, long[] groupIds) throws com.liferay.portal.kernel.exception.PortalException { _groupService.addRoleGroups(roleId, groupIds); }
/** * Adds the groups to the role. * * @param roleId the primary key of the role * @param groupIds the primary keys of the groups * @throws PortalException if a portal exception occurred */ public static void addRoleGroups(long roleId, long[] groupIds) throws com.liferay.portal.kernel.exception.PortalException { getService().addRoleGroups(roleId, groupIds); }