001
014
015 package com.liferay.message.boards.kernel.service;
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
036 @ProviderType
037 public class MBThreadServiceUtil {
038
043 public static com.liferay.message.boards.kernel.model.MBThread moveThread(
044 long categoryId, long threadId)
045 throws com.liferay.portal.kernel.exception.PortalException {
046 return getService().moveThread(categoryId, threadId);
047 }
048
049 public static com.liferay.message.boards.kernel.model.MBThread moveThreadFromTrash(
050 long categoryId, long threadId)
051 throws com.liferay.portal.kernel.exception.PortalException {
052 return getService().moveThreadFromTrash(categoryId, threadId);
053 }
054
055 public static com.liferay.message.boards.kernel.model.MBThread moveThreadToTrash(
056 long threadId)
057 throws com.liferay.portal.kernel.exception.PortalException {
058 return getService().moveThreadToTrash(threadId);
059 }
060
061 public static com.liferay.message.boards.kernel.model.MBThread splitThread(
062 long messageId, java.lang.String subject,
063 com.liferay.portal.kernel.service.ServiceContext serviceContext)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 return getService().splitThread(messageId, subject, serviceContext);
066 }
067
068 public static com.liferay.portal.kernel.lock.Lock lockThread(long threadId)
069 throws com.liferay.portal.kernel.exception.PortalException {
070 return getService().lockThread(threadId);
071 }
072
073 public static com.liferay.portal.kernel.search.Hits search(long groupId,
074 long creatorUserId, int status, int start, int end)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 return getService().search(groupId, creatorUserId, status, start, end);
077 }
078
079 public static com.liferay.portal.kernel.search.Hits search(long groupId,
080 long creatorUserId, long startDate, long endDate, int status,
081 int start, int end)
082 throws com.liferay.portal.kernel.exception.PortalException {
083 return getService()
084 .search(groupId, creatorUserId, startDate, endDate, status,
085 start, end);
086 }
087
088 public static int getGroupThreadsCount(long groupId, long userId, int status) {
089 return getService().getGroupThreadsCount(groupId, userId, status);
090 }
091
092 public static int getGroupThreadsCount(long groupId, long userId,
093 int status, boolean subscribed) {
094 return getService()
095 .getGroupThreadsCount(groupId, userId, status, subscribed);
096 }
097
098 public static int getGroupThreadsCount(long groupId, long userId,
099 int status, boolean subscribed, boolean includeAnonymous) {
100 return getService()
101 .getGroupThreadsCount(groupId, userId, status, subscribed,
102 includeAnonymous);
103 }
104
105 public static int getGroupThreadsCount(long groupId, long userId,
106 java.util.Date modifiedDate, int status) {
107 return getService()
108 .getGroupThreadsCount(groupId, userId, modifiedDate, status);
109 }
110
111 public static int getThreadsCount(long groupId, long categoryId, int status) {
112 return getService().getThreadsCount(groupId, categoryId, status);
113 }
114
115
120 public static java.lang.String getOSGiServiceIdentifier() {
121 return getService().getOSGiServiceIdentifier();
122 }
123
124 public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(
125 long groupId, long userId, int status, boolean subscribed,
126 boolean includeAnonymous, int start, int end)
127 throws com.liferay.portal.kernel.exception.PortalException {
128 return getService()
129 .getGroupThreads(groupId, userId, status, subscribed,
130 includeAnonymous, start, end);
131 }
132
133 public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(
134 long groupId, long userId, int status, boolean subscribed, int start,
135 int end) throws com.liferay.portal.kernel.exception.PortalException {
136 return getService()
137 .getGroupThreads(groupId, userId, status, subscribed, start,
138 end);
139 }
140
141 public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(
142 long groupId, long userId, int status, int start, int end)
143 throws com.liferay.portal.kernel.exception.PortalException {
144 return getService().getGroupThreads(groupId, userId, status, start, end);
145 }
146
147 public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getGroupThreads(
148 long groupId, long userId, java.util.Date modifiedDate, int status,
149 int start, int end)
150 throws com.liferay.portal.kernel.exception.PortalException {
151 return getService()
152 .getGroupThreads(groupId, userId, modifiedDate, status,
153 start, end);
154 }
155
156 public static java.util.List<com.liferay.message.boards.kernel.model.MBThread> getThreads(
157 long groupId, long categoryId, int status, int start, int end) {
158 return getService().getThreads(groupId, categoryId, status, start, end);
159 }
160
161 public static void deleteThread(long threadId)
162 throws com.liferay.portal.kernel.exception.PortalException {
163 getService().deleteThread(threadId);
164 }
165
166 public static void restoreThreadFromTrash(long threadId)
167 throws com.liferay.portal.kernel.exception.PortalException {
168 getService().restoreThreadFromTrash(threadId);
169 }
170
171 public static void unlockThread(long threadId)
172 throws com.liferay.portal.kernel.exception.PortalException {
173 getService().unlockThread(threadId);
174 }
175
176 public static MBThreadService getService() {
177 if (_service == null) {
178 _service = (MBThreadService)PortalBeanLocatorUtil.locate(MBThreadService.class.getName());
179
180 ReferenceRegistry.registerReference(MBThreadServiceUtil.class,
181 "_service");
182 }
183
184 return _service;
185 }
186
187 private static MBThreadService _service;
188 }