Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
  • Basic building block = IPerson
  • Enables the portalness of uPortal since the point of a portal is content specific to a person
  • Enables customization of content for individual user and personalization by the user
  • Allows the portal and Portlets or channels to determine what the user is authorized to see and do.

...

Note
titleAn element of the uP101 pre-conference seminar

This page is not intended to be a general documentation of uPortal configuration. It is the specific ramblings that will be presented at the JA-SIG Vancouver uPortal 101 pre-conference seminar.

(info) Best documentation is on uPortal wiki: PersonDirectory

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.

Step 1.

In the OtherProperties directory of the uportal 101 Eclipse project find

No Format

IsDemo.personDirectory.xml

It has commented out the section pointing to the legacy implementation and uncommented the beans:

No Format

org.jasig.portal.services.persondir.support.CachingPersonAttributeDaoImpl
org.jasig.portal.services.persondir.support.MergingPersonAttributeDaoImpl

and defined two source beans:

No Format

uPortalJdbcAttributeSource

which is the functional equivalent of the legacy implementation and a new source:

No Format

PortalDbJndiTestDemoSource

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 new source creates an attribute with a value of either "yup" or "nope" depending on whether the user is demo.

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