EsupPortail/esup-uportal — pull request #105 by jgribonvald (2013-04-23 11:10:33+00:00)
Title: Up 3691 Define several dlm to apply on guest user depending on request attributes

This could be usefull for example in context on multiple virtual host to serve a different layout per serverName value.

To activate this feature \:
- modify uportal-war/src/main/resources/properties/contexts/userContext.xml, comment the default bean personManager, and uncomment the bean given below. This will activate the merge of guest attributes with requestAttributes.
- modify uportal-war/src/main/resources/properties/contexts/userContext.xml, uncomment and adapt the submapper on bean profileMapper or modify the bean profileMapper. This will permit to put in cache different layout of the guest user depending on profiles, that we must creates to map on different value of the attribute that will map for each fragment (here the serverName).
- create all profils needed, as example \:
```xml

ServerName www.univ1.fr HTML browser profile
guest-univ1-default
A sample profile for common web browsers which requesting www.univ1.fr

```
```xml

ServerName www.univ2.fr HTML browser profile
guest-univ2-default
A sample profile for common web browsers which requesting www.univ2.fr

```
```xml

ServerName others HTML browser profile
guest-default
A sample profile for common web browsers which requesting others domains

```

- define your fragment-definition per serverName value and keep a default, as example \:
```xml

```
```xml

```
```xml

```
- deploy and import profile + fragment definitions and you will be able to define your new fragments