added setter methods for common properties
[cdmlib.git] / cdmlib-persistence / src / main / java / eu / etaxonomy / cdm / config / Configuration.java
1 // $Id$
2 /**
3 * Copyright (C) 2013 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10 package eu.etaxonomy.cdm.config;
11
12 import org.apache.lucene.util.Version;
13
14 /**
15 * @author a.kohlbecker
16 * @date Mar 26, 2013
17 *
18 */
19 public class Configuration {
20
21 /**
22 * This should be set via the hibernate properties but at the time being it
23 * is quite complex to get <code>hibernate.search.lucene_version</code> from
24 * the configuration and to pass it to all classes which require this
25 * version As a preliminary and unobtrusive solution the luceneVersion is
26 * now provided by this.
27 * <p>
28 * TODO A better solution for the future would be to provide all Lucene
29 * related instances of <code>LuceneSearch</code>, etc via a special
30 * factory. This factors would be a spring bean and thus could have access
31 * to the hibernate configuration. see #3369 (Lucene search factory or builder implemented)
32 *
33 */
34 @Deprecated // so we now it is not 100% save to use this
35 public static Version luceneVersion = Version.LUCENE_36;
36
37 /**
38 * Login name for the first user 'admin'
39 */
40 public static String adminLogin = "admin";
41
42 /**
43 * Default password for the first user 'admin'
44 */
45 public static String adminPassword = "00000";
46
47 }