ServicesSelectViewBean.java revision 41202e15f589286770cacca433bbee5df379d00b
/**
* 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: ServicesSelectViewBean.java,v 1.4 2009/03/16 18:28:45 veiming Exp $
*
*/
public class ServicesSelectViewBean
extends AMPrimaryMastHeadViewBean
{
public static final String DEFAULT_DISPLAY_URL =
private CCPageTitleModel ptModel;
private AMPropertySheetModel propertySheetModel;
private boolean submitCycle;
/**
* Creates a view to prompt user for services to be added to identity.
*/
public ServicesSelectViewBean() {
super("ServicesSelect");
}
protected void registerChildren() {
ptModel.registerChildren(this);
super.registerChildren();
}
} else {
}
return view;
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
}
private void createPropertyModel() {
}
protected AMModel getModelInternal() {
}
throws ModelControlException {
super.beginDisplay(event);
disableButton("button1", true);
}
try {
}
if (!assignables.isEmpty()) {
if (!submitCycle) {
}
}
} catch (AMConsoleException e) {
e.getMessage());
}
}
/**
* Handles cancel request.
*
* @param event Request invocation event
*/
}
private void forwardToEntityServiceViewBean() {
EntityServicesViewBean.class);
backTrail();
}
/**
* Handles assigned button request.
*
* @param event Request invocation event.
*/
throws ModelControlException {
submitCycle = true;
} else {
try {
} catch (AMConsoleException e) {
e.getMessage());
forwardTo();
}
}
}
private void fowardToAddServiceViewBean(
) {
realm = "/";
}
// Work around for not showing auth config service custom view.
// This is not needed in 7.0, but is still used by old 6.3 console.
}
if ((propertiesViewBeanURL != null) &&
) {
try {
"&User=" +
} catch (UnsupportedEncodingException e) {
e.getMessage());
forwardTo();
} catch (IOException e) {
e.getMessage());
forwardTo();
}
} else {
ServicesAddViewBean.class);
}
}
protected String getBreadCrumbDisplayName() {
return "breadcrumbs.editentities.selectservice";
}
protected boolean startPageTrail() {
return false;
}
}