Method Summary |
|
public static Pagination | buildPagination(HttpServletRequest request) Create a pagination object based on parameters found in the current
request.
Parameters: request - The servlet request object. Parameters: next - A ModelAndView object corresponding to the page beingconstructed. |
public static DataHandler | dataHandlerInstance() Utility method to retrieve an instance of the current data handler. |
public static String | extractCommentsLink(String name) Given an article name, return the appropriate comments topic article name.
For example, if the article name is "Topic" then the return value is
"Comments:Topic".
Parameters: name - The article name from which a comments article name is tobe constructed. |
public static String | extractTopicLink(String name) Given an article name, extract an appropriate topic article name. |
public static Topic | findRedirectedTopic(Topic parent, int attempts) |
public static String | getParameterFromRequest(HttpServletRequest request, String name, boolean decodeUnderlines) Retrieve a parameter from the servlet request. |
public static String | getTopicFromRequest(HttpServletRequest request) Retrieve a topic name from the servlet request. |
public static String | getTopicFromURI(HttpServletRequest request) Retrieve a topic name from the request URI. |
public static String | getVirtualWikiFromRequest(HttpServletRequest request) Retrieve a virtual wiki name from the servlet request. |
public static String | getVirtualWikiFromURI(HttpServletRequest request) Retrieve a virtual wiki name from the request URI. |
public static boolean | isCommentsPage(String topicName) Given a topic name, determine if that name corresponds to a comments
page.
Parameters: topicName - The topic name (non-null) to examine to determine if itis a comments page or not. |
public static boolean | isFirstUse() Determine if the system properties file exists and has been initialized. |
public static boolean | isUpgrade() Determine if the system code has been upgraded from the configured system
version. |
public static String | readSpecialPage(Locale locale, String pageName) Utility method for reading special topic values from files and returning
the file contents. |
public static List | retrieveUploadFileList() If a blacklist or whitelist of allowed file upload types is being used,
retrieve the list from the properties file and return as a List object.
If no such list is being used then return an empty List object.
A list consisting of lowercase versions of all file extensionsfor the whitelist/blacklist. |
public static SearchEngine | searchEngineInstance() Utility method to retrieve an instance of the current search engine. |
public static UserHandler | userHandlerInstance() Utility method to retrieve an instance of the current user handler. |
public static WikiMessage | validateDirectory(String name) Verify that a directory exists and is writable.
Parameters: name - The full name (including the path) for the directory being tested. |
public static void | validateRole(Role role) Utility method for determining if the parameters of a Role are valid
or not. |
public static void | validateTopicName(String name) Utility method for determining if a topic name is valid for use on the Wiki,
meaning that it is not empty and does not contain any invalid characters. |
public static void | validateUserName(String name) Utility method for determining if a username is valid for use on the Wiki,
meaning that it is not empty and does not contain any invalid characters. |