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     * The utility for the message boards thread remote service. This utility wraps {@link com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
022     *
023     * <p>
024     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
025     * </p>
026     *
027     * @author Brian Wing Shun Chan
028     * @see MBThreadService
029     * @see com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
030     * @see com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl
031     * @generated
032     */
033    public class MBThreadServiceUtil {
034            /*
035             * NOTE FOR DEVELOPERS:
036             *
037             * 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.
038             */
039    
040            /**
041            * Returns the Spring bean ID for this bean.
042            *
043            * @return the Spring bean ID for this bean
044            */
045            public static java.lang.String getBeanIdentifier() {
046                    return getService().getBeanIdentifier();
047            }
048    
049            /**
050            * Sets the Spring bean ID for this bean.
051            *
052            * @param beanIdentifier the Spring bean ID for this bean
053            */
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            /**
178             * @deprecated
179             */
180            public void setService(MBThreadService service) {
181            }
182    
183            private static MBThreadService _service;
184    }