AgentAddViewBean.java revision f58c87ece2202b8f85310d8885c7e39a7f435c09
/**
* 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: AgentAddViewBean.java,v 1.8 2008/09/20 06:38:46 veiming Exp $
*
*/
/**
* View Bean to create new agent.
*/
public class AgentAddViewBean
extends AMPrimaryMastHeadViewBean
{
private static final String DEFAULT_DISPLAY_URL =
private CCPageTitleModel ptModel;
private AMPropertySheetModel propertySheetModel;
/**
* Creates a view to prompt user for ID Repo type before creation.
*/
public AgentAddViewBean() {
super("AgentAdd");
}
protected void initialize() {
if (!initialized) {
}
}
}
protected void registerChildren() {
ptModel.registerChildren(this);
super.registerChildren();
}
} else {
}
return view;
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
}
private void createPropertyModel() {
} else{
}
}
protected AMModel getModelInternal() {
}
public void beginDisplay(DisplayEvent e) {
}
ptModel.setPageTitleText(MessageFormat.format(model.getLocalizedString("page.title.agents.create"), param));
}
/**
* Handles create request.
*
* @param event Request invocation event
*/
try {
} else {
}
} else {
}
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
} else {
forwardTo();
}
} else {
forwardTo();
}
}
/**
* Handles cancel request.
*
* @param event Request invocation event
*/
}
private void forwardToAgentsViewBean() {
}
protected boolean startPageTrail() {
return false;
}
private String getAgentType() {
return (String)getPageSessionAttribute(
}
}