public class DMSUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getEditUrl(DMSObject object,
DMSFolder folder,
boolean readOnly)
Returns a relative URL (starting with classname) for editing or viewing a document in the DMS.
|
static String |
getIconClass(DMSObject object)
Returns css classes for the icon of the document.
|
static String |
getPath(DMSFolder folder,
DMSObject object)
Returns the path string for a object in a folder.
|
static Page |
showDMSFolder(HttpServletRequest req)
Show a DMSFolder.
|
static void |
showDocument(DMSDocForm document,
HttpServletRequest req,
HttpServletResponse res)
Send the contents of a document to the client.
|
public static String getIconClass(DMSObject object)
object
- a DMSObjectpublic static Page showDMSFolder(HttpServletRequest req) throws Exception
getPath(DMSFolder, DMSObject)
)req
- Exception
public static String getEditUrl(DMSObject object, DMSFolder folder, boolean readOnly)
object
- a DMSObjectfolder
- the folder containing the documentreadOnly
- if true the object is opened in view mode (applicable for forms where an edit url is returned)public static void showDocument(DMSDocForm document, HttpServletRequest req, HttpServletResponse res) throws Exception
document
- a documentException
public static String getPath(DMSFolder folder, DMSObject object)
folder
- a folderobject
- a object in the folder@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.