/**
* 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: PMDefaultAuthLevelConditionEditViewBean.java,v 1.2 2008/06/25 05:43:02 qcheng Exp $
*
*/
/*
* Portions Copyrighted [2011] [ForgeRock AS]
*/
public class PMDefaultAuthLevelConditionEditViewBean
extends ConditionEditViewBean
{
private boolean bSearchForRealm;
public PMDefaultAuthLevelConditionEditViewBean() {
super("PMDefaultAuthLevelConditionEdit", DEFAULT_DISPLAY_URL);
}
/**
* Searches for realms and set up realm selectable list.
*
* @param event Display Event.
* @throws ModelControlException if <code>JATO</code> default model fails.
*/
throws ModelControlException {
super.beginDisplay(event);
}
try {
if (realmNames.isEmpty()) {
"policy.condition.authlevel.no.search.result.message");
} else {
}
if (realmValue == null) {
realmValue = "";
}
if (!bSearchForRealm) {
) {
if (!isInlineAlertMessageSet()) {
"policy.condition.authlevel.no.longer.exist.realm");
"message.information",
}
}
}
}
} catch (AMConsoleException e) {
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.
*/
bSearchForRealm = true;
forwardTo();
}
}
}