| 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
 
UserProfileViewBean.java
jsp/UserProfile.jsp 
 
 3. Directions
 
Copy the above JSP files to
        $AM_INSTALL_DIR/web-src/applications/console/userCompile the Java files
	
	cd $AM_INSTALL_DIR/samples/console/UserProfile
	gmake all
	Create a new jar with the sample class files.
	
	cd $AM_INSTALL_DIR/samples/console
	jar cf am_console_sample.jar com
	Copy the am_console_sample.jarinto$AM_INSTALL_DIR/web-src/applications/WEB-INF/libRedeploy the console
        Set the DEPLOY_LEVEL to 22 in the silent fileFor web server: run
 amws61config -s <silent file>For application server: run
 amas70config -s <silent file>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.UMUserProfileViewBeanto
 
 com.iplanet.am.console.user.UserProfileViewBeanTo 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.
     |