ConfigureSalesForceAppsFinishWarningViewBean.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva * Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva * The contents of this file are subject to the terms
f011292cbf911d3a5155d7951624c893b709e0deJaco Jooste * of the Common Development and Distribution License
f011292cbf911d3a5155d7951624c893b709e0deJaco Jooste * (the License). You may not use this file except in
f011292cbf911d3a5155d7951624c893b709e0deJaco Jooste * compliance with the License.
1bc34195922e97727f62045e776cf103d36199deDavid Luna * You can obtain a copy of the License at
1bc34195922e97727f62045e776cf103d36199deDavid Luna * https://opensso.dev.java.net/public/CDDLv1.0.html or
1bc34195922e97727f62045e776cf103d36199deDavid Luna * See the License for the specific language governing
1bc34195922e97727f62045e776cf103d36199deDavid Luna * permission and limitations under the License.
1bc34195922e97727f62045e776cf103d36199deDavid Luna * When distributing Covered Code, include this CDDL
1bc34195922e97727f62045e776cf103d36199deDavid Luna * Header Notice in each file and include the License file
1bc34195922e97727f62045e776cf103d36199deDavid Luna * If applicable, add the following below the CDDL Header,
1bc34195922e97727f62045e776cf103d36199deDavid Luna * with the fields enclosed by brackets [] replaced by
528eacb6764b3a7369b72b566787fb4dd64e121aNeil Madden * your own identifying information:
528eacb6764b3a7369b72b566787fb4dd64e121aNeil Madden * "Portions Copyrighted [year] [name of copyright owner]"
528eacb6764b3a7369b72b566787fb4dd64e121aNeil Madden * $Id: ConfigureSalesForceAppsFinishWarningViewBean.java,v 1.1 2009/07/28 17:45:20 babysunil Exp $
528eacb6764b3a7369b72b566787fb4dd64e121aNeil Maddenimport com.iplanet.jato.view.event.ChildContentDisplayEvent;
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueevaimport com.iplanet.jato.view.event.DisplayEvent;
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueevaimport com.sun.identity.console.base.AMPrimaryMastHeadViewBean;
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueevaimport com.sun.identity.console.base.model.AMModel;
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavitimport com.sun.identity.console.task.model.TaskModel;
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavitimport com.sun.identity.console.task.model.TaskModelImpl;
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva * Create Warning for salesforce UI.
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavitpublic class ConfigureSalesForceAppsFinishWarningViewBean
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit public static final String DEFAULT_DISPLAY_URL =
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva "/console/task/ConfigureSalesForceAppsFinishWarning.jsp";
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit public ConfigureSalesForceAppsFinishWarningViewBean() {
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit super("ConfigureSalesForceAppsFinishWarning");
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit protected void registerChildren() {
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit HttpServletRequest req = getRequestContext().getRequest();
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit return new TaskModelImpl(req, getPageSessionAttributes());
cab9c7bb2f2e471050a0ae2165e0ee4c17f17349Neil Madden setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information",
cab9c7bb2f2e471050a0ae2165e0ee4c17f17349Neil Madden "create.salesforce.apps.finish.message");
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva "<p> <p><center><div class=\"TtlBtnDiv\">" +
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit "<input name=\"button1\" type=\"submit\" " + "" +
528eacb6764b3a7369b72b566787fb4dd64e121aNeil Madden "class=\"Btn1\" value=\" " +
528eacb6764b3a7369b72b566787fb4dd64e121aNeil Madden " \" onmouseover=\"javascript: this.className='Btn1Hov'\" " +
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva "onmouseout=\"javascript: this.className='Btn1'\" " +
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva "onblur=\"javascript: this.className='Btn1'\" " +
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit "onfocus=\"javascript: this.className='Btn1Hov'\" " +
ceef268a8c5614ca5ce141e20695c38c6f98a830Bruno Lavit "onClick=\"top.location.replace('../task/Home'); return false;\" " +
466bd434c374b0274b8ed61ef525714ce149a186Eugenia Sergueeva "/></div></center>" + html.substring(idx + 6);