RMRealmViewBean.java revision 6328925537fd7e5d853fe7540b10d6f909057805
/*
* 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: RMRealmViewBean.java,v 1.3 2008/07/07 20:39:20 veiming Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS.
*/
public class RMRealmViewBean
extends RMRealmViewBeanBase
implements HasEntitiesTabs
{
public static final String DEFAULT_DISPLAY_URL =
"/console/realm/RMRealm.jsp";
// name column
// location column
private CCPageTitleModel ptModel;
/**
* Creates a authentication domains view bean.
*/
public RMRealmViewBean() {
super("RMRealm");
ptModel = new CCPageTitleModel(
}
protected void registerChildren() {
super.registerChildren();
ptModel.registerChildren(this);
tblModel.registerChildren(this);
}
} else {
}
return view;
}
return;
}
super.beginDisplay(event);
}
protected AMModel getModelInternal() {
}
private void createTableModel() {
tblModel = new CCActionTableModel(
"com/sun/identity/console/tblRMRealm.xml"));
}
private void getRealmNames() {
filter = "*";
} else {
}
try {
} catch (AMConsoleException e) {
e.getMessage());
}
}
boolean firstEntry = true;
int counter = 0;
counter++
) {
if (firstEntry) {
firstEntry = false;
} else {
}
} else {
}
/*
* Set name column info. Need to unescape the value as it
* may contain a '/' character.
*/
// set location column info
}
} else {
}
}
/**
* Handles search request.
*
* @param event Request Invocation Event.
*/
forwardTo();
}
/**
* Forwards request to creation view bean.
*
* @param event Request Invocation Event.
*/
RMRealmAddViewBean.class);
}
/**
* Deletes realms.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
throws ModelControlException
{
/*
* make sure the realm name starts with / to give it a
* fully qualified look. This value will be set in the log file
*/
}
}
try {
"realm.message.deleted");
} else {
"realm.message.deleted.pural");
}
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
/**
* Handles edit realm request.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
throws ModelControlException
{
// store the current realm name and the current selected tab
// in the page session. Need to do this so after returning
// from profile object we get placed in the correct location.
// store the current selected tab in the page session
try {
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
}
protected String getBreadCrumbDisplayName() {
return "breadcrumbs.realms";
}
}