Sun Java System Portal Server 7.1 Technical Reference

Examples

The examples provided below shows the display profile documents for organization and a bill.

Example 1

This example uses two display profiles, one for the organization example and one for the uid bill. When Bill logs in (uid=bill) to the Desktop, the bookmark channel titled “Bill’s Bookmarks” is displayed with the following three bookmarks (in that order):


Example 16–1 Display Profile Document for the Organization (dc=acme.com)


<DisplayProfile version="1.0" priority="10">
...
<Channel name="Bookmark" provider="BookmarkProvider" merge="fuse">
    <Properties>
        <String name="title" value="My Bookmarks" merge="replace"
 			lock="false" propagate="true"/>
        <String name="refreshTime" value="600" merge="replace"
			lock="false" propagate="true"/>
        <Collection name="targets" merge="fuse" lock="false"
			propagate="true">
            <String value="ACME home page|http://www.acme.com"
				 merge="replace"
				lock="false" propagate="true"/>
        </Collection>
    </Properties>
</Channel>
...
</DisplayProfile>

Display Profile Document for the uid=Bill,ou=people,o=acme.com


<DisplayProfile version="1.0" priority="10"> ... <Channel name="Bookmark"
provider="BookmarkProvider" merge="fuse"> <Properties> <String name="title"
value="Bill’s Bookmarks" merge="replace" lock="false" propagate="true"/>
<Collection name="targets" merge="fuse" lock="false" propagate="true"> 
<String value="Amazon|http://www.amazon.com" merge="replace" lock="false" 
propagate="true"/> <String value="EBay|http://www.ebay.com" merge="replace"
lock="false" propagate="true"/> </Collection> </Properties> </Channel> ... 
</DisplayProfile>

Example 2

This example uses three display profiles, the global display profile, the display profile for the organization acme, and the display profile for the role hradmin. When the user who is assigned to the hradmin role logs in to the Desktop, the JSPTableContainer appears with the following channels:


Example 16–2 Global Display Profile Document


<DisplayProfile version="1.0" priority="0">
...
<Container name="JSPTableContainer" provider="JSPTableContainerProvider" merge="fuse">
    <Properties>
        ...
    </Properties>
    <Available>
        ...
    </Available>
    <Selected merge="fuse" lock="false">
        <Reference value="UserInfo"/>
    </Selected>
    <Channels/>
</Container>
...
</DisplayProfile>

Display Profile Document for the Organization (dc=acme.com)


<DisplayProfile version="1.0" priority="0"> ...
 <Container name="JSPTableContainer"
provider="JSPTableContainerProvider" merge="fuse">
<Properties> ... </Properties>
<Available> ... </Available> <Selected merge="fuse"
lock="false"> <Reference value="UserInfo"/>
<Reference value="Notes"/> </Selected> <Channels/>
</Container> ... </DisplayProfile>

Display Profile Document for the hradmin Role


<DisplayProfile version="1.0" priority="0">
...
<Container name="JSPTableContainer" provider="JSPTableContainerProvider" merge="fuse">
    <Properties>
        ...
    </Properties>
    <Available>
        ...
    </Available>
    <Selected merge="fuse" lock="true">
        
        <Reference value="SampleSimpleWebService"/>
    </Selected>
    <Channels/>
</Container>
...
</DisplayProfile>