| java.lang.Object com.mvnforum.MyUtil
MyUtil | public class MyUtil (Code) | | |
Method Summary | |
public static boolean | canViewAnyForumInCategory(int categoryID, MVNForumPermission permission) | public static boolean | canViewForum(ForumBean forumBean, MVNForumPermission permission) | public static void | checkClassName(Locale locale, String className, boolean required) | public static Hashtable | checkMembers(String[] memberNames, Locale locale) | public static void | ensureCorrectCurrentPassword(GenericRequest request) | public static void | ensureCorrectCurrentPassword(GenericRequest request, String password, String passwordMD5) | public static String | filter(String input, boolean enableHTML, boolean enableEmotion, boolean enableMVNCode, boolean enableNewLine, boolean enableURL) | public static String | getConfirmedEmailKey(int memberID) | public static String | getForumIconName(long lastLogon, long lastPost, int forumStatus, int forumThreadCount) | public static Collection | getForumsOwnedByMemberName(String memberName) | public static StringBuffer | getIndividualPermission(int combinePers, boolean globalPermission) | public static Locale | getLocale(String localeName) Get the locale from locale name
Parameters: localeName - : in this format la_CO_VA, eg. | public static String | getLocaleNameAndSlash(String localeName) Get the String with a slash character '/' before the locale name
Parameters: localeName - the user's preferred locale the String with a slash character '/' before the locale name ifthis locale is configed to support it. | public static String | getMemberTitle(int postCount) | public static Collection | getNewMembersInRecentDays(Timestamp fromDate, Timestamp toDate, String sort, String order) | public static Collection | getPrivateForums(MVNForumPermission perms) | public static String | getStringFromFreeMarkerTemplate(HashMap informationSet, String templateFileName) | public static String | getThreadIconName(long lastLogon, long lastPost, int postCount, int threadStatus) | public static String | getThreadPriorityIcon(int threadPriority) | public static String | getThreadTypeIcon(int threadType) | public static int | getViewableCategories(Collection categoryBeans, MVNForumPermission permission) | public static int | getViewableForums(Collection forumBeans, MVNForumPermission permission) | public static int | getViewablePosts(Collection forumBeans, MVNForumPermission permission) | public static int | getViewableThreads(Collection forumBeans, MVNForumPermission permission) | public static boolean | isRequestFromMobileDevice(GenericRequest request) | public static boolean | isRootAdmin(GenericRequest request) | public static boolean | isRootAdmin(HttpServletRequest request) | public static boolean | isRootAdminID(int memberID) | public static void | saveVNTyperMode(GenericRequest request, GenericResponse response) | public static void | saveVNTyperMode(HttpServletRequest request, HttpServletResponse response) | public static void | writeMvnCoreImage(HttpServletResponse response) | public static void | writeMvnForumImage(HttpServletResponse response) |
FORUM_ICON_READ_ACTIVE | final public static String FORUM_ICON_READ_ACTIVE(Code) | | |
FORUM_ICON_READ_CLOSED | final public static String FORUM_ICON_READ_CLOSED(Code) | | |
FORUM_ICON_READ_DISABLED | final public static String FORUM_ICON_READ_DISABLED(Code) | | |
FORUM_ICON_READ_LOCKED | final public static String FORUM_ICON_READ_LOCKED(Code) | | |
FORUM_ICON_UNREAD_ACTIVE | final public static String FORUM_ICON_UNREAD_ACTIVE(Code) | | |
FORUM_ICON_UNREAD_CLOSED | final public static String FORUM_ICON_UNREAD_CLOSED(Code) | | |
FORUM_ICON_UNREAD_DISABLED | final public static String FORUM_ICON_UNREAD_DISABLED(Code) | | |
FORUM_ICON_UNREAD_LOCKED | final public static String FORUM_ICON_UNREAD_LOCKED(Code) | | |
KEY_WORDS_OF_MOBILE_DEVICE | final public static String[] KEY_WORDS_OF_MOBILE_DEVICE(Code) | | |
canViewAnyForumInCategory | public static boolean canViewAnyForumInCategory(int categoryID, MVNForumPermission permission)(Code) | | |
filter | public static String filter(String input, boolean enableHTML, boolean enableEmotion, boolean enableMVNCode, boolean enableNewLine, boolean enableURL)(Code) | | |
getForumIconName | public static String getForumIconName(long lastLogon, long lastPost, int forumStatus, int forumThreadCount)(Code) | | |
getLocale | public static Locale getLocale(String localeName)(Code) | | Get the locale from locale name
Parameters: localeName - : in this format la_CO_VA, eg. en_US the locale instance of the localeName |
getLocaleNameAndSlash | public static String getLocaleNameAndSlash(String localeName)(Code) | | Get the String with a slash character '/' before the locale name
Parameters: localeName - the user's preferred locale the String with a slash character '/' before the locale name ifthis locale is configed to support it. Otherwise,an empty String will be return |
getMemberTitle | public static String getMemberTitle(int postCount)(Code) | | |
getThreadIconName | public static String getThreadIconName(long lastLogon, long lastPost, int postCount, int threadStatus)(Code) | | |
getThreadPriorityIcon | public static String getThreadPriorityIcon(int threadPriority)(Code) | | |
getThreadTypeIcon | public static String getThreadTypeIcon(int threadType)(Code) | | |
isRequestFromMobileDevice | public static boolean isRequestFromMobileDevice(GenericRequest request)(Code) | | Check if request is from a mobile device
|
isRootAdminID | public static boolean isRootAdminID(int memberID)(Code) | | check if memberID belongs to admin's id
|
|
|