You can customize Delegated Administrator by adding a new Calendar Server time zone. Delegated Administrator can then provision organizations, users, groups, and resources with the new time zone.
Once the time zone has been added, you can set it as the default time zone for newly created users.
Add the time zone in Calendar Server.
To accomplish this step, you must edit the timezones.ics file and other Calendar Server files. For instructions, see “Adding a New Time Zone” in the chapter, “Managing Calendar Server Time Zones” in the Sun Java System Calendar Server Administration Guide.
Back up the UserCalendarService.xml and DomainCalendarService.xml, and Resources.properties files.
The xml files are located by default in the following directory:
/opt/SUNWcomm/lib/services
The Resources.properties file is located by default in the following directory:
/var/opt/SUNWcomm/da/WEB-INF/classes/com/sun/ \ comm/da/resources |
Also be sure to preserve your customized configuration data before you upgrade Delegated Administrator or rerun the Delegated Administrator configuration program.
Edit the UserCalendarService.xml and DomainCalendarService.xml files to add the new time zone in Delegated Administrator.
These xml files are located by default in the following directory:
/opt/SUNWcomm/lib/services
In both the UserCalendarService.xml and DomainCalendarService.xml files, find the following entry heading:
<AttributeSchema name="icstimezone" type="single choice" syntax="string" any="optional|adminDisplay"> <ChoiceValues> |
Add the new time zone value to the list of <ChoiceValues>.
Run the Access Manager amadmin utility to delete the current service and add the updated service.
For both the UserCalendarService.xml and DomainCalendarService.xml files, run the following amadmincommands:
./amadmin -u <admin> -w <password> -r DomainCalendarService |
./amadmin -u <admin> -w <password> -s $PATH/DomainCalendarService.xml |
If you also intend to make the new time zone your default, you can run these amadmin commands after you have performed both tasks. (The following task describes how to change the default time zone.)
Restart your Web container to enable the changes to take effect.
In the UserCalendarService.xml and DomainCalendarService.xml files, edit the following value:
<DefaultValues> <Value>America/Denver</Value> </DefaultValues> |
You can find <DefaultValues> under the following entry in the xml files:
<AttributeSchema name="icstimezone" |
Run the Access Manager amadmin utility to delete the current service and add the updated service.
For both the UserCalendarService.xml and DomainCalendarService.xml files, run the following amadmincommands:
./amadmin -u <admin> -w <password> -r DomainCalendarService |
./amadmin -u <admin> -w <password> -s $PATH/DomainCalendarService.xml |
Restart your Web container to enable the changes to take effect.
Edit the Resources.properties file, located under your Delegated Administrator data directory.
The Resources.properties file is located by default in the following directory:
/var/opt/SUNWcomm/da/WEB-INF/classes/com/sun/ \ comm/da/resources |
To edit Resources.properties, search for the rsrc.Timezone property and add the new time zone to the appropriate list.
After you edit this file, the new time zone will appear in the appropriate list boxes in the Delegated Administrator console.