Sun Java System Access Manager version 7 2005Q4
Sample
 

Main Page > Console Sample Page

Administration Console Samples - User Profile Sample


1. Purpose

This sample demonstrates how to replace the default user profile view with a customized implementation.

The adminstration service has an attribute that stores the user profile view bean class to invoke. The default class, UMUserProfileViewBean, will be replaced with the sample, UserProfileViewBean. A new jsp will replace the default user profile jsp. Whenever a user selects to see a user profile, the console will look up the class name from the administration service, and the sample class file will be invoked instead of the default class file. The user profile view bean class can be set per organization to allow a different look for each organization. It can also be set globally (through Service Configuration tab) so all organizations get the new customized view.


2. Files

  1. UserProfileViewBean.java
  2. jsp/UserProfile.jsp


3. Directions

  1. Copy the above JSP files to $AM_INSTALL_DIR/web-src/applications/console/user
  2. Compile the Java files
    	cd $AM_INSTALL_DIR/samples/console/UserProfile
    	gmake all
    	
  3. Create a new jar with the sample class files.
    	cd $AM_INSTALL_DIR/samples/console
    	jar cf am_console_sample.jar com
    	
  4. Copy the am_console_sample.jar into $AM_INSTALL_DIR/web-src/applications/WEB-INF/lib
  5. Redeploy the console Set the DEPLOY_LEVEL to 22 in the silent file
    For web server: run amws61config -s <silent file>
    For application server: run amas70config -s <silent file>
  6. From the console, change the User Profile Display Class in the Administration Service from the default user profile to the sample user profile. This can be done in one of two places, under the Service Configuration tab, or from an organization which has the Administration Service registered. The attribute is organization based so that each organization can have a different user profile.
    change
    com.iplanet.am.console.user.UMUserProfileViewBean
    to
    com.iplanet.am.console.user.UserProfileViewBean
  7. To see the new user profile page, display any user profile (if the class was configured through the Service Configuration tab) or in the organization where the User Profile Display Class was modified.


End of Sample