![]() |
Sun Java System Identity Server 2004Q2 Sample |
Main Page > Console Sample Page Administration Console: User Profile SamplePurposeThis 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.
Files1. UserProfileViewBean.java2. jsp/UserProfile.jsp
Directions1. Copy above JSP file to the web application.cp /opt/SUNWam/samples/console/UserProfile/jsp/* /opt/SUNWam/web-src/applications/console/user2. Compile the Java files cd /opt/SUNWam/samples/console/UserProfile3. Create a new jar with the sample class files cd /opt/SUNWam/samples/console jar cf am_console_sample.jar com 4. Copy the am_console_sample.jar into /opt/SUNWam/web-src/applications/WEB-INF/lib 5. Redeploy the console Set the DEPLOY_LEVEL to 22 in the silent file For webserver: 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.UMUserProfileViewBeanto com.iplanet.am.console.user.UserProfileViewBean7. 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. |