Rev 1071 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1071 | Rev 1223 | ||
---|---|---|---|
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 | 7 | ||
8 | DO NOT EDIT THIS FILE |
8 | DO NOT EDIT THIS FILE |
9 | Make all changes to hostadmiral_config.xml |
9 | Make all changes to hostadmiral_config.xml |
10 | --> |
10 | --> |
11 | <hostadmiral> |
11 | <hostadmiral> |
12 | <!-- |
12 | <!-- |
13 | 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 |
14 | one. Minor changes allow old file using. |
14 | one. Minor changes allow old file using. |
15 | --> |
15 | --> |
16 | <version major="1" minor="1" /> |
16 | <version major="1" minor="1" /> |
17 | 17 | ||
18 | <!-- |
18 | <!-- |
19 | Which data source is used to store internal information. |
19 | Which data source is used to store internal information. |
20 | --> |
20 | --> |
21 | <datasource> |
21 | <datasource> |
22 | <!-- Data source type. Only "hibernate" is supported at the moment --> |
22 | <!-- Data source type. Only "hibernate" is supported at the moment --> |
23 | <type>hibernate</type> |
23 | <type>hibernate</type> |
24 | 24 | ||
25 | <!-- Hibernate and database properties --> |
25 | <!-- Hibernate and database properties --> |
26 | <settings> |
26 | <settings> |
27 | <!-- DB driver --> |
27 | <!-- DB driver --> |
28 | <driver>org.postgresql.Driver</driver> |
28 | <driver>org.postgresql.Driver</driver> |
29 | 29 | ||
30 | <!-- DB user --> |
30 | <!-- DB user --> |
31 | <username></username> |
31 | <username></username> |
32 | 32 | ||
33 | <!-- DB password --> |
33 | <!-- DB password --> |
34 | <password></password> |
34 | <password></password> |
35 | 35 | ||
36 | <!-- 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 --> |
37 | <url>jdbc:postgresql://localhost/hostadmiral</url> |
37 | <url>jdbc:postgresql://localhost/hostadmiral</url> |
38 | 38 | ||
39 | <!-- DB dialect, must conform to DB driver --> |
39 | <!-- DB dialect, must conform to DB driver --> |
40 | <dialect>net.sf.hibernate.dialect.PostgreSQLDialect</dialect> |
40 | <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> |
41 | </settings> |
41 | </settings> |
42 | </datasource> |
42 | </datasource> |
43 | 43 | ||
44 | <!-- |
44 | <!-- |
45 | Classes which must be initialized at program startup. |
45 | Classes which must be initialized at program startup. |
46 | 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, |
47 | 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" |
48 | and can use static initializers. |
48 | and can use static initializers. |
49 | --> |
49 | --> |
50 | <initializations> |
50 | <initializations> |
51 | <!-- Core classes --> |
51 | <!-- Core classes --> |
52 | <initialization> |
52 | <initialization> |
53 | <class>ak.hostadmiral.core.model.UserManager</class> |
53 | <class>ak.hostadmiral.core.model.UserManager</class> |
54 | <init-param> |
54 | <init-param> |
55 | <param-name>store</param-name> |
55 | <param-name>store</param-name> |
56 | <param-value>ak.hostadmiral.core.model.store.hibernate.UserHibernate</param-value> |
56 | <param-value>ak.hostadmiral.core.model.store.hibernate.UserHibernate</param-value> |
57 | </init-param> |
57 | </init-param> |
58 | <init-param> |
58 | <init-param> |
59 | <param-name>passwordStore</param-name> |
59 | <param-name>passwordStore</param-name> |
60 | <param-value>ak.hostadmiral.core.model.PasswordStoreMd5</param-value> |
60 | <param-value>ak.hostadmiral.core.model.PasswordStoreMd5</param-value> |
61 | <param-value>ak.hostadmiral.core.model.PasswordStoreCrypt</param-value> |
61 | <param-value>ak.hostadmiral.core.model.PasswordStoreCrypt</param-value> |
62 | <param-value>ak.hostadmiral.core.model.PasswordStorePlain</param-value> |
62 | <param-value>ak.hostadmiral.core.model.PasswordStorePlain</param-value> |
63 | </init-param> |
63 | </init-param> |
64 | </initialization> |
64 | </initialization> |
65 | <initialization> |
65 | <initialization> |
66 | <class>ak.hostadmiral.core.model.SystemUserManager</class> |
66 | <class>ak.hostadmiral.core.model.SystemUserManager</class> |
67 | <init-param> |
67 | <init-param> |
68 | <param-name>store</param-name> |
68 | <param-name>store</param-name> |
69 | <param-value>ak.hostadmiral.core.model.store.hibernate.SystemUserHibernate</param-value> |
69 | <param-value>ak.hostadmiral.core.model.store.hibernate.SystemUserHibernate</param-value> |
70 | </init-param> |
70 | </init-param> |
71 | </initialization> |
71 | </initialization> |
72 | <initialization> |
72 | <initialization> |
73 | <class>ak.hostadmiral.core.model.InetDomainManager</class> |
73 | <class>ak.hostadmiral.core.model.InetDomainManager</class> |
74 | <init-param> |
74 | <init-param> |
75 | <param-name>store</param-name> |
75 | <param-name>store</param-name> |
76 | <param-value>ak.hostadmiral.core.model.store.hibernate.InetDomainHibernate</param-value> |
76 | <param-value>ak.hostadmiral.core.model.store.hibernate.InetDomainHibernate</param-value> |
77 | </init-param> |
77 | </init-param> |
78 | </initialization> |
78 | </initialization> |
79 | <initialization> |
79 | <initialization> |
80 | <class>ak.hostadmiral.core.model.MailboxManager</class> |
80 | <class>ak.hostadmiral.core.model.MailboxManager</class> |
81 | <init-param> |
81 | <init-param> |
82 | <param-name>store</param-name> |
82 | <param-name>store</param-name> |
83 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailboxHibernate</param-value> |
83 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailboxHibernate</param-value> |
84 | </init-param> |
84 | </init-param> |
85 | <init-param> |
85 | <init-param> |
86 | <param-name>passwordStore</param-name> |
86 | <param-name>passwordStore</param-name> |
87 | <param-value>ak.hostadmiral.core.model.PasswordStoreMd5</param-value> |
87 | <param-value>ak.hostadmiral.core.model.PasswordStoreMd5</param-value> |
88 | <param-value>ak.hostadmiral.core.model.PasswordStoreCrypt</param-value> |
88 | <param-value>ak.hostadmiral.core.model.PasswordStoreCrypt</param-value> |
89 | <param-value>ak.hostadmiral.core.model.PasswordStorePlain</param-value> |
89 | <param-value>ak.hostadmiral.core.model.PasswordStorePlain</param-value> |
90 | </init-param> |
90 | </init-param> |
91 | </initialization> |
91 | </initialization> |
92 | <initialization> |
92 | <initialization> |
93 | <class>ak.hostadmiral.core.model.MailAliasManager</class> |
93 | <class>ak.hostadmiral.core.model.MailAliasManager</class> |
94 | <init-param> |
94 | <init-param> |
95 | <param-name>store</param-name> |
95 | <param-name>store</param-name> |
96 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailAliasHibernate</param-value> |
96 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailAliasHibernate</param-value> |
97 | </init-param> |
97 | </init-param> |
98 | </initialization> |
98 | </initialization> |
99 | <initialization> |
99 | <initialization> |
100 | <class>ak.hostadmiral.core.model.MailAliasDestinationManager</class> |
100 | <class>ak.hostadmiral.core.model.MailAliasDestinationManager</class> |
101 | <init-param> |
101 | <init-param> |
102 | <param-name>store</param-name> |
102 | <param-name>store</param-name> |
103 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailAliasDestinationHibernate</param-value> |
103 | <param-value>ak.hostadmiral.core.model.store.hibernate.MailAliasDestinationHibernate</param-value> |
104 | </init-param> |
104 | </init-param> |
105 | </initialization> |
105 | </initialization> |
106 | <!-- Web classes --> |
106 | <!-- Web classes --> |
107 | <initialization> |
107 | <initialization> |
108 | <class>ak.hostadmiral.core.action.UserUpdater</class> |
108 | <class>ak.hostadmiral.core.action.UserUpdater</class> |
109 | </initialization> |
109 | </initialization> |
110 | </initializations> |
110 | </initializations> |
111 | </hostadmiral> |
111 | </hostadmiral> |