psdi.dm.util

Class DMDirStructure

  • java.lang.Object
    • psdi.dm.util.DMDirStructure


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

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

      Constructors 
      Constructor and Description
      DMDirStructure() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getDirPath(java.lang.String dirType)
      Create folder in DM root folder if it does not exist.
      static java.io.File getDirPathFile(java.lang.String dirType)
      Create folder in DM root folder if it does not exist.
      static java.lang.String getDMRootDeploymentDirName()
      Get the root folder name for DM
      static java.lang.String getPreviewDirPath()
      Get the preview log folder
      static java.lang.String getProcessedDirPath(java.lang.String dirType)
      Create the ARCHIVE folder in DM root folder if not exists.
      • Methods inherited from class java.lang.Object

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

      • MaximoRootURL

        public static java.lang.String MaximoRootURL
    • Constructor Detail

      • DMDirStructure

        public DMDirStructure()
    • Method Detail

      • getDMRootDeploymentDirName

        public static java.lang.String getDMRootDeploymentDirName()
                                                           throws MXException
        Get the root folder name for DM
        Returns:
        The root folder name. This will never be null or an empty string.
        Throws:
        MXException
      • getDirPathFile

        public static java.io.File getDirPathFile(java.lang.String dirType)
                                           throws MXException
        Create folder in DM root folder if it does not exist. If "migration" is passed, the root folder is returned.
        Parameters:
        dirType - The name of the subfolder, or "migration".
        Returns:
        The File object that points to the (sub)folder, which is now known to exist.
        Throws:
        MXException - With dm.dmcreatedir if unable to create the directory.
      • getDirPath

        public static java.lang.String getDirPath(java.lang.String dirType)
                                           throws MXException
        Create folder in DM root folder if it does not exist. If "migration" is passed, the root folder is returned.
        Parameters:
        dirType - The name of the subfolder, or "migration".
        Returns:
        The path to the subfolder, which is now known to exist.
        Throws:
        MXException - With dm.dmcreatedir if unable to create the directory.
      • getProcessedDirPath

        public static java.lang.String getProcessedDirPath(java.lang.String dirType)
                                                    throws MXException
        Create the ARCHIVE folder in DM root folder if not exists. pkg jar files exist in this directory.
        Returns:
        Throws:
        MXException
      • getPreviewDirPath

        public static java.lang.String getPreviewDirPath()
                                                  throws MXException
        Get the preview log folder
        Returns:
        Throws:
        MXException