Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

uPortal comes with legacy personDirs.xml enabled.   To see how the Spring configured version works, we'll switch to that and add a silly attribute.

...

The new source uses the jndi source PersonDb instead of the default portal database.  In our setup PersonDb also points to the default database but in production it wouls be pointed to an authoritative source for attributes. 
 The The new source creates an attribute with a value of either "yup" or "nope" depending on whether the user is demo.  So .

Step 2.

  • Copy IsDemo.personDirectory.xml to the properties directory and rename it to personDirectory.xml.
  • ant deploy
  • restart Tomcat and browse to http://localhost:8080/uPortal
  • login as admin and look at the Person Attribute channel under the Development tab. This user should now have an attribute
    Panel

    IsDemo = nope

  • logout and login as demo. Check the Person attribute channel again - demo should have an attribute
    Panel

    IsDemo = yup