Package de.xima.fc

Class PathHandler.FS

  • Enclosing class:
    PathHandler

    public static final class PathHandler.FS
    extends Object
    Zentrale Behandlung von Pfaden im lokalen FileSystem
    • Method Detail

      • getPluginBaseDir

        public static Path getPluginBaseDir()
      • getPluginBaseDirPath

        public static String getPluginBaseDirPath()
      • getPluginDirPath

        public static String getPluginDirPath​(String scopeKey)
      • getPluginDirPath

        public static String getPluginDirPath​(String scopeKey,
                                              String runtimeKey)
      • getDataDirFile

        public static File getDataDirFile()
      • getDataDirPath

        public static Path getDataDirPath()
      • getDataDir

        public static String getDataDir()
      • setDataDir

        public static void setDataDir​(String configuredDataDir)
        Sets a custom directory where applicatio specific data is stored.
        Parameters:
        configuredDataDir - The custom data directory.
      • getMalwareScanDir

        public static Path getMalwareScanDir()
        Returns:
        The directory where files should be placed that may potentially contain malware. These files should be scanned by a IMalwareScanner before they are used.
      • setMalwareScanDir

        public static void setMalwareScanDir​(Path scanDir)
        Parameters:
        scanDir - The directory where files should be placed that may potentially contain malware. These files should be scanned by a IMalwareScanner before they are used.
      • getMalwareScanDir

        public static Path getMalwareScanDir​(boolean create)
                                      throws IOException
        Parameters:
        create - If true, ensures the directory exists and creates it if not.
        Returns:
        The directory where files should be placed that may potentially contain malware. These files should be scanned by a IMalwareScanner before they are used.
        Throws:
        IOException - When the directory does not exist and could not be created.
      • getMalwareScanDirForSession

        public static Path getMalwareScanDirForSession​(javax.servlet.http.HttpSession session)
                                                throws IOException
        Similar to getMalwareScanDir(), but returns a subdirectory that is bound to the lifecycle of an HTTP session. Different sessions will return different directories. When the HTTP session is invalidated, the directory and all its content will be deleted.
        Parameters:
        session - The HTTP session for which to get the directory.
        Returns:
        The directory where files should be placed that may potentially contain malware. These files should be scanned by a IMalwareScanner before they are used.
        Throws:
        IOException - When the directory could not be created.
      • getTempDir

        public static String getTempDir()
      • setTempDir

        public static void setTempDir​(String customTempDir)
      • getTempPath

        public static Path getTempPath()
      • getVorgangsWorkflowDirPath

        public static String getVorgangsWorkflowDirPath​(Vorgang v)
        Liefert den Pfad zum temporären Verzeichnis für die Verarbeitung des übergebenen Vorgangs.
      • getVorgangsWorkflowDirPath

        public static String getVorgangsWorkflowDirPath​(String processId)
      • getCacheDirPath

        public static Path getCacheDirPath()
      • getCacheDir

        public static String getCacheDir()
      • setCacheDir

        public static void setCacheDir​(Path cacheDir)
        Sets a custom directory where cache files are stored.
        Parameters:
        cacheDir - The custom cache directory.
      • getAktionWorkflowDirPath

        @Deprecated
        public static String getAktionWorkflowDirPath​(Vorgang v,
                                                      Aktion a)
        Deprecated.
        Liefert den Pfad zum temporären Verzeichnis für die Verarbeitung der übergebenen Aktion innerhalb des übergebenen Vorgangs.
      • getSharedWorkflowDirPath

        public static String getSharedWorkflowDirPath​(Vorgang formRecord)
      • getSharedWorkflowDirPath

        public static String getSharedWorkflowDirPath​(String processId)
      • getSharedWorkflowDirPath

        public static String getSharedWorkflowDirPath​(Vorgang formRecord,
                                                      String postfix)
      • getSharedWorkflowDirPath

        public static String getSharedWorkflowDirPath​(String processId,
                                                      String postfix)
      • getKerberosLoginConfigFile

        public static File getKerberosLoginConfigFile()
      • getKerberosKRB5ConfigFile

        public static File getKerberosKRB5ConfigFile()
      • getConfigDir

        public static File getConfigDir()
      • setConfigDir

        public static void setConfigDir​(File configDir)
      • getConfigDirPath

        public static Path getConfigDirPath()
      • getLicenseFile

        @Deprecated
        public static File getLicenseFile()
        Deprecated.
      • setPluginDir

        public static void setPluginDir​(Path pluginDir)
        Sets a custom directory where plugin files are stored, such as JAR files and properties file.
        Parameters:
        pluginDir - The custom plugin directory.
      • getMandantBaseDirPath

        @Deprecated
        public static String getMandantBaseDirPath​(Mandant m)
        Deprecated.
        Liefert das mandantenspezifische Verzeichnis (nutzerdefiniert oder Standardwert), das für die Speicherung von Dateien verwendet werden kann.
      • getBackupDir

        @Deprecated
        public static File getBackupDir()
        Deprecated.
        Liefert den Pfad zum Backup-Verzeichnis alter FormCycle-Versionen (Wird nur noch für Übergangszeitraum benötigt)
        Returns:
        File the backup-dir
      • getVorgangsAttachmentDirPath

        @Deprecated
        public static String getVorgangsAttachmentDirPath​(Vorgang v)
                                                   throws IOException
        Deprecated.
        Liefert den Pfad zum Verzeichnis für die Vorgangsdaten (Attachments).
        Throws:
        IOException