001
014
015 package com.liferay.portlet.messageboards.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class MBThreadServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static void deleteThread(long threadId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 getService().deleteThread(threadId);
062 }
063
064 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
065 long groupId, long userId, java.util.Date modifiedDate, int status,
066 int start, int end)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return getService()
070 .getGroupThreads(groupId, userId, modifiedDate, status,
071 start, end);
072 }
073
074 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
075 long groupId, long userId, int status, boolean subscribed,
076 boolean includeAnonymous, int start, int end)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 return getService()
080 .getGroupThreads(groupId, userId, status, subscribed,
081 includeAnonymous, start, end);
082 }
083
084 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
085 long groupId, long userId, int status, boolean subscribed, int start,
086 int end)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getService()
090 .getGroupThreads(groupId, userId, status, subscribed, start,
091 end);
092 }
093
094 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
095 long groupId, long userId, int status, int start, int end)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return getService().getGroupThreads(groupId, userId, status, start, end);
099 }
100
101 public static int getGroupThreadsCount(long groupId, long userId,
102 java.util.Date modifiedDate, int status)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService()
105 .getGroupThreadsCount(groupId, userId, modifiedDate, status);
106 }
107
108 public static int getGroupThreadsCount(long groupId, long userId, int status)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().getGroupThreadsCount(groupId, userId, status);
111 }
112
113 public static int getGroupThreadsCount(long groupId, long userId,
114 int status, boolean subscribed)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getService()
117 .getGroupThreadsCount(groupId, userId, status, subscribed);
118 }
119
120 public static int getGroupThreadsCount(long groupId, long userId,
121 int status, boolean subscribed, boolean includeAnonymous)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getService()
124 .getGroupThreadsCount(groupId, userId, status, subscribed,
125 includeAnonymous);
126 }
127
128 public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
129 long groupId, long categoryId, int status, int start, int end)
130 throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().getThreads(groupId, categoryId, status, start, end);
132 }
133
134 public static int getThreadsCount(long groupId, long categoryId, int status)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getService().getThreadsCount(groupId, categoryId, status);
137 }
138
139 public static com.liferay.portal.model.Lock lockThread(long threadId)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 return getService().lockThread(threadId);
143 }
144
145 public static com.liferay.portlet.messageboards.model.MBThread moveThread(
146 long categoryId, long threadId)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 return getService().moveThread(categoryId, threadId);
150 }
151
152 public static com.liferay.portlet.messageboards.model.MBThread splitThread(
153 long messageId, java.lang.String subject,
154 com.liferay.portal.service.ServiceContext serviceContext)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 return getService().splitThread(messageId, subject, serviceContext);
158 }
159
160 public static void unlockThread(long threadId)
161 throws com.liferay.portal.kernel.exception.PortalException,
162 com.liferay.portal.kernel.exception.SystemException {
163 getService().unlockThread(threadId);
164 }
165
166 public static MBThreadService getService() {
167 if (_service == null) {
168 _service = (MBThreadService)PortalBeanLocatorUtil.locate(MBThreadService.class.getName());
169
170 ReferenceRegistry.registerReference(MBThreadServiceUtil.class,
171 "_service");
172 }
173
174 return _service;
175 }
176
177
180 public void setService(MBThreadService service) {
181 }
182
183 private static MBThreadService _service;
184 }