com.liferay.portlet.messageboards.service
Interface MBMessageFlagLocalService


@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface MBMessageFlagLocalService

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.MBMessageFlagLocalServiceImpl. 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:
MBMessageFlagLocalServiceUtil

Method Summary
 MBMessageFlag addMBMessageFlag(MBMessageFlag mbMessageFlag)
           
 void addQuestionFlag(long messageId)
           
 void addReadFlags(long userId, java.util.List<MBMessage> messages)
           
 MBMessageFlag createMBMessageFlag(long messageFlagId)
           
 void deleteFlags(long userId)
           
 void deleteFlags(long messageId, int flag)
           
 void deleteMBMessageFlag(long messageFlagId)
           
 void deleteMBMessageFlag(MBMessageFlag mbMessageFlag)
           
 void deleteQuestionAndAnswerFlags(long threadId)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 MBMessageFlag getMBMessageFlag(long messageFlagId)
           
 java.util.List<MBMessageFlag> getMBMessageFlags(int start, int end)
           
 int getMBMessageFlagsCount()
           
 boolean hasAnswerFlag(long messageId)
           
 boolean hasQuestionFlag(long messageId)
           
 boolean hasReadFlag(long userId, long messageId)
           
 MBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag)
           
 

Method Detail

addMBMessageFlag

MBMessageFlag addMBMessageFlag(MBMessageFlag mbMessageFlag)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

createMBMessageFlag

MBMessageFlag createMBMessageFlag(long messageFlagId)

deleteMBMessageFlag

void deleteMBMessageFlag(long messageFlagId)
                         throws com.liferay.portal.SystemException,
                                com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteMBMessageFlag

void deleteMBMessageFlag(MBMessageFlag mbMessageFlag)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                              int start,
                                              int end)
                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBMessageFlag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageFlag getMBMessageFlag(long messageFlagId)
                               throws com.liferay.portal.SystemException,
                                      com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

getMBMessageFlags

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<MBMessageFlag> getMBMessageFlags(int start,
                                                              int end)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getMBMessageFlagsCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getMBMessageFlagsCount()
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateMBMessageFlag

MBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addReadFlags

void addReadFlags(long userId,
                  java.util.List<MBMessage> messages)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addQuestionFlag

void addQuestionFlag(long messageId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFlags

void deleteFlags(long userId)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteFlags

void deleteFlags(long messageId,
                 int flag)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

deleteQuestionAndAnswerFlags

void deleteQuestionAndAnswerFlags(long threadId)
                                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasAnswerFlag

boolean hasAnswerFlag(long messageId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasQuestionFlag

boolean hasQuestionFlag(long messageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

hasReadFlag

boolean hasReadFlag(long userId,
                    long messageId)
                    throws com.liferay.portal.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException