root/trunk/config/configs/democal.options.xml

Revision 1387 (checked in by douglm, 6 years ago)

Mostly caldav related code:
Move much of the code related to mapping principal hierarchies to directory information into the directory interface.

AbstractDirImpl? is an abstract implementation of the Directories interface and handles much of the mapping.

Moved definition of principal hierarchy roots out of the system information into the directory configuration.

Also added values to identify more types of account, e.g. resources, locations, tickets.

Some changes to property handling in caldav

Line 
1 <!-- This provides run time options for each of the configured applications.
2   -->
3 <bedework-options>
4   <org>
5     <bedework>
6       <global>
7         <module>
8           <!-- A dummy module with no directory. -->
9           <dir-config classname="org.bedework.calcore.DirConfigProperties">
10             <principalRoot>/principals</principalRoot>
11             <userPrincipalRoot>/principals/users</userPrincipalRoot>
12             <groupPrincipalRoot>/principals/groups</groupPrincipalRoot>
13             <resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot>
14             <venuePrincipalRoot>/principals/locations</venuePrincipalRoot>
15             <ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot>
16             <hostPrincipalRoot>/principals/hosts</hostPrincipalRoot>
17
18             <debug>true</debug>
19           </dir-config>
20
21           <!-- An example of how we might configure an ldap directory module. -->
22           <user-ldap-group classname="org.bedework.calcore.ldap.LdapConfigProperties">
23             <principalRoot>/principals</principalRoot>
24             <userPrincipalRoot>/principals/users</userPrincipalRoot>
25             <groupPrincipalRoot>/principals/groups</groupPrincipalRoot>
26             <resourcePrincipalRoot>/principals/resources</resourcePrincipalRoot>
27             <venuePrincipalRoot>/principals/locations</venuePrincipalRoot>
28             <ticketPrincipalRoot>/principals/tickets</ticketPrincipalRoot>
29             <hostPrincipalRoot>/principals/hosts</hostPrincipalRoot>
30
31             <initialContextFactory>com.sun.jndi.ldap.LdapCtxFactory</initialContextFactory>
32             <providerUrl>ldap://localhost/</providerUrl>
33             <groupContextDn>ou=groups, dc=bedework, dc=org</groupContextDn>
34             <groupMemberAttr>uniqueMember</groupMemberAttr>
35             <userDnPrefix>uid=</userDnPrefix>
36             <userDnSuffix>,ou=accounts, dc=bedework, dc=org</userDnSuffix>
37             <groupDnPrefix>cn=</groupDnPrefix>
38             <groupDnSuffix>,ou=groups, dc=bedework, dc=org</groupDnSuffix>
39             <debug>true</debug>
40           </user-ldap-group>
41
42           <testmail classname="org.bedework.mail.MailConfigProperties">
43             <protocol>smtp</protocol>
44             <protocolClass>com.sun.mail.smtp.SMTPTransport</protocolClass>
45             <serverIp>localhost</serverIp>
46             <from>calendar.myplace.edu</from>
47             <subject>Message from demo calendar server</subject>
48             <disabled>false</disabled>
49           </testmail>
50
51           <dummymail classname="org.bedework.mail.MailConfigProperties">
52             <disabled>false</disabled>
53           </dummymail>
54         </module>
55       </global>
56
57       <syspars classname="org.bedework.calfacade.BwSystem">
58         <!-- name must match the global system name -->
59         <name>bedework</name>
60         <tzid>America/New_York</tzid>
61         <systemid>demobedework@mysite.edu</systemid>
62
63         <publicCalendarRoot>public</publicCalendarRoot>
64         <userCalendarRoot>user</userCalendarRoot>
65         <userDefaultCalendar>calendar</userDefaultCalendar>
66         <defaultTrashCalendar>Trash</defaultTrashCalendar>
67         <userInbox>Inbox</userInbox>
68         <userOutbox>Outbox</userOutbox>
69         <deletedCalendar>Deleted</deletedCalendar>
70         <busyCalendar>Busy</busyCalendar>
71
72         <defaultUserViewName>All</defaultUserViewName>
73         <defaultUserHour24>true</defaultUserHour24>
74
75         <publicUser>public-user</publicUser>
76
77         <httpConnectionsPerUser>10</httpConnectionsPerUser>
78         <httpConnectionsPerHost>50</httpConnectionsPerHost>
79         <httpConnections>200</httpConnections>
80
81
82         <!-- size limits -->
83         <maxPublicDescriptionLength>500</maxPublicDescriptionLength>
84         <maxUserDescriptionLength>5000</maxUserDescriptionLength>
85         <maxUserEntitySize>100000</maxUserEntitySize>
86         <defaultUserQuota>10000000</defaultUserQuota> <!-- 10 Meg OK? -->
87
88         <!-- Max number of instances per recurring event -->
89         <maxInstances>1000</maxInstances>
90
91         <!-- Max number of years per recurring event -->
92         <maxYears>50</maxYears>
93
94         <userauthClass>org.bedework.calcore.hibernate.UserAuthUWDbImpl</userauthClass>
95         <mailerClass>org.bedework.mail.DummyMailer</mailerClass>
96         <admingroupsClass>org.bedework.calcore.hibernate.AdminGroupsDbImpl</admingroupsClass>
97         <!--
98         <usergroupsClass>org.bedework.calcore.ldap.UserGroupsLdapImpl</usergroupsClass>
99         -->
100         <usergroupsClass>org.bedework.calcore.hibernate.GroupsDbImpl</usergroupsClass>
101
102         <directoryBrowsingDisallowed>@DIRECTORY-BROWSING-DISALLOWED@</directoryBrowsingDisallowed>
103
104         <indexRoot>lucene/indexroot</indexRoot>
105       </syspars>
106
107       <app>
108         <!-- ==================================================================
109                           Admin web client CalAdmin
110              ================================================================== -->
111         <CalAdmin classname="org.bedework.calfacade.configs.AdminConfig">
112           <autoCreateContacts>false</autoCreateContacts>
113           <autoDeleteContacts>false</autoDeleteContacts>
114           <autoCreateLocations>false</autoCreateLocations>
115           <autoDeleteLocations>false</autoDeleteLocations>
116           <allowEditAllCategories>false</allowEditAllCategories>
117           <allowEditAllLocations>false</allowEditAllLocations>
118           <allowEditAllContacts>false</allowEditAllContacts>
119           <categoryOptional>true</categoryOptional>
120
121           <!-- Default value for 24 hour mode -->
122           <hour24>true</hour24>
123
124           <!-- Default value for minute increments -->
125           <minIncrement>5</minIncrement>
126
127           <logPrefix>PubEventsAdmin</logPrefix>
128
129           <appRoot>/caladminrsrc</appRoot>
130           <portalPlatform>@PORTAL-PLATFORM@</portalPlatform>
131         </CalAdmin>
132
133         <!-- ==================================================================
134                           Public web client Events
135              ================================================================== -->
136         <Events classname="org.bedework.calfacade.configs.ClientConfig">
137           <autoCreateContacts>false</autoCreateContacts>
138           <autoDeleteContacts>false</autoDeleteContacts>
139           <autoCreateLocations>false</autoCreateLocations>
140           <autoDeleteLocations>false</autoDeleteLocations>
141
142           <!-- Default value for 24 hour mode -->
143           <hour24>true</hour24>
144
145           <!-- Default value for minute increments -->
146           <minIncrement>5</minIncrement>
147
148           <showYearData>false</showYearData>
149
150           <logPrefix>PubEvents</logPrefix>
151
152           <appRoot>/calrsrc</appRoot>
153           <portalPlatform>@PORTAL-PLATFORM@</portalPlatform>
154
155           <refreshAction>setup.do</refreshAction>
156           <refreshInterval>300</refreshInterval>
157
158           <calSuite>MainCampus</calSuite>
159         </Events>
160
161         <!-- ==================================================================
162                           Demo departmental Public web client SoEDept
163              ================================================================== -->
164         <SoEDept classname="org.bedework.calfacade.configs.ClientConfig">
165           <autoCreateContacts>false</autoCreateContacts>
166           <autoDeleteContacts>false</autoDeleteContacts>
167           <autoCreateLocations>false</autoCreateLocations>
168           <autoDeleteLocations>false</autoDeleteLocations>
169
170           <!-- Default value for 24 hour mode -->
171           <hour24>true</hour24>
172
173           <!-- Default value for minute increments -->
174           <minIncrement>5</minIncrement>
175
176           <showYearData>false</showYearData>
177
178           <logPrefix>SoEDept</logPrefix>
179
180           <appRoot>/calrsrc</appRoot>
181           <portalPlatform>@PORTAL-PLATFORM@</portalPlatform>
182
183           <refreshAction>setup.do</refreshAction>
184           <refreshInterval>300</refreshInterval>
185
186           <calSuite>SoEDepartmental</calSuite>
187         </SoEDept>
188
189         <!-- ==================================================================
190                           User web client UserCal
191              ================================================================== -->
192         <UserCal classname="org.bedework.calfacade.configs.ClientConfig">
193           <autoCreateContacts>false</autoCreateContacts>
194           <autoDeleteContacts>false</autoDeleteContacts>
195           <autoCreateLocations>false</autoCreateLocations>
196           <autoDeleteLocations>false</autoDeleteLocations>
197
198           <!-- Default value for 24 hour mode -->
199           <hour24>true</hour24>
200
201           <!-- Default value for minute increments -->
202           <minIncrement>5</minIncrement>
203
204           <showYearData>false</showYearData>
205
206           <logPrefix>PersonalCalendar</logPrefix>
207
208           <appRoot>/ucalrsrc</appRoot>
209           <portalPlatform>@PORTAL-PLATFORM@</portalPlatform>
210
211           <refreshAction>setup.do</refreshAction>
212           <refreshInterval>300</refreshInterval>
213         </UserCal>
214
215         <!-- ==================================================================
216                           Dump restore program dumpres
217              ================================================================== -->
218         <dumpres classname="org.bedework.calfacade.configs.DumpRestoreConfig">
219           <debug>true</debug>
220           <debugEntity>false</debugEntity>
221           <superGroupName>campusAdminGroups</superGroupName>
222           <defaultPublicCalPath>/public/Other Events/Other</defaultPublicCalPath>
223         </dumpres>
224
225         <!-- ==================================================================
226                           Dump restore program restoreFrom2p3px
227              Use the restore utility to convert from uwcal 2.3
228              ================================================================== -->
229         <restoreFrom2p3px classname="org.bedework.calfacade.configs.DumpRestoreConfig">
230           <debug>true</debug>
231           <debugEntity>false</debugEntity>
232           <from2p3px>true</from2p3px>
233           <timezonesFilename>resources/bwtimezones.xml</timezonesFilename>
234           <superGroupName>campusAdminGroups</superGroupName>
235           <defaultPublicCalPath>/public/Other Events/Other</defaultPublicCalPath>
236         </restoreFrom2p3px>
237       </app>
238     </bedework>
239   </org>
240 </bedework-options>
241
Note: See TracBrowser for help on using the browser.