com.liferay.portlet.messageboards.service
Interface MBMessageFlagLocalService

All Known Implementing Classes:
MBMessageFlagLocalServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,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
Generated:

Method Summary
 MBMessageFlag addMBMessageFlag(MBMessageFlag mbMessageFlag)
           
 void addQuestionFlag(long messageId)
           
 void addReadFlags(long userId, MBThread thread)
           
 MBMessageFlag createMBMessageFlag(long messageFlagId)
           
 void deleteAnswerFlags(long threadId, long messageId)
           
 void deleteFlags(long userId)
           
 void deleteFlags(long messageId, int flag)
           
 void deleteMBMessageFlag(long messageFlagId)
           
 void deleteMBMessageFlag(MBMessageFlag mbMessageFlag)
           
 void deleteQuestionAndAnswerFlags(long threadId)
           
 void deleteThreadFlags(long threadId)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
 java.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
 long dynamicQueryCount(DynamicQuery dynamicQuery)
           
 MBMessageFlag getMBMessageFlag(long messageFlagId)
           
 java.util.List<MBMessageFlag> getMBMessageFlags(int start, int end)
           
 int getMBMessageFlagsCount()
           
 MBMessageFlag getReadFlag(long userId, MBThread thread)
           
 boolean hasAnswerFlag(long messageId)
           
 boolean hasQuestionFlag(long messageId)
           
 boolean hasReadFlag(long userId, MBThread thread)
           
 MBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag)
           
 MBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag, boolean merge)
           
 

Method Detail

addMBMessageFlag

MBMessageFlag addMBMessageFlag(MBMessageFlag mbMessageFlag)
                               throws SystemException
Throws:
SystemException

createMBMessageFlag

MBMessageFlag createMBMessageFlag(long messageFlagId)

deleteMBMessageFlag

void deleteMBMessageFlag(long messageFlagId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteMBMessageFlag

void deleteMBMessageFlag(MBMessageFlag mbMessageFlag)
                         throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end)
                            throws SystemException
Throws:
SystemException

dynamicQuery

java.util.List dynamicQuery(DynamicQuery dynamicQuery,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                            throws SystemException
Throws:
SystemException

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Throws:
SystemException

getMBMessageFlag

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

getMBMessageFlags

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

getMBMessageFlagsCount

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

updateMBMessageFlag

MBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag)
                                  throws SystemException
Throws:
SystemException

updateMBMessageFlag

MBMessageFlag updateMBMessageFlag(MBMessageFlag mbMessageFlag,
                                  boolean merge)
                                  throws SystemException
Throws:
SystemException

addReadFlags

void addReadFlags(long userId,
                  MBThread thread)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addQuestionFlag

void addQuestionFlag(long messageId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteAnswerFlags

void deleteAnswerFlags(long threadId,
                       long messageId)
                       throws SystemException
Throws:
SystemException

deleteFlags

void deleteFlags(long userId)
                 throws SystemException
Throws:
SystemException

deleteFlags

void deleteFlags(long messageId,
                 int flag)
                 throws SystemException
Throws:
SystemException

deleteQuestionAndAnswerFlags

void deleteQuestionAndAnswerFlags(long threadId)
                                  throws SystemException
Throws:
SystemException

deleteThreadFlags

void deleteThreadFlags(long threadId)
                       throws SystemException
Throws:
SystemException

getReadFlag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
MBMessageFlag getReadFlag(long userId,
                                                                   MBThread thread)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

hasAnswerFlag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasAnswerFlag(long messageId)
                      throws SystemException
Throws:
SystemException

hasQuestionFlag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasQuestionFlag(long messageId)
                        throws SystemException
Throws:
SystemException

hasReadFlag

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasReadFlag(long userId,
                                                             MBThread thread)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException