/**
* 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: SelectRealmViewBean.java,v 1.2 2008/06/25 05:43:05 qcheng Exp $
*
*/
/*
* Portions Copyrighted [2011] [ForgeRock AS]
*/
/**
* This appears in a popup window, user can search for realms; select one of
* of the realm; and the realm will be populated to the REALM attribute value
* in the opener window.
*/
public class SelectRealmViewBean
extends AMViewBeanBase
{
/**
* Default Display URL.
*/
private boolean bRealmSelect;
/**
* Creates an instance of the view bean.
*/
public SelectRealmViewBean() {
super("SelectRealm");
}
protected void registerChildren() {
ptModel.registerChildren(this);
super.registerChildren();
}
} else {
}
return view;
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
}
private void createPropertyModel() {
}
}
throws ModelControlException
{
super.beginDisplay(event);
disableButton("button1", true);
"policy.condition.null.realm"));
filter = "*";
}
if (!bRealmSelect) {
realm = "";
} else {
}
} else {
}
}
"policy.condition.null.realm"));
} else {
}
}
return map;
}
try {
if (realmNames.isEmpty()) {
if (!isInlineAlertMessageSet()) {
"message.information",
"policy.condition.selectrealm.no.search.result.message"
);
}
} else {
disableButton("button1", false);
}
} catch (AMConsoleException e) {
e.getMessage());
}
}
return realmNames;
}
}
try {
} catch (AMConsoleException e) {
if (!isInlineAlertMessageSet()) {
e.getMessage());
}
}
}
/**
* Refreshes the view so that search of realm with a new filter can
* happens.
*
* @param event Request Invocation Event.
*/
forwardTo();
}
/**
* Refreshes the view so that search for services can be done.
*
* @param event Request Invocation Event.
*/
bRealmSelect = true;
forwardTo();
}
}