psdi.webclient.system.dojo

Class Dojo

  • java.lang.Object
    • psdi.webclient.system.dojo.Dojo


  • public class Dojo
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String JAVASCRIPT_PATH 
    • Constructor Summary

      Constructors 
      Constructor and Description
      Dojo() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.util.Map getAvailableWidgets(javax.servlet.ServletContext servletContext, java.lang.String dojoModuleName)
      This method lists all the dojo components on a specific directory declared by its .json configuration files.
      static java.lang.String getDirectory(javax.servlet.http.HttpServletRequest request, java.lang.String resourcePath, java.lang.String prefix) 
      static java.lang.String getDojoDirectory(javax.servlet.http.HttpServletRequest request)
      Returns the directory under the /webclient/javascript path that contains the latest version of Dojo.
      static java.util.List getDojoLayers(java.lang.String path, javax.servlet.ServletContext context) 
      static java.lang.String getDojoSrcDirectory(java.io.File baseDir) 
      static java.lang.String getMaximoJavascriptDirectory(javax.servlet.http.HttpServletRequest request) 
      static java.lang.String getReleaseDirectory(java.io.File baseDir, java.lang.String prefix) 
      static java.lang.String getSkinsDirectory(javax.servlet.http.HttpServletRequest request) 
      static boolean isDevelopmentBuild() 
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • Dojo

        public Dojo()
    • Method Detail

      • getDojoSrcDirectory

        public static java.lang.String getDojoSrcDirectory(java.io.File baseDir)
        Parameters:
        baseDir - The path to the javascript directory under maximouiweb that contains the dojo directories.
      • getReleaseDirectory

        public static java.lang.String getReleaseDirectory(java.io.File baseDir,
                                                           java.lang.String prefix)
      • getDojoDirectory

        public static java.lang.String getDojoDirectory(javax.servlet.http.HttpServletRequest request)
        Returns the directory under the /webclient/javascript path that contains the latest version of Dojo. This directory must be in the format dojo_#-#-#_YYYYMMDD. #-#-# is the Dojo version number and YYYYMMDD is the build date.
        Parameters:
        request - A servlet request that is used gain access to the /webclient/javascript resource path.
        Returns:
        The directory name under /webclient/javascript that contains the latest version of Dojo.
      • getSkinsDirectory

        public static java.lang.String getSkinsDirectory(javax.servlet.http.HttpServletRequest request)
      • getMaximoJavascriptDirectory

        public static java.lang.String getMaximoJavascriptDirectory(javax.servlet.http.HttpServletRequest request)
      • isDevelopmentBuild

        public static boolean isDevelopmentBuild()
      • getDojoLayers

        public static java.util.List getDojoLayers(java.lang.String path,
                                                   javax.servlet.ServletContext context)
      • getDirectory

        public static java.lang.String getDirectory(javax.servlet.http.HttpServletRequest request,
                                                    java.lang.String resourcePath,
                                                    java.lang.String prefix)
      • getAvailableWidgets

        public static java.util.Map getAvailableWidgets(javax.servlet.ServletContext servletContext,
                                                        java.lang.String dojoModuleName)
                                                 throws MXException
        This method lists all the dojo components on a specific directory declared by its .json configuration files.
        Parameters:
        servletContext - The servlet context object.
        dojoModuleName - the dojo module name using "." notation.
        Returns:
        A map of widgets containing the tool name and its provider. Note, files started with "_" won't be listed.
        Throws:
        MXException