01: /**
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: *
13: * Author: Anurag Gupta
14: */package com.sun.portal.netfile.admin;
15:
16: // JDK classes
17: import java.util.Map;
18: import com.sun.portal.log.common.PortalLogger;
19:
20: // iPlanet JATO classes
21: import com.iplanet.jato.model.ModelControlException;
22: import com.iplanet.jato.view.event.DisplayEvent;
23:
24: // NetFile admin console classes
25: import com.sun.portal.netfile.admin.model.NetFileUserProfileModelImpl;
26:
27: public class NetFileUserProfileViewBean extends
28: NetFileUserProfileViewBeanBase {
29:
30: public static final String PAGE_NAME = "NetFileUserProfile";
31: public static final String DEFAULT_DISPLAY_URL = "/ps/netfileadmin/NetFileUserProfile.jsp";
32:
33: public NetFileUserProfileViewBean() {
34: super (PAGE_NAME, DEFAULT_DISPLAY_URL);
35: }
36:
37: public void beginDisplay(DisplayEvent event)
38: throws ModelControlException {
39: getNetFileModelMgr();
40: NetFileUserProfileModelImpl m = (NetFileUserProfileModelImpl) getModel();
41: m.initModel(getUserDN());
42: if (m.isAdministrator()) {
43: NetFileTotalOneUserProfileViewBean vb = (NetFileTotalOneUserProfileViewBean) getViewBean(NetFileTotalOneUserProfileViewBean.class);
44: passPgSessionMap(vb);
45: vb.forwardTo(getRequestContext());
46: } else {
47: NetFileDataUserProfileViewBean vb = (NetFileDataUserProfileViewBean) getViewBean(NetFileDataUserProfileViewBean.class);
48: passPgSessionMap(vb);
49: vb.forwardTo(getRequestContext());
50: }
51: }
52:
53: }
|