Sun Java System Portal Server Mobile Access 7.1 Administration Guide

About Mobile Application Templates

Mobile application templates exist to establish the rules governing the storage of application preferences. The templates are represented as uniform resource locators (URLs) described in RFC 1738 published by the World Wide Web Consortium (W3C).

Administrators can edit template strings to assign values to properties within the strings and to apply certain rules of use to those properties.

A template string must start with the word default followed by the pipe symbol |. The string provides the name of the template configuration and preferences that can be changed to alter the application’s behavior. These preferences are set to default values when Mobile Access is installed.

The following is an example of an address book template. In this example, template strings appear in the field as a single, long string. This example divides the template string into separate lines for readability purposes. Line breaks have been added preceding each ampersand (&).


Example 5–1 Example


default|undef:///?configName=MA-AB-APP
&default=sortBy
&default=sortOrder
&merge=sortBy
&merge=sortOrder
&sortBy=cn
&sortOrder=asc

The name of the template in this example is MA-AB-APP. This template includes two preferences—sortOrder and sortBy. It provides default values for them and rules permitting user definitions of these preferences.