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 MBMessageFinderUtil {
024 public static int countByC_T(java.util.Date createDate, long threadId)
025 throws com.liferay.portal.kernel.exception.SystemException {
026 return getFinder().countByC_T(createDate, threadId);
027 }
028
029 public static int countByG_U_C_S(long groupId, long userId,
030 long[] categoryIds, int status)
031 throws com.liferay.portal.kernel.exception.SystemException {
032 return getFinder().countByG_U_C_S(groupId, userId, categoryIds, status);
033 }
034
035 public static int countByG_U_C_A_S(long groupId, long userId,
036 long[] categoryIds, boolean anonymous, int status)
037 throws com.liferay.portal.kernel.exception.SystemException {
038 return getFinder()
039 .countByG_U_C_A_S(groupId, userId, categoryIds, anonymous,
040 status);
041 }
042
043 public static int filterCountByG_U_C_S(long groupId, long userId,
044 long[] categoryIds, int status)
045 throws com.liferay.portal.kernel.exception.SystemException {
046 return getFinder()
047 .filterCountByG_U_C_S(groupId, userId, categoryIds, status);
048 }
049
050 public static int filterCountByG_U_MD_C_S(long groupId, long userId,
051 java.util.Date modifiedDate, long[] categoryIds, int status)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 return getFinder()
054 .filterCountByG_U_MD_C_S(groupId, userId, modifiedDate,
055 categoryIds, status);
056 }
057
058 public static int filterCountByG_U_C_A_S(long groupId, long userId,
059 long[] categoryIds, boolean anonymous, int status)
060 throws com.liferay.portal.kernel.exception.SystemException {
061 return getFinder()
062 .filterCountByG_U_C_A_S(groupId, userId, categoryIds,
063 anonymous, status);
064 }
065
066 public static java.util.List<java.lang.Long> filterFindByG_U_C_S(
067 long groupId, long userId, long[] categoryIds, int status, int start,
068 int end) throws com.liferay.portal.kernel.exception.SystemException {
069 return getFinder()
070 .filterFindByG_U_C_S(groupId, userId, categoryIds, status,
071 start, end);
072 }
073
074 public static java.util.List<java.lang.Long> filterFindByG_U_MD_C_S(
075 long groupId, long userId, java.util.Date modifiedDate,
076 long[] categoryIds, int status, int start, int end)
077 throws com.liferay.portal.kernel.exception.SystemException {
078 return getFinder()
079 .filterFindByG_U_MD_C_S(groupId, userId, modifiedDate,
080 categoryIds, status, start, end);
081 }
082
083 public static java.util.List<java.lang.Long> filterFindByG_U_C_A_S(
084 long groupId, long userId, long[] categoryIds, boolean anonymous,
085 int status, int start, int end)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 return getFinder()
088 .filterFindByG_U_C_A_S(groupId, userId, categoryIds,
089 anonymous, status, start, end);
090 }
091
092 public static java.util.List<com.liferay.portlet.messageboards.model.MBMessage> findByNoAssets()
093 throws com.liferay.portal.kernel.exception.SystemException {
094 return getFinder().findByNoAssets();
095 }
096
097 public static java.util.List<java.lang.Long> findByG_U_C_S(long groupId,
098 long userId, long[] categoryIds, int status, int start, int end)
099 throws com.liferay.portal.kernel.exception.SystemException {
100 return getFinder()
101 .findByG_U_C_S(groupId, userId, categoryIds, status, start,
102 end);
103 }
104
105 public static java.util.List<java.lang.Long> findByG_U_C_A_S(long groupId,
106 long userId, long[] categoryIds, boolean anonymous, int status,
107 int start, int end)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getFinder()
110 .findByG_U_C_A_S(groupId, userId, categoryIds, anonymous,
111 status, start, end);
112 }
113
114 public static MBMessageFinder getFinder() {
115 if (_finder == null) {
116 _finder = (MBMessageFinder)PortalBeanLocatorUtil.locate(MBMessageFinder.class.getName());
117
118 ReferenceRegistry.registerReference(MBMessageFinderUtil.class,
119 "_finder");
120 }
121
122 return _finder;
123 }
124
125 public void setFinder(MBMessageFinder finder) {
126 _finder = finder;
127
128 ReferenceRegistry.registerReference(MBMessageFinderUtil.class, "_finder");
129 }
130
131 private static MBMessageFinder _finder;
132 }