/** * Returns all the active or inactive groups associated with the company. * * @param companyId the primary key of the company * @param active whether to return only active groups or only inactive groups * @return the active or inactive groups */ @Override public java.util.List<com.liferay.portal.kernel.model.Group> getActiveGroups( long companyId, boolean active) { return _groupLocalService.getActiveGroups(companyId, active); }
/** * Returns the active or inactive groups associated with the company. * * <p> * Useful when paginating results. Returns a maximum of <code>end - * start</code> instances. <code>start</code> and <code>end</code> are not * primary keys, they are indexes in the result set. Thus, <code>0</code> * refers to the first result in the set. Setting both <code>start</code> * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full * result set. * </p> * * @param companyId the primary key of the company * @param active whether to return only active groups or only inactive groups * @param start the lower bound of the range of groups to return * @param end the upper bound of the range of groups to return (not inclusive) * @param obc the comparator to order the groups (optionally <code>null</code>) * @return the active or inactive groups */ @Override public java.util.List<com.liferay.portal.kernel.model.Group> getActiveGroups( long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> obc) { return _groupLocalService.getActiveGroups(companyId, active, start, end, obc); }
long companyId, boolean site, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> obc) { return _groupLocalService.getActiveGroups(companyId, site, active, start, end, obc);
/** * Returns all the active or inactive groups associated with the company. * * @param companyId the primary key of the company * @param active whether to return only active groups or only inactive groups * @return the active or inactive groups */ public static java.util.List<com.liferay.portal.kernel.model.Group> getActiveGroups( long companyId, boolean active) { return getService().getActiveGroups(companyId, active); }
/** * Returns the active or inactive groups associated with the company and, * optionally, the main site. * * <p> * Useful when paginating results. Returns a maximum of <code>end - * start</code> instances. <code>start</code> and <code>end</code> are not * primary keys, they are indexes in the result set. Thus, <code>0</code> * refers to the first result in the set. Setting both <code>start</code> * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full * result set. * </p> * * @param companyId the primary key of the company * @param site whether the group is associated with a main site * @param active whether to return only active groups or only inactive groups * @param start the lower bound of the range of groups to return * @param end the upper bound of the range of groups to return (not inclusive) * @param obc the comparator to order the groups (optionally <code>null</code>) * @return the active or inactive groups */ public static java.util.List<com.liferay.portal.kernel.model.Group> getActiveGroups( long companyId, boolean site, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> obc) { return getService() .getActiveGroups(companyId, site, active, start, end, obc); }
/** * Returns the active or inactive groups associated with the company. * * <p> * Useful when paginating results. Returns a maximum of <code>end - * start</code> instances. <code>start</code> and <code>end</code> are not * primary keys, they are indexes in the result set. Thus, <code>0</code> * refers to the first result in the set. Setting both <code>start</code> * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full * result set. * </p> * * @param companyId the primary key of the company * @param active whether to return only active groups or only inactive groups * @param start the lower bound of the range of groups to return * @param end the upper bound of the range of groups to return (not inclusive) * @param obc the comparator to order the groups (optionally <code>null</code>) * @return the active or inactive groups */ public static java.util.List<com.liferay.portal.kernel.model.Group> getActiveGroups( long companyId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> obc) { return getService().getActiveGroups(companyId, active, start, end, obc); }
private void _addInactiveGroupsBooleanFilter( BooleanFilter booleanFilter, SearchContext searchContext) { List<Group> inactiveGroups = groupLocalService.getActiveGroups( searchContext.getCompanyId(), false); if (ListUtil.isEmpty(inactiveGroups)) { return; } TermsFilter groupIdTermsFilter = new TermsFilter(Field.GROUP_ID); groupIdTermsFilter.addValues( ArrayUtil.toStringArray( ListUtil.toArray(inactiveGroups, Group.GROUP_ID_ACCESSOR))); booleanFilter.add(groupIdTermsFilter, BooleanClauseOccur.MUST_NOT); }