/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.social.kernel.service.persistence; import aQute.bnd.annotation.ProviderType; import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; import com.liferay.portal.kernel.util.ReferenceRegistry; /** * @author Brian Wing Shun Chan * @generated */ @ProviderType public class SocialActivityFinderUtil { public static int countByGroupId(long groupId) { return getFinder().countByGroupId(groupId); } public static int countByGroupUsers(long groupId) { return getFinder().countByGroupUsers(groupId); } public static int countByOrganizationId(long organizationId) { return getFinder().countByOrganizationId(organizationId); } public static int countByOrganizationUsers(long organizationId) { return getFinder().countByOrganizationUsers(organizationId); } public static int countByRelation(long userId) { return getFinder().countByRelation(userId); } public static int countByRelationType(long userId, int type) { return getFinder().countByRelationType(userId, type); } public static int countByUserGroups(long userId) { return getFinder().countByUserGroups(userId); } public static int countByUserGroupsAndOrganizations(long userId) { return getFinder().countByUserGroupsAndOrganizations(userId); } public static int countByUserOrganizations(long userId) { return getFinder().countByUserOrganizations(userId); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByGroupId( long groupId, int start, int end) { return getFinder().findByGroupId(groupId, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByGroupUsers( long groupId, int start, int end) { return getFinder().findByGroupUsers(groupId, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByOrganizationId( long organizationId, int start, int end) { return getFinder().findByOrganizationId(organizationId, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByOrganizationUsers( long organizationId, int start, int end) { return getFinder().findByOrganizationUsers(organizationId, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByRelation( long userId, int start, int end) { return getFinder().findByRelation(userId, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByRelationType( long userId, int type, int start, int end) { return getFinder().findByRelationType(userId, type, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByUserGroups( long userId, int start, int end) { return getFinder().findByUserGroups(userId, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByUserGroupsAndOrganizations( long userId, int start, int end) { return getFinder().findByUserGroupsAndOrganizations(userId, start, end); } public static java.util.List<com.liferay.social.kernel.model.SocialActivity> findByUserOrganizations( long userId, int start, int end) { return getFinder().findByUserOrganizations(userId, start, end); } public static SocialActivityFinder getFinder() { if (_finder == null) { _finder = (SocialActivityFinder)PortalBeanLocatorUtil.locate(SocialActivityFinder.class.getName()); ReferenceRegistry.registerReference(SocialActivityFinderUtil.class, "_finder"); } return _finder; } public void setFinder(SocialActivityFinder finder) { _finder = finder; ReferenceRegistry.registerReference(SocialActivityFinderUtil.class, "_finder"); } private static SocialActivityFinder _finder; }