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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
053            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
054                    long groupId, long userId, java.util.Date modifiedDate, int status,
055                    int start, int end) throws PortalException;
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, int start, int end)
060                    throws PortalException;
061    
062            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
063            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
064                    long groupId, long userId, int status, boolean subscribed,
065                    boolean includeAnonymous, int start, int end) throws PortalException;
066    
067            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
068            public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
069                    long groupId, long userId, int status, boolean subscribed, int start,
070                    int end) throws PortalException;
071    
072            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
073            public int getGroupThreadsCount(long groupId, long userId,
074                    java.util.Date modifiedDate, int status);
075    
076            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
077            public int getGroupThreadsCount(long groupId, long userId, int status);
078    
079            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080            public int getGroupThreadsCount(long groupId, long userId, int status,
081                    boolean subscribed);
082    
083            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084            public int getGroupThreadsCount(long groupId, long userId, int status,
085                    boolean subscribed, boolean includeAnonymous);
086    
087            /**
088            * Returns the OSGi service identifier.
089            *
090            * @return the OSGi service identifier
091            */
092            public java.lang.String getOSGiServiceIdentifier();
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            public com.liferay.portlet.messageboards.model.MBThread splitThread(
126                    long messageId, java.lang.String subject,
127                    com.liferay.portal.service.ServiceContext serviceContext)
128                    throws PortalException;
129    
130            public void unlockThread(long threadId) throws PortalException;
131    }