001    /**
002     * Copyright (c) 2000-2012 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.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    
024    /**
025     * The interface for the message boards thread remote service.
026     *
027     * <p>
028     * 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.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see MBThreadServiceUtil
033     * @see com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
034     * @see com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl
035     * @generated
036     */
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface MBThreadService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link MBThreadServiceUtil} to access the message boards thread remote service. Add custom service methods to {@link com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046            public void deleteThread(long threadId)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException;
049    
050            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
051            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
052                    long groupId, long userId, int status, boolean subscribed,
053                    boolean includeAnonymous, int start, int end)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException;
056    
057            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
058            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
059                    long groupId, long userId, int status, boolean subscribed, int start,
060                    int end)
061                    throws com.liferay.portal.kernel.exception.PortalException,
062                            com.liferay.portal.kernel.exception.SystemException;
063    
064            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
065            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
066                    long groupId, long userId, int status, int start, int end)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException;
069    
070            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
071            public int getGroupThreadsCount(long groupId, long userId, int status)
072                    throws com.liferay.portal.kernel.exception.SystemException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public int getGroupThreadsCount(long groupId, long userId, int status,
076                    boolean subscribed)
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public int getGroupThreadsCount(long groupId, long userId, int status,
081                    boolean subscribed, boolean includeAnonymous)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
086                    long groupId, long categoryId, int status, int start, int end)
087                    throws com.liferay.portal.kernel.exception.SystemException;
088    
089            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090            public int getThreadsCount(long groupId, long categoryId, int status)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public com.liferay.portal.model.Lock lockThread(long threadId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portlet.messageboards.model.MBThread moveThread(
098                    long categoryId, long threadId)
099                    throws com.liferay.portal.kernel.exception.PortalException,
100                            com.liferay.portal.kernel.exception.SystemException;
101    
102            public com.liferay.portlet.messageboards.model.MBThread splitThread(
103                    long messageId, java.lang.String subject,
104                    com.liferay.portal.service.ServiceContext serviceContext)
105                    throws com.liferay.portal.kernel.exception.PortalException,
106                            com.liferay.portal.kernel.exception.SystemException;
107    
108            public void unlockThread(long threadId)
109                    throws com.liferay.portal.kernel.exception.PortalException,
110                            com.liferay.portal.kernel.exception.SystemException;
111    }