public File getPlatformTempFile(final String fileName) throws BonitaHomeNotSetException, IOException { final Folder tempFolder = getPlatformTempFolder(); final File file = tempFolder.getFile(fileName); file.delete(); file.createNewFile(); return file; }
public File getPlatformTempFile(final String fileName) throws BonitaHomeNotSetException, IOException { final Folder tempFolder = getPlatformTempFolder(); final File file = tempFolder.getFile(fileName); file.delete(); file.createNewFile(); return file; }
private static Folder getPlatformClassLoaderFolder() throws IOException { return getFolder(getPlatformTempFolder(), "classloaders").createIfNotExists(); }
private static Folder getPlatformClassLoaderFolder() throws IOException { return getFolder(getPlatformTempFolder(), "classloaders").createIfNotExists(); }
public File getSecurityScriptsFolder(long tenantId) throws BonitaHomeNotSetException, IOException { final Folder localFolder = getFolder(getPlatformTempFolder(), "security-scripts").createIfNotExists(); final Folder tenantSecurityScriptsFolder = getFolder(localFolder, String.valueOf(tenantId)).createIfNotExists(); List<BonitaConfiguration> tenantSecurityScripts = getConfigurationService().getTenantSecurityScripts(tenantId); writeBonitaConfiguration(tenantSecurityScriptsFolder.getFile(), tenantSecurityScripts); return tenantSecurityScriptsFolder.getFile(); }
public File getSecurityScriptsFolder(long tenantId) throws BonitaHomeNotSetException, IOException { final Folder localFolder = getFolder(getPlatformTempFolder(), "security-scripts").createIfNotExists(); final Folder tenantSecurityScriptsFolder = getFolder(localFolder, String.valueOf(tenantId)).createIfNotExists(); List<BonitaConfiguration> tenantSecurityScripts = getConfigurationService().getTenantSecurityScripts(tenantId); writeBonitaConfiguration(tenantSecurityScriptsFolder.getFile(), tenantSecurityScripts); return tenantSecurityScriptsFolder.getFile(); }