001    /**
002     * Copyright (c) 2000-present 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.exception.PortalException;
020    import com.liferay.portal.kernel.exception.SystemException;
021    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022    import com.liferay.portal.kernel.security.access.control.AccessControlled;
023    import com.liferay.portal.kernel.transaction.Isolation;
024    import com.liferay.portal.kernel.transaction.Propagation;
025    import com.liferay.portal.kernel.transaction.Transactional;
026    import com.liferay.portal.service.BaseService;
027    
028    /**
029     * Provides the remote service interface for MBThread. Methods of this
030     * service are expected to have security checks based on the propagated JAAS
031     * credentials because this service can be accessed remotely.
032     *
033     * @author Brian Wing Shun Chan
034     * @see MBThreadServiceUtil
035     * @see com.liferay.portlet.messageboards.service.base.MBThreadServiceBaseImpl
036     * @see com.liferay.portlet.messageboards.service.impl.MBThreadServiceImpl
037     * @generated
038     */
039    @AccessControlled
040    @JSONWebService
041    @ProviderType
042    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
043            PortalException.class, SystemException.class})
044    public interface MBThreadService extends BaseService {
045            /*
046             * NOTE FOR DEVELOPERS:
047             *
048             * 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.
049             */
050            public void deleteThread(long threadId) throws PortalException;
051    
052            /**
053            * Returns the Spring bean ID for this bean.
054            *
055            * @return the Spring bean ID for this bean
056            */
057            public java.lang.String getBeanIdentifier();
058    
059            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
060            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
061                    long groupId, long userId, java.util.Date modifiedDate, int status,
062                    int start, int end) throws PortalException;
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 PortalException;
068    
069            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
071                    long groupId, long userId, int status, boolean subscribed,
072                    boolean includeAnonymous, int start, int end) throws PortalException;
073    
074            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
076                    long groupId, long userId, int status, boolean subscribed, int start,
077                    int end) throws PortalException;
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public int getGroupThreadsCount(long groupId, long userId,
081                    java.util.Date modifiedDate, int status);
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public int getGroupThreadsCount(long groupId, long userId, int status);
085    
086            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087            public int getGroupThreadsCount(long groupId, long userId, int status,
088                    boolean subscribed);
089    
090            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091            public int getGroupThreadsCount(long groupId, long userId, int status,
092                    boolean subscribed, boolean includeAnonymous);
093    
094            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
096                    long groupId, long categoryId, int status, int start, int end);
097    
098            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099            public int getThreadsCount(long groupId, long categoryId, int status);
100    
101            public com.liferay.portal.kernel.lock.Lock lockThread(long threadId)
102                    throws PortalException;
103    
104            public com.liferay.portlet.messageboards.model.MBThread moveThread(
105                    long categoryId, long threadId) throws PortalException;
106    
107            public com.liferay.portlet.messageboards.model.MBThread moveThreadFromTrash(
108                    long categoryId, long threadId) throws PortalException;
109    
110            public com.liferay.portlet.messageboards.model.MBThread moveThreadToTrash(
111                    long threadId) throws PortalException;
112    
113            public void restoreThreadFromTrash(long threadId) throws PortalException;
114    
115            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116            public com.liferay.portal.kernel.search.Hits search(long groupId,
117                    long creatorUserId, long startDate, long endDate, int status,
118                    int start, int end) throws PortalException;
119    
120            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121            public com.liferay.portal.kernel.search.Hits search(long groupId,
122                    long creatorUserId, int status, int start, int end)
123                    throws PortalException;
124    
125            /**
126            * Sets the Spring bean ID for this bean.
127            *
128            * @param beanIdentifier the Spring bean ID for this bean
129            */
130            public void setBeanIdentifier(java.lang.String beanIdentifier);
131    
132            public com.liferay.portlet.messageboards.model.MBThread splitThread(
133                    long messageId, java.lang.String subject,
134                    com.liferay.portal.service.ServiceContext serviceContext)
135                    throws PortalException;
136    
137            public void unlockThread(long threadId) throws PortalException;
138    }