Rev 1030 | Rev 1045 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1030 | Rev 1041 | ||
---|---|---|---|
1 | <?xml version='1.0' encoding='utf-8'?> |
1 | <?xml version='1.0' encoding='utf-8'?> |
2 | 2 | ||
3 | <!-- |
3 | <!-- |
4 | HostAdmiral configuration file. |
4 | HostAdmiral configuration file. |
5 | There are two files - one is default, the second one is user-defined. |
5 | There are two files - one is default, the second one is user-defined. |
6 | Both files are merged with user-definition preference. |
6 | Both files are merged with user-definition preference. |
- | 7 | ||
- | 8 | DO NOT EDIT THIS FILE |
|
- | 9 | Make all changes to hostadmiral_config.xml |
|
7 | --> |
10 | --> |
8 | <hostadmiral> |
11 | <hostadmiral> |
9 | <!-- |
12 | <!-- |
10 | Version of this config. By changing major number the config must be converted to new |
13 | Version of this config. By changing major number the config must be converted to new |
11 | one. Minor changes allow old file using. |
14 | one. Minor changes allow old file using. |
12 | --> |
15 | --> |
13 | <version major="1" minor="0" /> |
16 | <version major="1" minor="0" /> |
14 | 17 | ||
15 | <!-- |
18 | <!-- |
16 | Which data source is used to store internal information. |
19 | Which data source is used to store internal information. |
17 | --> |
20 | --> |
18 | <datasource> |
21 | <datasource> |
19 | <!-- Data source type. Only "hibernate" is supported at the moment --> |
22 | <!-- Data source type. Only "hibernate" is supported at the moment --> |
20 | <type>hibernate</type> |
23 | <type>hibernate</type> |
21 | 24 | ||
22 | <!-- Hibernate and database properties --> |
25 | <!-- Hibernate and database properties --> |
23 | <settings> |
26 | <settings> |
24 | <!-- DB driver --> |
27 | <!-- DB driver --> |
25 | <driver>org.postgresql.Driver</driver> |
28 | <driver>org.postgresql.Driver</driver> |
26 | 29 | ||
27 | <!-- DB user --> |
30 | <!-- DB user --> |
28 | <username></username> |
31 | <username></username> |
29 | 32 | ||
30 | <!-- DB password --> |
33 | <!-- DB password --> |
31 | <password></password> |
34 | <password></password> |
32 | 35 | ||
33 | <!-- DB URL: type, host and database name, format depends on DB driver --> |
36 | <!-- DB URL: type, host and database name, format depends on DB driver --> |
34 | <url>jdbc:postgresql://localhost/hostadmiral</url> |
37 | <url>jdbc:postgresql://localhost/hostadmiral</url> |
35 | 38 | ||
36 | <!-- DB dialect, must conform to DB driver --> |
39 | <!-- DB dialect, must conform to DB driver --> |
37 | <dialect>net.sf.hibernate.dialect.PostgreSQLDialect</dialect> |
40 | <dialect>net.sf.hibernate.dialect.PostgreSQLDialect</dialect> |
38 | </settings> |
41 | </settings> |
39 | </datasource> |
42 | </datasource> |
40 | 43 | ||
41 | <!-- |
44 | <!-- |
42 | Classes which must be initialized at program startup. |
45 | Classes which must be initialized at program startup. |
43 | If class implements ak.hostadmiral.util.ConfigInit then the method init will be called, |
46 | If class implements ak.hostadmiral.util.ConfigInit then the method init will be called, |
44 | only such classes can have init params. Otherwise the class is just called by "forName" |
47 | only such classes can have init params. Otherwise the class is just called by "forName" |
45 | and can use static initializers. |
48 | and can use static initializers. |
46 | --> |
49 | --> |
47 | <initializations> |
50 | <initializations> |
48 | <!-- Core classes --> |
51 | <!-- Core classes --> |
49 | <initialization> |
52 | <initialization> |
50 | <class>ak.hostadmiral.core.model.UserManager</class> |
53 | <class>ak.hostadmiral.core.model.UserManager</class> |
- | 54 | <init-param> |
|
- | 55 | <param-name>store</param-name> |
|
- | 56 | <param-value>ak.hostadmiral.core.model.store.hibernate.UserHibernate</param-value> |
|
- | 57 | </init-param> |
|
51 | </initialization> |
58 | </initialization> |
52 | <initialization> |
59 | <initialization> |
53 | <class>ak.hostadmiral.core.model.SystemUserManager</class> |
60 | <class>ak.hostadmiral.core.model.SystemUserManager</class> |
- | 61 | <init-param> |
|
- | 62 | <param-name>store</param-name> |
|
- | 63 | <param-value>ak.hostadmiral.core.model.store.hibernate.SystemUserHibernate</param-value> |
|
- | 64 | </init-param> |
|
54 | </initialization> |
65 | </initialization> |
55 | <initialization> |
66 | <initialization> |
56 | <class>ak.hostadmiral.core.model.InetDomainManager</class> |
67 | <class>ak.hostadmiral.core.model.InetDomainManager</class> |
- | 68 | <init-param> |
|
- | 69 | <param-name>store</param-name> |
|
- | 70 | <param-value>ak.hostadmiral.core.model.store.hibernate.InetDomainHibernate</param-value> |
|
- | 71 | </init-param> |
|
57 | </initialization> |
72 | </initialization> |
58 | <initialization> |
73 | <initialization> |
59 | <class>ak.hostadmiral.core.model.MailboxManager</class> |
74 | <class>ak.hostadmiral.core.model.MailboxManager</class> |
- | 75 | <init-param> |
|
- | 76 | <param-name>store</param-name> |
|
- | 77 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailboxHibernate</param-value> |
|
- | 78 | </init-param> |
|
60 | </initialization> |
79 | </initialization> |
61 | <initialization> |
80 | <initialization> |
62 | <class>ak.hostadmiral.core.model.MailAliasManager</class> |
81 | <class>ak.hostadmiral.core.model.MailAliasManager</class> |
- | 82 | <init-param> |
|
- | 83 | <param-name>store</param-name> |
|
- | 84 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailAliasHibernate</param-value> |
|
- | 85 | </init-param> |
|
63 | </initialization> |
86 | </initialization> |
64 | <initialization> |
87 | <initialization> |
65 | <class>ak.hostadmiral.core.model.MailAliasDestinationManager</class> |
88 | <class>ak.hostadmiral.core.model.MailAliasDestinationManager</class> |
- | 89 | <init-param> |
|
- | 90 | <param-name>store</param-name> |
|
- | 91 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailAliasDestinationHibernate</param-value> |
|
- | 92 | </init-param> |
|
66 | </initialization> |
93 | </initialization> |
67 | </initializations> |
94 | </initializations> |
68 | </hostadmiral> |
95 | </hostadmiral> |