public class MBUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BB_CODE_EDITOR_WYSIWYG_IMPL_KEY |
static String |
EMOTICONS |
static String |
MESSAGE_POP_PORTLET_PREFIX |
Constructor and Description |
---|
MBUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
collectMultipartContent(javax.mail.internet.MimeMultipart multipart,
MBMailMessage collector) |
static void |
collectPartContent(javax.mail.Part part,
MBMailMessage mbMailMessage) |
static String |
getAbsolutePath(PortletRequest portletRequest,
long mbCategoryId) |
static String |
getBBCodeHTML(String msgBody,
String pathThemeImages) |
static long |
getCategoryId(javax.servlet.http.HttpServletRequest request,
com.liferay.message.boards.kernel.model.MBCategory category) |
static long |
getCategoryId(javax.servlet.http.HttpServletRequest request,
com.liferay.message.boards.kernel.model.MBMessage message) |
static long |
getCategoryId(String messageIdString) |
static Set<Long> |
getCategorySubscriptionClassPKs(long userId) |
static Map<String,String> |
getEmailDefinitionTerms(PortletRequest portletRequest,
String emailFromAddress,
String emailFromName) |
static Map<String,String> |
getEmailFromDefinitionTerms(PortletRequest portletRequest) |
static List<Object> |
getEntries(com.liferay.portal.kernel.search.Hits hits) |
static long |
getMessageId(String messageIdString) |
static int |
getMessageIdStringOffset() |
static long |
getParentMessageId(javax.mail.Message message) |
static String |
getParentMessageIdString(javax.mail.Message message) |
static String |
getReplyToAddress(long categoryId,
long messageId,
String mx,
String defaultMailingListAddress) |
static String |
getRSSURL(long plid,
long categoryId,
long threadId,
long userId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static String |
getSubjectForEmail(com.liferay.message.boards.kernel.model.MBMessage message) |
static String |
getSubjectWithoutMessageId(javax.mail.Message message) |
static String[] |
getThreadPriority(MBGroupServiceSettings mbGroupServiceSettings,
String languageId,
double value) |
static Set<Long> |
getThreadSubscriptionClassPKs(long userId) |
static Date |
getUnbanDate(com.liferay.message.boards.kernel.model.MBBan ban,
int expireInterval) |
static String |
getUserRank(MBGroupServiceSettings mbGroupServiceSettings,
String languageId,
int posts) |
static String[] |
getUserRank(MBGroupServiceSettings mbGroupServiceSettings,
String languageId,
com.liferay.message.boards.kernel.model.MBStatsUser statsUser) |
static boolean |
hasMailIdHeader(javax.mail.Message message) |
static boolean |
isValidMessageFormat(String messageFormat) |
static boolean |
isViewableMessage(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.message.boards.kernel.model.MBMessage message) |
static boolean |
isViewableMessage(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.message.boards.kernel.model.MBMessage message,
com.liferay.message.boards.kernel.model.MBMessage parentMessage) |
static void |
propagatePermissions(long companyId,
long groupId,
long parentMessageId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static String |
replaceMessageBodyPaths(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
String messageBody) |
static void |
updateCategoryMessageCount(long categoryId) |
static void |
updateCategoryStatistics(long categoryId) |
static void |
updateCategoryThreadCount(long categoryId) |
static void |
updateThreadMessageCount(long threadId) |
public static final String BB_CODE_EDITOR_WYSIWYG_IMPL_KEY
public static final String EMOTICONS
public static final String MESSAGE_POP_PORTLET_PREFIX
public static void collectMultipartContent(javax.mail.internet.MimeMultipart multipart, MBMailMessage collector) throws Exception
Exception
public static void collectPartContent(javax.mail.Part part, MBMailMessage mbMailMessage) throws Exception
Exception
public static String getAbsolutePath(PortletRequest portletRequest, long mbCategoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static String getBBCodeHTML(String msgBody, String pathThemeImages)
public static long getCategoryId(javax.servlet.http.HttpServletRequest request, com.liferay.message.boards.kernel.model.MBCategory category)
public static long getCategoryId(javax.servlet.http.HttpServletRequest request, com.liferay.message.boards.kernel.model.MBMessage message)
public static long getCategoryId(String messageIdString)
public static Set<Long> getCategorySubscriptionClassPKs(long userId)
public static Map<String,String> getEmailDefinitionTerms(PortletRequest portletRequest, String emailFromAddress, String emailFromName)
public static Map<String,String> getEmailFromDefinitionTerms(PortletRequest portletRequest)
public static List<Object> getEntries(com.liferay.portal.kernel.search.Hits hits)
public static long getMessageId(String messageIdString)
public static int getMessageIdStringOffset()
public static long getParentMessageId(javax.mail.Message message) throws Exception
Exception
public static String getParentMessageIdString(javax.mail.Message message) throws Exception
Exception
public static String getReplyToAddress(long categoryId, long messageId, String mx, String defaultMailingListAddress)
public static String getRSSURL(long plid, long categoryId, long threadId, long userId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public static String getSubjectForEmail(com.liferay.message.boards.kernel.model.MBMessage message) throws Exception
Exception
public static String getSubjectWithoutMessageId(javax.mail.Message message) throws Exception
Exception
public static String[] getThreadPriority(MBGroupServiceSettings mbGroupServiceSettings, String languageId, double value) throws Exception
Exception
public static Set<Long> getThreadSubscriptionClassPKs(long userId)
public static Date getUnbanDate(com.liferay.message.boards.kernel.model.MBBan ban, int expireInterval)
public static String getUserRank(MBGroupServiceSettings mbGroupServiceSettings, String languageId, int posts) throws Exception
Exception
public static String[] getUserRank(MBGroupServiceSettings mbGroupServiceSettings, String languageId, com.liferay.message.boards.kernel.model.MBStatsUser statsUser) throws Exception
Exception
public static boolean hasMailIdHeader(javax.mail.Message message) throws Exception
Exception
public static boolean isValidMessageFormat(String messageFormat)
public static boolean isViewableMessage(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.message.boards.kernel.model.MBMessage message) throws Exception
Exception
public static boolean isViewableMessage(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.message.boards.kernel.model.MBMessage message, com.liferay.message.boards.kernel.model.MBMessage parentMessage) throws Exception
Exception
public static void propagatePermissions(long companyId, long groupId, long parentMessageId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static String replaceMessageBodyPaths(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, String messageBody)
public static void updateCategoryMessageCount(long categoryId)
public static void updateCategoryStatistics(long categoryId)
public static void updateCategoryThreadCount(long categoryId)
public static void updateThreadMessageCount(long threadId)