/** * @return Temporary directory */ public File getTmpDir() { return serverConfigurator.getTmpDir(); }
/** * @return Nuxeo config directory * @since 5.4.2 */ public File getConfigDir() { return serverConfigurator.getConfigDir(); }
/** * @return pid directory * @since 5.4.2 */ public File getPidDir() { return serverConfigurator.getPidDir(); }
/** * Check if the LDAP parameters are correct to bind to a LDAP server. if authenticate argument is true, it will also * check if the authentication against the LDAP server succeeds * * @param authenticate Indicates if authentication against LDAP should be checked. * @since 6.0 */ public void checkLdapConnection(String ldapUrl, String ldapBindDn, String ldapBindPwd, boolean authenticate) throws NamingException { checkLdapConnection(getContextEnv(ldapUrl, ldapBindDn, ldapBindPwd, authenticate)); }
/** * Change templates using given database template * * @param dbTemplate new database template * @since 5.4.2 */ public void changeDBTemplate(String dbTemplate) { changeTemplates(rebuildTemplatesStr(dbTemplate)); }
/** * @since 5.7 */ public void verifyInstallation() throws ConfigurationException { checkPaths(); checkNetwork(); }
/** * @return Temporary directory * @since 5.4.2 */ public File getTmpDir() { if (tmpDir == null) { tmpDir = new File(generator.getNuxeoHome(), getDefaultTmpDir()); } return tmpDir; }
/** * Extract a NoSQL database template from the current list of templates. Return the last one if there are multiples. * * @see #rebuildTemplatesStr(String) * @since 8.1 */ public String extractSecondaryDatabaseTemplateName() { return extractDbTemplateName(DB_SECONDARY_LIST, PARAM_TEMPLATE_DBSECONDARY_TYPE, PARAM_TEMPLATE_DBSECONDARY_NAME, null); }
/** * @return Pid directory (usually known as "run directory"); Returns log directory if not set by configuration. * @since 5.4.2 */ public File getPidDir() { if (pidDir == null) { pidDir = getLogDir(); } return pidDir; }
/** * Save changed parameters in {@code nuxeo.conf}. This method does not check values in map. Use * {@link #saveFilteredConfiguration(Map)} for parameters filtering. * * @param changedParameters Map of modified parameters * @see #saveFilteredConfiguration(Map) */ public void saveConfiguration(Map<String, String> changedParameters) throws ConfigurationException { // Keep generation true or once; switch false to once saveConfiguration(changedParameters, false, true); }
/** * @return Data directory * @since 5.4.2 */ public File getDataDir() { return serverConfigurator.getDataDir(); }
/** * @return Marketplace packages directory * @since 5.9.4 */ private File getPackagesDir() { return serverConfigurator.getPackagesDir(); }
/** * Ensure the server will start only wizard application, not Nuxeo * * @since 5.4.2 */ public void prepareWizardStart() { serverConfigurator.prepareWizardStart(); }
/** * @return output directory for files generation */ protected File getOutputDirectory() { return getRuntimeHome(); }
/** * @since 5.7 */ protected Properties getStoredConfig() { if (storedConfig == null) { updateStoredConfig(); } return storedConfig; }
/** * Delegate logs initialization to serverConfigurator instance * * @since 5.4.2 */ public void initLogs() { serverConfigurator.initLogs(); }
/** * @since 5.4.2 * @return Path to Tomcat configuration of Nuxeo context */ public String getTomcatConfig() { return "conf" + File.separator + "Catalina" + File.separator + "localhost" + File.separator + getContextName() + ".xml"; }
@Override public int compareTo(JVMVersion o) { return compareTo(o, UpTo.UPDATE); }
/** * Extract a database template from the current list of templates. Return the last one if there are multiples. * * @see #rebuildTemplatesStr(String) */ public String extractDatabaseTemplateName() { return extractDbTemplateName(DB_LIST, PARAM_TEMPLATE_DBTYPE, PARAM_TEMPLATE_DBNAME, "unknown"); }
/** * @return log directory * @since 5.4.2 */ public File getLogDir() { return serverConfigurator.getLogDir(); }