Liferay 6.0.5

com.liferay.portlet.messageboards.util
Class MBUtil

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

public class MBUtil
extends Object


Field Summary
static String POP_PORTLET_PREFIX
           
static int POP_SERVER_SUBDOMAIN_LENGTH
           
 
Constructor Summary
MBUtil()
           
 
Method Summary
static void addPortletBreadcrumbEntries(long categoryId, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static void addPortletBreadcrumbEntries(MBCategory category, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static void addPortletBreadcrumbEntries(MBMessage message, javax.servlet.http.HttpServletRequest request, RenderResponse renderResponse)
           
static void collectMultipartContent(javax.mail.internet.MimeMultipart multipart, MBMailMessage collector)
           
static void collectPartContent(javax.mail.Part part, MBMailMessage collector)
           
static long getCategoryId(javax.servlet.http.HttpServletRequest request, MBCategory category)
           
static long getCategoryId(javax.servlet.http.HttpServletRequest request, MBMessage message)
           
static String getEmailFromAddress(PortletPreferences preferences)
           
static String getEmailFromName(PortletPreferences preferences)
           
static boolean getEmailHtmlFormat(PortletPreferences preferences)
           
static String getEmailMessageAddedBody(PortletPreferences preferences)
           
static boolean getEmailMessageAddedEnabled(PortletPreferences preferences)
           
static String getEmailMessageAddedSignature(PortletPreferences preferences)
           
static String getEmailMessageAddedSubjectPrefix(PortletPreferences preferences)
           
static String getEmailMessageUpdatedBody(PortletPreferences preferences)
           
static boolean getEmailMessageUpdatedEnabled(PortletPreferences preferences)
           
static String getEmailMessageUpdatedSignature(PortletPreferences preferences)
           
static String getEmailMessageUpdatedSubjectPrefix(PortletPreferences preferences)
           
static String getMailId(String mx, long categoryId, long messageId)
           
static String getMailingListAddress(long groupId, long categoryId, long messageId, String mx, String defaultMailingListAddress)
           
static long getMessageId(String mailId)
           
static long getParentMessageId(javax.mail.Message message)
           
static String getParentMessageIdString(javax.mail.Message message)
           
static String getSubjectWithoutMessageId(javax.mail.Message message)
           
static String[] getThreadPriority(PortletPreferences preferences, String languageId, double value, ThemeDisplay themeDisplay)
           
static Date getUnbanDate(MBBan ban, int expireInterval)
           
static String getUserRank(PortletPreferences preferences, String languageId, int posts)
           
static String[] getUserRank(PortletPreferences preferences, String languageId, MBStatsUser statsUser)
           
static boolean hasMailIdHeader(javax.mail.Message message)
           
static boolean isAllowAnonymousPosting(PortletPreferences preferences)
           
 
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 String POP_PORTLET_PREFIX
See Also:
Constant Field Values

POP_SERVER_SUBDOMAIN_LENGTH

public static final int POP_SERVER_SUBDOMAIN_LENGTH
Constructor Detail

MBUtil

public MBUtil()
Method Detail

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(long categoryId,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(MBCategory category,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

addPortletBreadcrumbEntries

public static void addPortletBreadcrumbEntries(MBMessage message,
                                               javax.servlet.http.HttpServletRequest request,
                                               RenderResponse renderResponse)
                                        throws Exception
Throws:
Exception

collectMultipartContent

public static void collectMultipartContent(javax.mail.internet.MimeMultipart multipart,
                                           MBMailMessage collector)
                                    throws Exception
Throws:
Exception

collectPartContent

public static void collectPartContent(javax.mail.Part part,
                                      MBMailMessage collector)
                               throws Exception
Throws:
Exception

getCategoryId

public static long getCategoryId(javax.servlet.http.HttpServletRequest request,
                                 MBCategory category)

getCategoryId

public static long getCategoryId(javax.servlet.http.HttpServletRequest request,
                                 MBMessage message)

getEmailFromAddress

public static String getEmailFromAddress(PortletPreferences preferences)

getEmailFromName

public static String getEmailFromName(PortletPreferences preferences)

getEmailHtmlFormat

public static boolean getEmailHtmlFormat(PortletPreferences preferences)

getEmailMessageAddedBody

public static String getEmailMessageAddedBody(PortletPreferences preferences)

getEmailMessageAddedEnabled

public static boolean getEmailMessageAddedEnabled(PortletPreferences preferences)

getEmailMessageAddedSignature

public static String getEmailMessageAddedSignature(PortletPreferences preferences)

getEmailMessageAddedSubjectPrefix

public static String getEmailMessageAddedSubjectPrefix(PortletPreferences preferences)

getEmailMessageUpdatedBody

public static String getEmailMessageUpdatedBody(PortletPreferences preferences)

getEmailMessageUpdatedEnabled

public static boolean getEmailMessageUpdatedEnabled(PortletPreferences preferences)

getEmailMessageUpdatedSignature

public static String getEmailMessageUpdatedSignature(PortletPreferences preferences)

getEmailMessageUpdatedSubjectPrefix

public static String getEmailMessageUpdatedSubjectPrefix(PortletPreferences preferences)

getMailId

public static String getMailId(String mx,
                               long categoryId,
                               long messageId)

getMailingListAddress

public static String getMailingListAddress(long groupId,
                                           long categoryId,
                                           long messageId,
                                           String mx,
                                           String defaultMailingListAddress)

getMessageId

public static long getMessageId(String mailId)

getParentMessageId

public static long getParentMessageId(javax.mail.Message message)
                               throws Exception
Throws:
Exception

getParentMessageIdString

public static String getParentMessageIdString(javax.mail.Message message)
                                       throws Exception
Throws:
Exception

getSubjectWithoutMessageId

public static String getSubjectWithoutMessageId(javax.mail.Message message)
                                         throws Exception
Throws:
Exception

getThreadPriority

public static String[] getThreadPriority(PortletPreferences preferences,
                                         String languageId,
                                         double value,
                                         ThemeDisplay themeDisplay)
                                  throws Exception
Throws:
Exception

getUnbanDate

public static Date getUnbanDate(MBBan ban,
                                int expireInterval)

getUserRank

public static String getUserRank(PortletPreferences preferences,
                                 String languageId,
                                 int posts)
                          throws Exception
Throws:
Exception

getUserRank

public static String[] getUserRank(PortletPreferences preferences,
                                   String languageId,
                                   MBStatsUser statsUser)
                            throws Exception
Throws:
Exception

hasMailIdHeader

public static boolean hasMailIdHeader(javax.mail.Message message)
                               throws Exception
Throws:
Exception

isAllowAnonymousPosting

public static boolean isAllowAnonymousPosting(PortletPreferences preferences)

Liferay 6.0.5