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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the remote service utility for MBThread. This utility wraps
024     * {@link com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on a remote server. Methods of this service are expected to have security
027     * checks based on the propagated JAAS credentials because this service can be
028     * accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see MBThreadService
032     * @see com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
033     * @see com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class MBThreadServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * 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.
042             */
043    
044            /**
045            * Returns the Spring bean ID for this bean.
046            *
047            * @return the Spring bean ID for this bean
048            */
049            public static java.lang.String getBeanIdentifier() {
050                    return getService().getBeanIdentifier();
051            }
052    
053            /**
054            * Sets the Spring bean ID for this bean.
055            *
056            * @param beanIdentifier the Spring bean ID for this bean
057            */
058            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059                    getService().setBeanIdentifier(beanIdentifier);
060            }
061    
062            public static void deleteThread(long threadId)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    getService().deleteThread(threadId);
066            }
067    
068            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
069                    long groupId, long userId, java.util.Date modifiedDate, int status,
070                    int start, int end)
071                    throws com.liferay.portal.kernel.exception.PortalException,
072                            com.liferay.portal.kernel.exception.SystemException {
073                    return getService()
074                                       .getGroupThreads(groupId, userId, modifiedDate, status,
075                            start, end);
076            }
077    
078            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
079                    long groupId, long userId, int status, boolean subscribed,
080                    boolean includeAnonymous, int start, int end)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return getService()
084                                       .getGroupThreads(groupId, userId, status, subscribed,
085                            includeAnonymous, start, end);
086            }
087    
088            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
089                    long groupId, long userId, int status, boolean subscribed, int start,
090                    int end)
091                    throws com.liferay.portal.kernel.exception.PortalException,
092                            com.liferay.portal.kernel.exception.SystemException {
093                    return getService()
094                                       .getGroupThreads(groupId, userId, status, subscribed, start,
095                            end);
096            }
097    
098            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
099                    long groupId, long userId, int status, int start, int end)
100                    throws com.liferay.portal.kernel.exception.PortalException,
101                            com.liferay.portal.kernel.exception.SystemException {
102                    return getService().getGroupThreads(groupId, userId, status, start, end);
103            }
104    
105            public static int getGroupThreadsCount(long groupId, long userId,
106                    java.util.Date modifiedDate, int status)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService()
109                                       .getGroupThreadsCount(groupId, userId, modifiedDate, status);
110            }
111    
112            public static int getGroupThreadsCount(long groupId, long userId, int status)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService().getGroupThreadsCount(groupId, userId, status);
115            }
116    
117            public static int getGroupThreadsCount(long groupId, long userId,
118                    int status, boolean subscribed)
119                    throws com.liferay.portal.kernel.exception.SystemException {
120                    return getService()
121                                       .getGroupThreadsCount(groupId, userId, status, subscribed);
122            }
123    
124            public static int getGroupThreadsCount(long groupId, long userId,
125                    int status, boolean subscribed, boolean includeAnonymous)
126                    throws com.liferay.portal.kernel.exception.SystemException {
127                    return getService()
128                                       .getGroupThreadsCount(groupId, userId, status, subscribed,
129                            includeAnonymous);
130            }
131    
132            public static java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
133                    long groupId, long categoryId, int status, int start, int end)
134                    throws com.liferay.portal.kernel.exception.SystemException {
135                    return getService().getThreads(groupId, categoryId, status, start, end);
136            }
137    
138            public static int getThreadsCount(long groupId, long categoryId, int status)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return getService().getThreadsCount(groupId, categoryId, status);
141            }
142    
143            public static com.liferay.portal.model.Lock lockThread(long threadId)
144                    throws com.liferay.portal.kernel.exception.PortalException,
145                            com.liferay.portal.kernel.exception.SystemException {
146                    return getService().lockThread(threadId);
147            }
148    
149            public static com.liferay.portlet.messageboards.model.MBThread moveThread(
150                    long categoryId, long threadId)
151                    throws com.liferay.portal.kernel.exception.PortalException,
152                            com.liferay.portal.kernel.exception.SystemException {
153                    return getService().moveThread(categoryId, threadId);
154            }
155    
156            public static com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
157                    long categoryId, long threadId)
158                    throws com.liferay.portal.kernel.exception.PortalException,
159                            com.liferay.portal.kernel.exception.SystemException {
160                    return getService().moveThreadFromTrash(categoryId, threadId);
161            }
162    
163            public static com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
164                    long threadId)
165                    throws com.liferay.portal.kernel.exception.PortalException,
166                            com.liferay.portal.kernel.exception.SystemException {
167                    return getService().moveThreadToTrash(threadId);
168            }
169    
170            public static void restoreThreadFromTrash(long threadId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    getService().restoreThreadFromTrash(threadId);
174            }
175    
176            public static com.liferay.portal.kernel.search.Hits search(long groupId,
177                    long creatorUserId, int status, int start, int end)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return getService().search(groupId, creatorUserId, status, start, end);
181            }
182    
183            public static com.liferay.portal.kernel.search.Hits search(long groupId,
184                    long creatorUserId, long startDate, long endDate, int status,
185                    int start, int end)
186                    throws com.liferay.portal.kernel.exception.PortalException,
187                            com.liferay.portal.kernel.exception.SystemException {
188                    return getService()
189                                       .search(groupId, creatorUserId, startDate, endDate, status,
190                            start, end);
191            }
192    
193            public static com.liferay.portlet.messageboards.model.MBThread splitThread(
194                    long messageId, java.lang.String subject,
195                    com.liferay.portal.service.ServiceContext serviceContext)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    return getService().splitThread(messageId, subject, serviceContext);
199            }
200    
201            public static void unlockThread(long threadId)
202                    throws com.liferay.portal.kernel.exception.PortalException,
203                            com.liferay.portal.kernel.exception.SystemException {
204                    getService().unlockThread(threadId);
205            }
206    
207            public static MBThreadService getService() {
208                    if (_service == null) {
209                            _service = (MBThreadService)PortalBeanLocatorUtil.locate(MBThreadService.class.getName());
210    
211                            ReferenceRegistry.registerReference(MBThreadServiceUtil.class,
212                                    "_service");
213                    }
214    
215                    return _service;
216            }
217    
218            /**
219             * @deprecated As of 6.2.0
220             */
221            public void setService(MBThreadService service) {
222            }
223    
224            private static MBThreadService _service;
225    }