Class PathHandler.FS
java.lang.Object
de.xima.fc.PathHandler.FS
- Enclosing class:
PathHandler
Zentrale Behandlung von Pfaden im lokalen FileSystem
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated.static StringgetAktionWorkflowDirPath(Vorgang v, Aktion a, String postfix) Deprecated.static FileDeprecated.static Stringstatic Pathstatic StringgetCacheDirPath(String cacheName) Deprecated.static <E extends IFileDataEntity<?>, T extends IFileProviding<?,E>>
StringgetCacheDirPath(T entity) static Filestatic Pathstatic Stringstatic Filestatic Pathstatic Filestatic Filestatic FileDeprecated.static Pathstatic PathgetMalwareScanDir(boolean create) static PathgetMalwareScanDirForSession(javax.servlet.http.HttpSession session) Similar togetMalwareScanDir(), but returns a subdirectory that is bound to the lifecycle of an HTTP session.static StringDeprecated.static StringgetMandantPluginDirPath(Mandant mandant) Deprecated.static StringgetNodeWorkflowDirPath(Vorgang formRecord, WorkflowNode node) static StringgetNodeWorkflowDirPath(Vorgang formRecord, WorkflowNode node, String postfix) static StringgetNodeWorkflowDirPath(String processId, WorkflowNode node) static StringgetNodeWorkflowDirPath(String processId, WorkflowNode node, String postfix) static Pathstatic Stringstatic StringgetPluginDirPath(String scopeKey) static StringgetPluginDirPath(String scopeKey, String runtimeKey) static StringgetSharedWorkflowDirPath(Vorgang formRecord) static StringgetSharedWorkflowDirPath(Vorgang formRecord, String postfix) static StringgetSharedWorkflowDirPath(String processId) static StringgetSharedWorkflowDirPath(String processId, String postfix) static StringDeprecated.static Stringstatic Filestatic FilegetTempFolder(boolean createIfMissing) static Pathstatic StringgetTriggerWorkflowDirPath(Vorgang formRecord, WorkflowTrigger trigger) static StringgetTriggerWorkflowDirPath(Vorgang formRecord, WorkflowTrigger trigger, String postfix) static StringgetTriggerWorkflowDirPath(String processId, WorkflowTrigger trigger) static StringgetTriggerWorkflowDirPath(String processId, WorkflowTrigger trigger, String postfix) static StringDeprecated.static StringLiefert den Pfad zum temporären Verzeichnis für die Verarbeitung des übergebenen Vorgangs.static StringgetVorgangsWorkflowDirPath(String processId) static voidsetCacheDir(Path cacheDir) Sets a custom directory where cache files are stored.static voidsetConfigDir(File configDir) static voidsetDataDir(String configuredDataDir) Sets a custom directory where applicatio specific data is stored.static voidsetMalwareScanDir(Path scanDir) static voidsetPluginDir(Path pluginDir) Sets a custom directory where plugin files are stored, such as JAR files and properties file.static voidsetTempDir(String customTempDir)
-
Method Details
-
getPluginBaseDir
-
getPluginBaseDirPath
-
getPluginDirPath
-
getPluginDirPath
-
getDataDirFile
-
getDataDirPath
-
getDataDir
-
setDataDir
Sets a custom directory where applicatio specific data is stored.- Parameters:
configuredDataDir- The custom data directory.
-
getMalwareScanDir
- Returns:
- The directory where files should be placed that may potentially contain malware. These files should
be scanned by a
IMalwareScannerbefore they are used.
-
setMalwareScanDir
- Parameters:
scanDir- The directory where files should be placed that may potentially contain malware. These files should be scanned by aIMalwareScannerbefore they are used.
-
getMalwareScanDir
- Parameters:
create- Iftrue, 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
IMalwareScannerbefore 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 togetMalwareScanDir(), 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
IMalwareScannerbefore they are used. - Throws:
IOException- When the directory could not be created.
-
getTempFolder
- Throws:
IOException
-
getTempDir
-
setTempDir
-
getTempPath
-
getTempFolder
- Throws:
IOException
-
getVorgangsWorkflowDirPath
-
getVorgangsWorkflowDirPath
-
getCacheDirPath
-
getCacheDir
-
setCacheDir
Sets a custom directory where cache files are stored.- Parameters:
cacheDir- The custom cache directory.
-
getCacheDirPath
Deprecated. -
getCacheDirPath
public static <E extends IFileDataEntity<?>, T extends IFileProviding<?,E>> String getCacheDirPath(T entity) -
getAktionWorkflowDirPath
Deprecated.Liefert den Pfad zum temporären Verzeichnis für die Verarbeitung der übergebenen Aktion innerhalb des übergebenen Vorgangs. -
getNodeWorkflowDirPath
-
getNodeWorkflowDirPath
-
getTriggerWorkflowDirPath
-
getTriggerWorkflowDirPath
-
getAktionWorkflowDirPath
Deprecated. -
getTriggerWorkflowDirPath
public static String getTriggerWorkflowDirPath(Vorgang formRecord, WorkflowTrigger trigger, String postfix) -
getTriggerWorkflowDirPath
public static String getTriggerWorkflowDirPath(String processId, WorkflowTrigger trigger, String postfix) -
getNodeWorkflowDirPath
-
getNodeWorkflowDirPath
-
getKerberosLoginConfigFile
-
getKerberosKRB5ConfigFile
-
getConfigDir
-
setConfigDir
-
getConfigDirPath
-
getLicenseFile
Deprecated. -
setPluginDir
Sets a custom directory where plugin files are stored, such as JAR files and properties file.- Parameters:
pluginDir- The custom plugin directory.
-
getMandantBaseDirPath
Deprecated.Liefert das mandantenspezifische Verzeichnis (nutzerdefiniert oder Standardwert), das für die Speicherung von Dateien verwendet werden kann. -
getMandantPluginDirPath
Deprecated.- Throws:
IOException
-
getSystemPluginDirPath
Deprecated.- Throws:
IOException
-
getBackupDir
Deprecated.Liefert den Pfad zum Backup-Verzeichnis alter FormCycle-Versionen (Wird nur noch für Übergangszeitraum benötigt)- Returns:
Filethe backup-dir
-
getVorgangsAttachmentDirPath
Deprecated.Liefert den Pfad zum Verzeichnis für die Vorgangsdaten (Attachments).- Throws:
IOException
-
getPluginDirPath(String)