psdi.util

Class LinkedDocumentInfo

  • java.lang.Object
    • psdi.util.LinkedDocumentInfo


  • public class LinkedDocumentInfo
    extends java.lang.Object
    This class translates a filename to a web url, using the information in doclink properties. Doclink properties is a text file stored in the MXServer root directory.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void clearDocProps()
      Clear the document path properties so they will be reloaded upon next request.
      static java.lang.String getDocumentURL(java.lang.String documentFile)
      Translate a filename to a web url.
      static java.util.Properties getProperties()
      Returns the cached doclink properties.
      static java.util.ArrayList getTopLevelFolders() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkedDocumentInfo

        public LinkedDocumentInfo()
    • Method Detail

      • getDocumentURL

        public static java.lang.String getDocumentURL(java.lang.String documentFile)
        Translate a filename to a web url. If mapping not found in doclink properties, then assume mapping is http://servername

        All the doclinks functionality regarding filenames are case sensitive because regardless of the operating system, the jsp server is case sensitive.

        Parameters:
        documentFile - Filename, including full path (drive and directory). For example:
        r:\storage\mro\linkdocs\sample.doc
        Returns:
        web url. For example:
        http://docserver/mro/linkdocs/sample.doc
      • getProperties

        public static java.util.Properties getProperties()
        Returns the cached doclink properties. If the cache is null, then loads the properties.
      • getTopLevelFolders

        public static java.util.ArrayList getTopLevelFolders()
      • clearDocProps

        public static void clearDocProps()
        Clear the document path properties so they will be reloaded upon next request. This should be called only by MaxPropCache.