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