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