Liferay 6.1.2-ce-ga3

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

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

public class MBMessageServiceImpl
extends MBMessageServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, lockFinder, lockLocalService, lockPersistence, mailService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbDiscussionLocalService, mbDiscussionPersistence, mbMailingListLocalService, mbMailingListPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, mbStatsUserLocalService, mbStatsUserPersistence, mbThreadFinder, mbThreadFlagLocalService, mbThreadFlagPersistence, mbThreadLocalService, mbThreadPersistence, mbThreadService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, ratingsStatsFinder, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService, wikiPageFinder, wikiPageLocalService, wikiPagePersistence, wikiPageService, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Fields inherited from class com.liferay.portal.service.BaseServiceImpl
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 permissionOwnerId, long threadId, long parentMessageId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage addMessage(long groupId, long categoryId, long threadId, long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
          Deprecated. addMessage(long, String, String, String, java.util.List, boolean, double, boolean, com.liferay.portal.service.ServiceContext)
 MBMessage addMessage(long groupId, long categoryId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, boolean anonymous, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 MBMessage addMessage(long parentMessageId, String subject, String body, String format, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, 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 permissionOwnerId, 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)
           
 int getGroupMessagesCount(long groupId, int status)
           
 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)
           
 int getThreadAnswersCount(long groupId, long categoryId, long threadId)
           
 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)
           
 void updateAnswer(long messageId, boolean answer, boolean cascade)
           
 MBMessage updateDiscussionMessage(String className, long classPK, String permissionClassName, long permissionClassPK, long permissionOwnerId, long messageId, String subject, String body, ServiceContext serviceContext)
           
 MBMessage updateMessage(long messageId, String subject, String body, List<ObjectValuePair<String,InputStream>> inputStreamOVPs, List<String> existingFiles, double priority, boolean allowPingbacks, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.messageboards.service.base.MBMessageServiceBaseImpl
afterPropertiesSet, destroy, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLockFinder, getLockLocalService, getLockPersistence, getMailService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMailingListLocalService, getMBMailingListPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMBThreadFinder, getMBThreadFlagLocalService, getMBThreadFlagPersistence, getMBThreadLocalService, getMBThreadPersistence, getMBThreadService, getModelClass, getModelClassName, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getRatingsStatsFinder, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWikiPageFinder, getWikiPageLocalService, getWikiPagePersistence, getWikiPageService, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLockFinder, setLockLocalService, setLockPersistence, setMailService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMailingListLocalService, setMBMailingListPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMBThreadFinder, setMBThreadFlagLocalService, setMBThreadFlagPersistence, setMBThreadLocalService, setMBThreadPersistence, setMBThreadService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setRatingsStatsFinder, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWikiPageFinder, setWikiPageLocalService, setWikiPagePersistence, setWikiPageService, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence
 
Methods inherited from class com.liferay.portal.service.BaseServiceImpl
getClassLoader, 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 permissionOwnerId,
                                      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,
                            String format,
                            List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                            boolean anonymous,
                            double priority,
                            boolean allowPingbacks,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Deprecated. addMessage(long, String, String, String, java.util.List, boolean, double, boolean, com.liferay.portal.service.ServiceContext)

Throws:
PortalException
SystemException

addMessage

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

addMessage

public MBMessage addMessage(long parentMessageId,
                            String subject,
                            String body,
                            String format,
                            List<ObjectValuePair<String,InputStream>> inputStreamOVPs,
                            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 permissionOwnerId,
                                    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

getGroupMessagesCount

public int getGroupMessagesCount(long groupId,
                                 int status)
                          throws SystemException
Throws:
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

getThreadAnswersCount

public int getThreadAnswersCount(long groupId,
                                 long categoryId,
                                 long threadId)
                          throws SystemException
Throws:
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

updateAnswer

public void updateAnswer(long messageId,
                         boolean answer,
                         boolean cascade)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateDiscussionMessage

public MBMessage updateDiscussionMessage(String className,
                                         long classPK,
                                         String permissionClassName,
                                         long permissionClassPK,
                                         long permissionOwnerId,
                                         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,InputStream>> inputStreamOVPs,
                               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.1.2-ce-ga3