001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
021     * Provides the remote service utility for MBThread. This utility wraps
022     * {@link com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see MBThreadService
030     * @see com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
031     * @see com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl
032     * @generated
033     */
034    public class MBThreadServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static void deleteThread(long threadId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    getService().deleteThread(threadId);
063            }
064    
065            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
066                    long groupId, long userId, java.util.Date modifiedDate, int status,
067                    int start, int end)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return getService()
071                                       .getGroupThreads(groupId, userId, modifiedDate, status,
072                            start, end);
073            }
074    
075            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
076                    long groupId, long userId, int status, boolean subscribed,
077                    boolean includeAnonymous, int start, int end)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService()
081                                       .getGroupThreads(groupId, userId, status, subscribed,
082                            includeAnonymous, start, end);
083            }
084    
085            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
086                    long groupId, long userId, int status, boolean subscribed, int start,
087                    int end)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService()
091                                       .getGroupThreads(groupId, userId, status, subscribed, start,
092                            end);
093            }
094    
095            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
096                    long groupId, long userId, int status, int start, int end)
097                    throws com.liferay.portal.kernel.exception.PortalException,
098                            com.liferay.portal.kernel.exception.SystemException {
099                    return getService().getGroupThreads(groupId, userId, status, start, end);
100            }
101    
102            public static int getGroupThreadsCount(long groupId, long userId,
103                    java.util.Date modifiedDate, int status)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return getService()
106                                       .getGroupThreadsCount(groupId, userId, modifiedDate, status);
107            }
108    
109            public static int getGroupThreadsCount(long groupId, long userId, int status)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return getService().getGroupThreadsCount(groupId, userId, status);
112            }
113    
114            public static int getGroupThreadsCount(long groupId, long userId,
115                    int status, boolean subscribed)
116                    throws com.liferay.portal.kernel.exception.SystemException {
117                    return getService()
118                                       .getGroupThreadsCount(groupId, userId, status, subscribed);
119            }
120    
121            public static int getGroupThreadsCount(long groupId, long userId,
122                    int status, boolean subscribed, boolean includeAnonymous)
123                    throws com.liferay.portal.kernel.exception.SystemException {
124                    return getService()
125                                       .getGroupThreadsCount(groupId, userId, status, subscribed,
126                            includeAnonymous);
127            }
128    
129            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
130                    long groupId, long categoryId, int status, int start, int end)
131                    throws com.liferay.portal.kernel.exception.SystemException {
132                    return getService().getThreads(groupId, categoryId, status, start, end);
133            }
134    
135            public static int getThreadsCount(long groupId, long categoryId, int status)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return getService().getThreadsCount(groupId, categoryId, status);
138            }
139    
140            public static com.liferay.portal.model.Lock lockThread(long threadId)
141                    throws com.liferay.portal.kernel.exception.PortalException,
142                            com.liferay.portal.kernel.exception.SystemException {
143                    return getService().lockThread(threadId);
144            }
145    
146            public static com.liferay.portlet.messageboards.model.MBThread moveThread(
147                    long categoryId, long threadId)
148                    throws com.liferay.portal.kernel.exception.PortalException,
149                            com.liferay.portal.kernel.exception.SystemException {
150                    return getService().moveThread(categoryId, threadId);
151            }
152    
153            public static com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
154                    long categoryId, long threadId)
155                    throws com.liferay.portal.kernel.exception.PortalException,
156                            com.liferay.portal.kernel.exception.SystemException {
157                    return getService().moveThreadFromTrash(categoryId, threadId);
158            }
159    
160            public static com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
161                    long threadId)
162                    throws com.liferay.portal.kernel.exception.PortalException,
163                            com.liferay.portal.kernel.exception.SystemException {
164                    return getService().moveThreadToTrash(threadId);
165            }
166    
167            public static void restoreThreadFromTrash(long threadId)
168                    throws com.liferay.portal.kernel.exception.PortalException,
169                            com.liferay.portal.kernel.exception.SystemException {
170                    getService().restoreThreadFromTrash(threadId);
171            }
172    
173            public static com.liferay.portal.kernel.search.Hits search(long groupId,
174                    long creatorUserId, int status, int start, int end)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException {
177                    return getService().search(groupId, creatorUserId, status, start, end);
178            }
179    
180            public static com.liferay.portal.kernel.search.Hits search(long groupId,
181                    long creatorUserId, long startDate, long endDate, int status,
182                    int start, int end)
183                    throws com.liferay.portal.kernel.exception.PortalException,
184                            com.liferay.portal.kernel.exception.SystemException {
185                    return getService()
186                                       .search(groupId, creatorUserId, startDate, endDate, status,
187                            start, end);
188            }
189    
190            public static com.liferay.portlet.messageboards.model.MBThread splitThread(
191                    long messageId, java.lang.String subject,
192                    com.liferay.portal.service.ServiceContext serviceContext)
193                    throws com.liferay.portal.kernel.exception.PortalException,
194                            com.liferay.portal.kernel.exception.SystemException {
195                    return getService().splitThread(messageId, subject, serviceContext);
196            }
197    
198            public static void unlockThread(long threadId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    getService().unlockThread(threadId);
202            }
203    
204            public static MBThreadService getService() {
205                    if (_service == null) {
206                            _service = (MBThreadService)PortalBeanLocatorUtil.locate(MBThreadService.class.getName());
207    
208                            ReferenceRegistry.registerReference(MBThreadServiceUtil.class,
209                                    "_service");
210                    }
211    
212                    return _service;
213            }
214    
215            /**
216             * @deprecated As of 6.2.0
217             */
218            public void setService(MBThreadService service) {
219            }
220    
221            private static MBThreadService _service;
222    }