Liferay 6.0.5

com.liferay.portlet.messageboards.service.impl
Class MBMessageServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.PrincipalBean
      extended by com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
          extended by com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl
All Implemented Interfaces:
MBMessageService

public class MBMessageServiceImpl
extends MBMessageServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, companyLocalService, companyPersistence, companyService, counterLocalService, dlLocalService, dlService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, lockLocalService, lockPersistence, mailService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageFlagLocalService, mbMessageFlagPersistence, mbMessageFlagService, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadLocalService, mbThreadPersistence, mbThreadService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialEquityLogLocalService, socialEquityLogPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.base.PrincipalBean
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
MBMessageServiceImpl()
           
 
Method Summary
 MBMessage addDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage addMessage(long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, List<ObjectValuePair<String,byte[]>> files, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage addMessage(long groupId, long categoryId, String subject, String body, List<ObjectValuePair<String,byte[]>> files, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
protected  void checkReplyToPermission(long groupId, long categoryId, long parentMessageId)
           
 void deleteDiscussionMessage(long groupId, String className, long classPK, String permissionClassName, long permissionClassPK, long messageId)
           
 void deleteMessage(long messageId)
           
protected  String exportToRSS(String name, String description, String type, double version, String displayStyle, String feedURL, String entryURL, List<MBMessage> messages, ThemeDisplay themeDisplay)
           
 List<MBMessage> getCategoryMessages(long groupId, long categoryId, int status, int start, int end)
           
 int getCategoryMessagesCount(long groupId, long categoryId, int status)
           
 String getCategoryMessagesRSS(long groupId, long categoryId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 String getCompanyMessagesRSS(long companyId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 String getGroupMessagesRSS(long groupId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 String getGroupMessagesRSS(long groupId, long userId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 MBMessage getMessage(long messageId)
           
 MBMessageDisplay getMessageDisplay(long messageId, int status, String threadView, boolean includePrevAndNext)
           
 List<MBMessage> getThreadMessages(long groupId, long categoryId, long threadId, int status, int start, int end)
           
 int getThreadMessagesCount(long groupId, long categoryId, long threadId, int status)
           
 String getThreadMessagesRSS(long threadId, int status, int max, String type, double version, String displayStyle, String feedURL, String entryURL, ThemeDisplay themeDisplay)
           
 void subscribeMessage(long messageId)
           
 void unsubscribeMessage(long messageId)
           
 MBMessage updateDiscussionMessage(String className, long classPK, String permissionClassName, long permissionClassPK, long messageId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage updateMessage(long messageId, String subject, String body, List<ObjectValuePair<String,byte[]>> files, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getDLLocalService, getDLService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLockLocalService, getLockPersistence, getMailService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageFlagLocalService, getMBMessageFlagPersistence, getMBMessageFlagService, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialEquityLogLocalService, getSocialEquityLogPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setDLLocalService, setDLService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLockLocalService, setLockPersistence, setMailService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageFlagLocalService, setMBMessageFlagPersistence, setMBMessageFlagService, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialEquityLogLocalService, setSocialEquityLogPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.base.PrincipalBean
getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBMessageServiceImpl

public MBMessageServiceImpl()
Method Detail

addDiscussionMessage

public MBMessage addDiscussionMessage(long groupId,
                                      String className,
                                      long classPK,
                                      String permissionClassName,
                                      long permissionClassPK,
                                      long threadId,
                                      long parentMessageId,
                                      String subject,
                                      String body,
                                      ServiceContext serviceContext)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addMessage

public MBMessage addMessage(long groupId,
                            long categoryId,
                            long threadId,
                            long parentMessageId,
                            String subject,
                            String body,
                            List<ObjectValuePair<String,byte[]>> files,
                            boolean anonymous,
                            double priority,
                            boolean allowPingbacks,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addMessage

public MBMessage addMessage(long groupId,
                            long categoryId,
                            String subject,
                            String body,
                            List<ObjectValuePair<String,byte[]>> files,
                            boolean anonymous,
                            double priority,
                            boolean allowPingbacks,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

deleteDiscussionMessage

public void deleteDiscussionMessage(long groupId,
                                    String className,
                                    long classPK,
                                    String permissionClassName,
                                    long permissionClassPK,
                                    long messageId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

deleteMessage

public void deleteMessage(long messageId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getCategoryMessages

public List<MBMessage> getCategoryMessages(long groupId,
                                           long categoryId,
                                           int status,
                                           int start,
                                           int end)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getCategoryMessagesCount

public int getCategoryMessagesCount(long groupId,
                                    long categoryId,
                                    int status)
                             throws SystemException
Throws:
SystemException

getCategoryMessagesRSS

public String getCategoryMessagesRSS(long groupId,
                                     long categoryId,
                                     int status,
                                     int max,
                                     String type,
                                     double version,
                                     String displayStyle,
                                     String feedURL,
                                     String entryURL,
                                     ThemeDisplay themeDisplay)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getCompanyMessagesRSS

public String getCompanyMessagesRSS(long companyId,
                                    int status,
                                    int max,
                                    String type,
                                    double version,
                                    String displayStyle,
                                    String feedURL,
                                    String entryURL,
                                    ThemeDisplay themeDisplay)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

getGroupMessagesRSS

public String getGroupMessagesRSS(long groupId,
                                  int status,
                                  int max,
                                  String type,
                                  double version,
                                  String displayStyle,
                                  String feedURL,
                                  String entryURL,
                                  ThemeDisplay themeDisplay)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getGroupMessagesRSS

public String getGroupMessagesRSS(long groupId,
                                  long userId,
                                  int status,
                                  int max,
                                  String type,
                                  double version,
                                  String displayStyle,
                                  String feedURL,
                                  String entryURL,
                                  ThemeDisplay themeDisplay)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getMessage

public MBMessage getMessage(long messageId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getMessageDisplay

public MBMessageDisplay getMessageDisplay(long messageId,
                                          int status,
                                          String threadView,
                                          boolean includePrevAndNext)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

getThreadMessages

public List<MBMessage> getThreadMessages(long groupId,
                                         long categoryId,
                                         long threadId,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Throws:
SystemException

getThreadMessagesCount

public int getThreadMessagesCount(long groupId,
                                  long categoryId,
                                  long threadId,
                                  int status)
                           throws SystemException
Throws:
SystemException

getThreadMessagesRSS

public String getThreadMessagesRSS(long threadId,
                                   int status,
                                   int max,
                                   String type,
                                   double version,
                                   String displayStyle,
                                   String feedURL,
                                   String entryURL,
                                   ThemeDisplay themeDisplay)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

subscribeMessage

public void subscribeMessage(long messageId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

unsubscribeMessage

public void unsubscribeMessage(long messageId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateDiscussionMessage

public MBMessage updateDiscussionMessage(String className,
                                         long classPK,
                                         String permissionClassName,
                                         long permissionClassPK,
                                         long messageId,
                                         String subject,
                                         String body,
                                         ServiceContext serviceContext)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

updateMessage

public MBMessage updateMessage(long messageId,
                               String subject,
                               String body,
                               List<ObjectValuePair<String,byte[]>> files,
                               List<String> existingFiles,
                               double priority,
                               boolean allowPingbacks,
                               ServiceContext serviceContext)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

checkReplyToPermission

protected void checkReplyToPermission(long groupId,
                                      long categoryId,
                                      long parentMessageId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

exportToRSS

protected String exportToRSS(String name,
                             String description,
                             String type,
                             double version,
                             String displayStyle,
                             String feedURL,
                             String entryURL,
                             List<MBMessage> messages,
                             ThemeDisplay themeDisplay)
                      throws SystemException
Throws:
SystemException

Liferay 6.0.5