Sun Java System Access Manager version 7 2005Q4

Administration Console Samples - Tab Component Sample

    1. Purpose

    This sample demonstrates how to create a custom user profile that
    uses a tabbed view display. How's this done? 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, TabOneViewBean. The default user
    profile JSP will be replaced with a tabbed 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.
    

    2. Files

    2.1 TabOneViewBean.java
    2.2 TabTwoViewBean.java
    2.3 TabThreeViewBean.java
    2.4 jsp/TabOne.jsp
    2.5 jsp/TabTwo.jsp
    2.6 jsp/TabThree.jsp



    3. Directions

    3.1 Copy all the JSP files to
	$AM_INSTALL_DIR/web-src/applications/console/user.
    
    3.2 Compile the Java files
	
	cd $AM_INSTALL_DIR/samples/console/TabComponent
	gmake all
	
    
    3.3 Create a new jar with the sample class files.
	
	cd $AM_INSTALL_DIR/samples/console
	jar cf am_console_sample.jar com
	
    
    3.4 Copy the am_console_sample.jar into
	$AM_INSTALL_DIR/web-src/applications/WEB-INF/lib
    
    3.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>
    
    3.6 Login to the console and change the User Profile Viewbean
	Class in the Administration Service from
	com.iplanet.am.console.user.UMUserProfileViewBean to
	com.iplanet.am.console.user.TabOneViewBean 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.
    
    3.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 viewbean class was
	modified.
    



End of Sample

