com.liferay.portlet.messageboards.util
Class MBUtil

java.lang.Object
  extended by com.liferay.portlet.messageboards.util.MBUtil

public class MBUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String POP_PORTLET_PREFIX
           
 
Constructor Summary
MBUtil()
           
 
Method Summary
static java.lang.String getBreadcrumbs(long categoryId, long messageId, javax.servlet.jsp.PageContext pageContext, javax.portlet.RenderRequest req, javax.portlet.RenderResponse res)
           
static java.lang.String getBreadcrumbs(com.liferay.portlet.messageboards.model.MBCategory category, com.liferay.portlet.messageboards.model.MBMessage message, javax.servlet.jsp.PageContext pageContext, javax.portlet.RenderRequest req, javax.portlet.RenderResponse res)
           
static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailFromName(javax.portlet.PortletPreferences prefs)
           
static boolean getEmailHtmlFormat(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailMessageAddedBody(javax.portlet.PortletPreferences prefs)
           
static boolean getEmailMessageAddedEnabled(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailMessageAddedSignature(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailMessageAddedSubjectPrefix(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailMessageUpdatedBody(javax.portlet.PortletPreferences prefs)
           
static boolean getEmailMessageUpdatedEnabled(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailMessageUpdatedSignature(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getEmailMessageUpdatedSubjectPrefix(javax.portlet.PortletPreferences prefs)
           
static java.lang.String getMailId(java.lang.String mx, long categoryId, long messageId)
           
static java.lang.String getMailingListAddress(long categoryId, long messageId, java.lang.String mx)
           
static long getMessageId(java.lang.String mailId)
           
static java.lang.String[] getThreadPriority(javax.portlet.PortletPreferences prefs, java.lang.String languageId, double value, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
static java.util.Date getUnbanDate(com.liferay.portlet.messageboards.model.MBBan ban, int expireInterval)
           
static java.lang.String getUserRank(javax.portlet.PortletPreferences prefs, java.lang.String languageId, int posts)
           
static java.lang.String getUserRank(javax.portlet.PortletPreferences prefs, java.lang.String languageId, com.liferay.portlet.messageboards.model.MBStatsUser statsUser)
           
static boolean isAllowAnonymousPosting(javax.portlet.PortletPreferences prefs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POP_PORTLET_PREFIX

public static final java.lang.String POP_PORTLET_PREFIX
See Also:
Constant Field Values
Constructor Detail

MBUtil

public MBUtil()
Method Detail

getBreadcrumbs

public static java.lang.String getBreadcrumbs(long categoryId,
                                              long messageId,
                                              javax.servlet.jsp.PageContext pageContext,
                                              javax.portlet.RenderRequest req,
                                              javax.portlet.RenderResponse res)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getBreadcrumbs

public static java.lang.String getBreadcrumbs(com.liferay.portlet.messageboards.model.MBCategory category,
                                              com.liferay.portlet.messageboards.model.MBMessage message,
                                              javax.servlet.jsp.PageContext pageContext,
                                              javax.portlet.RenderRequest req,
                                              javax.portlet.RenderResponse res)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getEmailFromAddress

public static java.lang.String getEmailFromAddress(javax.portlet.PortletPreferences prefs)

getEmailFromName

public static java.lang.String getEmailFromName(javax.portlet.PortletPreferences prefs)

getEmailHtmlFormat

public static boolean getEmailHtmlFormat(javax.portlet.PortletPreferences prefs)

getEmailMessageAddedEnabled

public static boolean getEmailMessageAddedEnabled(javax.portlet.PortletPreferences prefs)

getEmailMessageAddedBody

public static java.lang.String getEmailMessageAddedBody(javax.portlet.PortletPreferences prefs)
                                                 throws java.io.IOException
Throws:
java.io.IOException

getEmailMessageAddedSignature

public static java.lang.String getEmailMessageAddedSignature(javax.portlet.PortletPreferences prefs)
                                                      throws java.io.IOException
Throws:
java.io.IOException

getEmailMessageAddedSubjectPrefix

public static java.lang.String getEmailMessageAddedSubjectPrefix(javax.portlet.PortletPreferences prefs)
                                                          throws java.io.IOException
Throws:
java.io.IOException

getEmailMessageUpdatedEnabled

public static boolean getEmailMessageUpdatedEnabled(javax.portlet.PortletPreferences prefs)

getEmailMessageUpdatedBody

public static java.lang.String getEmailMessageUpdatedBody(javax.portlet.PortletPreferences prefs)
                                                   throws java.io.IOException
Throws:
java.io.IOException

getEmailMessageUpdatedSignature

public static java.lang.String getEmailMessageUpdatedSignature(javax.portlet.PortletPreferences prefs)
                                                        throws java.io.IOException
Throws:
java.io.IOException

getEmailMessageUpdatedSubjectPrefix

public static java.lang.String getEmailMessageUpdatedSubjectPrefix(javax.portlet.PortletPreferences prefs)
                                                            throws java.io.IOException
Throws:
java.io.IOException

getMailId

public static java.lang.String getMailId(java.lang.String mx,
                                         long categoryId,
                                         long messageId)

getMailingListAddress

public static java.lang.String getMailingListAddress(long categoryId,
                                                     long messageId,
                                                     java.lang.String mx)

getMessageId

public static long getMessageId(java.lang.String mailId)

getThreadPriority

public static java.lang.String[] getThreadPriority(javax.portlet.PortletPreferences prefs,
                                                   java.lang.String languageId,
                                                   double value,
                                                   com.liferay.portal.theme.ThemeDisplay themeDisplay)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

getUnbanDate

public static java.util.Date getUnbanDate(com.liferay.portlet.messageboards.model.MBBan ban,
                                          int expireInterval)

getUserRank

public static java.lang.String getUserRank(javax.portlet.PortletPreferences prefs,
                                           java.lang.String languageId,
                                           int posts)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getUserRank

public static java.lang.String getUserRank(javax.portlet.PortletPreferences prefs,
                                           java.lang.String languageId,
                                           com.liferay.portlet.messageboards.model.MBStatsUser statsUser)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

isAllowAnonymousPosting

public static boolean isAllowAnonymousPosting(javax.portlet.PortletPreferences prefs)