com.liferay.portlet.messageboards.service.impl
Class MBMessageServiceImpl
java.lang.Object
com.liferay.portal.service.impl.PrincipalBean
com.liferay.portlet.messageboards.service.impl.MBMessageServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.messageboards.service.MBMessageService
- public class MBMessageServiceImpl
- extends PrincipalBean
- implements com.liferay.portlet.messageboards.service.MBMessageService
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
com.liferay.portlet.messageboards.model.MBMessage |
addDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.messageboards.model.MBMessage |
addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
protected void |
checkReplyToPermission(long categoryId,
long parentMessageId)
|
void |
deleteDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
long messageId)
|
void |
deleteMessage(long messageId)
|
protected java.lang.String |
exportToRSS(java.lang.String name,
java.lang.String description,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
java.util.List messages,
javax.portlet.PortletPreferences prefs)
|
java.lang.String |
getCategoryMessagesRSS(long categoryId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
|
java.lang.String |
getCompanyMessagesRSS(long companyId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
|
java.lang.String |
getGroupMessagesRSS(long groupId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
|
com.liferay.portlet.messageboards.model.MBMessage |
getMessage(long messageId)
|
com.liferay.portlet.messageboards.model.MBMessageDisplay |
getMessageDisplay(long messageId)
|
java.lang.String |
getThreadMessagesRSS(long threadId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
|
void |
subscribeMessage(long messageId)
|
void |
unsubscribeMessage(long messageId)
|
com.liferay.portlet.messageboards.model.MBMessage |
updateDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
long messageId,
java.lang.String subject,
java.lang.String body)
|
com.liferay.portlet.messageboards.model.MBMessage |
updateMessage(long messageId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
double priority,
java.lang.String[] tagsEntries)
|
com.liferay.portlet.messageboards.model.MBMessage |
updateMessage(long messageId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBMessageServiceImpl
public MBMessageServiceImpl()
addDiscussionMessage
public com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addDiscussionMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addMessage
public com.liferay.portlet.messageboards.model.MBMessage addMessage(long categoryId,
long threadId,
long parentMessageId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
boolean anonymous,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteDiscussionMessage
public void deleteDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
deleteDiscussionMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteMessage
public void deleteMessage(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
deleteMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCategoryMessagesRSS
public java.lang.String getCategoryMessagesRSS(long categoryId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getCategoryMessagesRSS
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getCompanyMessagesRSS
public java.lang.String getCompanyMessagesRSS(long companyId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getCompanyMessagesRSS
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroupMessagesRSS
public java.lang.String getGroupMessagesRSS(long groupId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getGroupMessagesRSS
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getMessage
public com.liferay.portlet.messageboards.model.MBMessage getMessage(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getMessageDisplay
public com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getMessageDisplay
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getThreadMessagesRSS
public java.lang.String getThreadMessagesRSS(long threadId,
int max,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
javax.portlet.PortletPreferences prefs)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getThreadMessagesRSS
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
subscribeMessage
public void subscribeMessage(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
subscribeMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsubscribeMessage
public void unsubscribeMessage(long messageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
unsubscribeMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateDiscussionMessage
public com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(long groupId,
java.lang.String className,
long classPK,
long messageId,
java.lang.String subject,
java.lang.String body)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateDiscussionMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateMessage
public com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
double priority,
java.lang.String[] tagsEntries)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateMessage
public com.liferay.portlet.messageboards.model.MBMessage updateMessage(long messageId,
long categoryId,
java.lang.String subject,
java.lang.String body,
java.util.List files,
double priority,
java.lang.String[] tagsEntries,
javax.portlet.PortletPreferences prefs)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateMessage
in interface com.liferay.portlet.messageboards.service.MBMessageService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkReplyToPermission
protected void checkReplyToPermission(long categoryId,
long parentMessageId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportToRSS
protected java.lang.String exportToRSS(java.lang.String name,
java.lang.String description,
java.lang.String type,
double version,
java.lang.String feedURL,
java.lang.String entryURL,
java.util.List messages,
javax.portlet.PortletPreferences prefs)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException