001
014
015 package com.liferay.portlet.messageboards.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
023 public class MBThreadFinderUtil {
024 public static int countByG_C_S(long groupId, long categoryId, int status)
025 throws com.liferay.portal.kernel.exception.SystemException {
026 return getFinder().countByG_C_S(groupId, categoryId, status);
027 }
028
029 public static int countByS_G_U_C_S(long groupId, long userId,
030 long[] categoryIds, int status)
031 throws com.liferay.portal.kernel.exception.SystemException {
032 return getFinder().countByS_G_U_C_S(groupId, userId, categoryIds, status);
033 }
034
035 public static int filterCountByG_C(long groupId, long categoryId)
036 throws com.liferay.portal.kernel.exception.SystemException {
037 return getFinder().filterCountByG_C(groupId, categoryId);
038 }
039
040 public static int filterCountByG_C_S(long groupId, long categoryId,
041 int status) throws com.liferay.portal.kernel.exception.SystemException {
042 return getFinder().filterCountByG_C_S(groupId, categoryId, status);
043 }
044
045 public static int filterCountByS_G_U_C_S(long groupId, long userId,
046 long[] categoryIds, int status)
047 throws com.liferay.portal.kernel.exception.SystemException {
048 return getFinder()
049 .filterCountByS_G_U_C_S(groupId, userId, categoryIds, status);
050 }
051
052 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C(
053 long groupId, long categoryId, int start, int end)
054 throws com.liferay.portal.kernel.exception.SystemException {
055 return getFinder().filterFindByG_C(groupId, categoryId, start, end);
056 }
057
058 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByG_C_S(
059 long groupId, long categoryId, int status, int start, int end)
060 throws com.liferay.portal.kernel.exception.SystemException {
061 return getFinder()
062 .filterFindByG_C_S(groupId, categoryId, status, start, end);
063 }
064
065 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> filterFindByS_G_U_C_S(
066 long groupId, long userId, long[] categoryIds, int status, int start,
067 int end) throws com.liferay.portal.kernel.exception.SystemException {
068 return getFinder()
069 .filterFindByS_G_U_C_S(groupId, userId, categoryIds, status,
070 start, end);
071 }
072
073 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByG_C_S(
074 long groupId, long categoryId, int status, int start, int end)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getFinder().findByG_C_S(groupId, categoryId, status, start, end);
077 }
078
079 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> findByS_G_U_C_S(
080 long groupId, long userId, long[] categoryIds, int status, int start,
081 int end) throws com.liferay.portal.kernel.exception.SystemException {
082 return getFinder()
083 .findByS_G_U_C_S(groupId, userId, categoryIds, status,
084 start, end);
085 }
086
087 public static MBThreadFinder getFinder() {
088 if (_finder == null) {
089 _finder = (MBThreadFinder)PortalBeanLocatorUtil.locate(MBThreadFinder.class.getName());
090
091 ReferenceRegistry.registerReference(MBThreadFinderUtil.class,
092 "_finder");
093 }
094
095 return _finder;
096 }
097
098 public void setFinder(MBThreadFinder finder) {
099 _finder = finder;
100
101 ReferenceRegistry.registerReference(MBThreadFinderUtil.class, "_finder");
102 }
103
104 private static MBThreadFinder _finder;
105 }