01: /**
02: * $Id: NewInstanceBean.java,v 1.2 2005/08/02 01:54:20 pd109850 Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.admin.console.fabric;
14:
15: import com.sun.portal.admin.console.common.SessionAttributeNames;
16:
17: import com.sun.web.ui.event.WizardEvent;
18:
19: import com.sun.portal.admin.common.PortalAttributes;
20:
21: public class NewInstanceBean extends NewPortalBean {
22: public NewInstanceBean() {
23: }
24:
25: public String getPortalId() {
26: portalId = (String) getSessionAttribute(ATTR_SELECTED_PORTAL);
27: return portalId;
28: }
29:
30: public String getUri() {
31: return getPortalAttribute(getPortalId(),
32: PortalAttributes.PORTAL_URI);
33: }
34:
35: ///////////begin wizard evert listner impl (Override)////////////
36: public boolean handleEvent(WizardEvent event) {
37: switch (event.getNavigationEvent()) {
38: case WizardEvent.FINISH:
39: //start the thread to create instances
40: beginCreateInstance();
41: break;
42: case WizardEvent.CANCEL:
43: case WizardEvent.CLOSE:
44: resetBean();
45: break;
46: default:
47: break;
48: }
49: return true;
50: }
51: ///////////begin wizard evert listner impl////////////
52: }
|