com.liferay.portlet.messageboards.service
Interface MBThreadLocalService


public interface MBThreadLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
com.liferay.portlet.messageboards.service.MBThreadServiceFactory, com.liferay.portlet.messageboards.service.MBThreadServiceUtil

Method Summary
 MBThread addMBThread(MBThread model)
           
 void deleteThread(long threadId)
           
 void deleteThread(MBThread thread)
           
 void deleteThreads(long categoryId)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 int getCategoriesThreadsCount(java.util.List categoryIds)
           
 java.util.List getGroupThreads(long groupId, int begin, int end)
           
 java.util.List getGroupThreads(long groupId, long userId, boolean subscribed, int begin, int end)
           
 java.util.List getGroupThreads(long groupId, long userId, int begin, int end)
           
 int getGroupThreadsCount(long groupId)
           
 int getGroupThreadsCount(long groupId, long userId)
           
 int getGroupThreadsCount(long groupId, long userId, boolean subscribed)
           
 MBThread getThread(long threadId)
           
 java.util.List getThreads(long categoryId, int begin, int end)
           
 int getThreadsCount(long categoryId)
           
 boolean hasReadThread(long userId, long threadId)
           
 MBThread updateMBThread(MBThread model)
           
 MBThread updateThread(long threadId, int viewCount)
           
 

Method Detail

addMBThread

public MBThread addMBThread(MBThread model)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                   int begin,
                                   int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateMBThread

public MBThread updateMBThread(MBThread model)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteThread

public void deleteThread(long threadId)
                  throws com.liferay.portal.SystemException,
                         com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteThread

public void deleteThread(MBThread thread)
                  throws com.liferay.portal.SystemException,
                         com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteThreads

public void deleteThreads(long categoryId)
                   throws com.liferay.portal.SystemException,
                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getCategoriesThreadsCount

public int getCategoriesThreadsCount(java.util.List categoryIds)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreads

public java.util.List getGroupThreads(long groupId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreads

public java.util.List getGroupThreads(long groupId,
                                      long userId,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreads

public java.util.List getGroupThreads(long groupId,
                                      long userId,
                                      boolean subscribed,
                                      int begin,
                                      int end)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupThreadsCount

public int getGroupThreadsCount(long groupId,
                                long userId,
                                boolean subscribed)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThread

public MBThread getThread(long threadId)
                   throws com.liferay.portal.SystemException,
                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getThreads

public java.util.List getThreads(long categoryId,
                                 int begin,
                                 int end)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getThreadsCount

public int getThreadsCount(long categoryId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasReadThread

public boolean hasReadThread(long userId,
                             long threadId)
                      throws com.liferay.portal.SystemException,
                             com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

updateThread

public MBThread updateThread(long threadId,
                             int viewCount)
                      throws com.liferay.portal.SystemException,
                             com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException