ServerEditViewBeanBase.java revision d97b7ab26c446ed6c58b71c45249970c62f876f8
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * The contents of this file are subject to the terms
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * of the Common Development and Distribution License
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * (the License). You may not use this file except in
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * compliance with the License.
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * You can obtain a copy of the License at
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * https://opensso.dev.java.net/public/CDDLv1.0.html or
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * See the License for the specific language governing
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * permission and limitations under the License.
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * When distributing Covered Code, include this CDDL
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * Header Notice in each file and include the License file
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * at opensso/legal/CDDLv1.0.txt.
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * If applicable, add the following below the CDDL Header,
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * with the fields enclosed by brackets [] replaced by
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * your own identifying information:
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * "Portions Copyrighted [year] [name of copyright owner]"
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * $Id: ServerEditViewBeanBase.java,v 1.3 2008/09/11 16:33:16 veiming Exp $
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersen * Portions Copyrighted 2011-2015 ForgeRock AS.
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenpackage com.sun.identity.console.service;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.iplanet.jato.RequestManager;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.iplanet.jato.model.ModelControlException;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.iplanet.jato.view.View;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.iplanet.jato.view.event.ChildDisplayEvent;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.iplanet.jato.view.event.DisplayEvent;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.iplanet.jato.view.event.RequestInvocationEvent;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.common.configuration.ServerConfiguration;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.common.configuration.ServerPropertyValidator;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.common.configuration.UnknownPropertyNameException;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.AMPropertySheet;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.AMPrimaryMastHeadViewBean;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.AMViewBeanBase;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.AMViewConfig;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.model.AMAdminUtils;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.model.AMConsoleException;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.model.AMModel;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.base.model.AMPropertySheetModel;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.service.model.ServerSiteModel;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.console.service.model.ServerSiteModelImpl;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.security.EncodeAction;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.identity.shared.xml.XMLUtils;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.model.CCNavNode;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.model.CCPageTitleModel;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.view.alert.CCAlert;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.view.html.CCCheckBox;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.view.html.CCButton;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.view.html.CCPassword;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.view.pagetitle.CCPageTitle;
95fe27d9307628a4a593e63794000c09ecb91b95Thomas Hindoe Paaboel Andersenimport com.sun.web.ui.view.tabs.CCTabs;
public abstract class ServerEditViewBeanBase
extends AMPrimaryMastHeadViewBean
protected boolean submitCycle;
super(name);
protected void initialize() {
if (!initialized) {
super.initialize();
initialized = true;
protected void registerChildren() {
super.registerChildren();
return view;
throws ModelControlException
} catch (AMConsoleException e) {
e.getMessage());
throws AMConsoleException {
if (!submitCycle) {
private void createPageTitleModel() {
i.remove();
} catch (AMConsoleException e) {
e.getMessage());
return names;
return xml;
protected void modifyProperties() {
} catch (UnknownPropertyNameException e) {
} catch (AMConsoleException e) {
e.getMessage());
return map;
forwardTo();
throws ModelControlException {
throws ModelControlException {
} catch (AMConsoleException e) {
forwardTo();
private void returnToHomePage() {
backTrail();
ServerSiteViewBean.class);
protected boolean startPageTrail() {
return xml;
return TAB_TRACKER;
"<cc name=\"{0}\" tagclass=\"com.sun.web.ui.taglib.html.CCStaticTextFieldTag\"><attribute name=\"defaultValue\" value=\"{1}\" /></cc>";