| java.lang.Object org.contineo.web.document.DownloadDocUtil
DownloadDocUtil | public class DownloadDocUtil (Code) | | some helper utilities to download a document but also to add the document to
the recent files of the user
author: Sebastian Stein |
addToRecentFiles | public static void addToRecentFiles(String userName, int menuId)(Code) | | adds the given document to the recent files entry of the user
Parameters: userName - the username of the user accessing the file Parameters: menuId - id of the menu the user accessed |
downloadDocument | public static void downloadDocument(HttpServletResponse response, int docId, String docVerId) throws FileNotFoundException, IOException(Code) | | sends the specified document to the response object; the client will
receive it as a download
Parameters: response - the document is written to this object Parameters: docId - Id of the document Parameters: docVerId - name of the version; if null the latest version willreturned |
downloadDocument | public static void downloadDocument(HttpServletResponse response, String docId, String docVerId) throws FileNotFoundException, IOException(Code) | | sends the specified document to the response object; the client will
receive it as a download
Parameters: response - the document is written to this object Parameters: docId - Id of the document Parameters: docVerId - name of the version; if null the latest version willreturned |
getMimeType | public static String getMimeType(Menu docId)(Code) | | extracts the mimetype of the document
|
|
|