/**
* 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: IDRepoViewBean.java,v 1.3 2008/07/07 20:39:20 veiming Exp $
*
*/
public class IDRepoViewBean
extends RealmPropertiesBase
{
"/console/realm/IDRepo.jsp";
/**
* Creates a ID Repo view bean.
*/
public IDRepoViewBean() {
super("IDRepo");
}
protected void registerChildren() {
super.registerChildren();
ptModel.registerChildren(this);
tblModel.registerChildren(this);
}
} else {
}
return view;
}
throws ModelControlException
{
super.beginDisplay(event);
}
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
}
private void createTableModel() {
tblModel = new CCActionTableModel(
"com/sun/identity/console/tblRMIDRepo.xml"));
"table.idrepo.button.delete");
}
private void getIDRepoNames() {
try {
} catch (AMConsoleException e) {
e.getMessage());
// disable the button if the current location is invalid
btnAdd.setDisabled(true);
}
}
try {
} catch (AMConsoleException e) {
}
boolean firstEntry = true;
if (firstEntry) {
firstEntry = false;
} else {
}
try {
if (displayName == null) {
displayName = type;
}
} catch (AMConsoleException e) {
}
stringToHex(name));
}
} else {
}
}
/**
* Forwards request to creation view bean.
*
* @param event Request Invocation Event.
*/
try {
/*
* This causes the first step of the New Data Store wizard to be skipped
* when only one Data Store type is available. The ideal fix is to modify the
* second step page to act as a single page. This is only a temporary fix
* until the page two work can be done.
*/
/********
if (map.size() == 1) {
IDRepoAddViewBean vb = (IDRepoAddViewBean)getViewBean(
IDRepoAddViewBean.class);
setPageSessionAttribute(IDRepoAddViewBean.IDREPO_NAME, "");
setPageSessionAttribute(IDRepoAddViewBean.IDREPO_TYPE,
(String)map.keySet().iterator().next());
unlockPageTrail();
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
} else {
IDRepoSelectTypeViewBean vb =
(IDRepoSelectTypeViewBean)getViewBean(
IDRepoSelectTypeViewBean.class);
unlockPageTrail();
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
********/
IDRepoSelectTypeViewBean.class);
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
}
/**
* Forwards request to edit ID Repo view bean.
*
* @param event Request Invocation Event.
*/
try {
IDRepoEditViewBean.class);
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
}
/**
* Deletes ID Repo.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
throws ModelControlException
{
}
try {
"idRepo.message.deleted");
} else {
"idRepo.message.deleted.pural");
}
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
/**
* Handles "back to" page request.
*
* @param event Request invocation event
*/
backTrail();
}
}