/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: AuthToServiceAddViewBean.java,v 1.2 2008/06/25 05:43:01 qcheng Exp $
*
*/
/*
* Portions Copyrighted [2011] [ForgeRock AS]
*/
/**
* Authenticate to Service Condition View Bean (Add).
*/
public class AuthToServiceAddViewBean
extends ConditionAddViewBean
{
/**
* Default Display URL.
*/
private boolean bRealmSelect;
/**
* Default Constructor.
*/
public AuthToServiceAddViewBean() {
super("AuthToServiceAdd", DEFAULT_DISPLAY_URL);
}
protected void registerChildren() {
super.registerChildren();
}
super.createChild(name);
}
/**
* Set the realm names and service names.
*
* @param event Display event.
* @throws ModelControlException if default <code>JATO</code> cannot be
* instantiated.
*/
throws ModelControlException
{
super.beginDisplay(event);
}
if (!bRealmSelect) {
} else {
}
} else {
}
}
try {
(PolicyModel)getModel());
"policy.condition.authlevel.no.search.result.message");
}
} catch (AMConsoleException e) {
if (!isInlineAlertMessageSet()) {
e.getMessage());
}
}
return realmNames;
}
try {
(PolicyModel)getModel());
} catch (AMConsoleException e) {
if (!isInlineAlertMessageSet()) {
e.getMessage());
}
}
}
boolean readonly
) {
return AMAdminUtils.getStringFromInputStream(
}
return "policy.condition.missing.auth.level";
}
) {
try {
} catch (AMConsoleException e) {
e.getMessage());
}
return map;
}
/**
* Refreshes the view so that search for realms can be done.
*
* @param event Request Invocation Event.
*/
submitCycle = true;
forwardTo();
}
/**
* Refreshes the view so that search for services can be done.
*
* @param event Request Invocation Event.
*/
submitCycle = true;
bRealmSelect = true;
forwardTo();
}
}
/**
* Overwrites this method to set the <code>bRealmSelect</code>.
*
* @param event Request Invocation Event.
* @throws ModelControlException if <code>JATO</code> default model fails.
*/
throws ModelControlException
{
bRealmSelect = true;
super.handleButton2Request(event);
}
}