SCServiceProfileViewBean.java revision 44533057912ac5c4bca52935b8fbc8e6d59d0671
/**
* 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: SCServiceProfileViewBean.java,v 1.7 2009/01/09 22:35:19 asyhuang Exp $
*
*/
/*
* Portions Copyrighted 2011-2015 ForgeRock AS.
* Portions Copyrighted 2015 Nomura Research Institute, Ltd.
*/
public class SCServiceProfileViewBean extends AMServiceProfileViewBeanBase {
public static final String DEFAULT_DISPLAY_URL =
private boolean populatedSubConfigTable;
/**
* Creates a service profile view bean.
*/
public SCServiceProfileViewBean() {
initService();
}
initService();
}
private void initService() {
if (serviceName != null) {
}
}
if (!populatedSubConfigTable &&
) {
populatedSubConfigTable = true;
if (model.hasGlobalSubSchema()) {
}
}
return super.createChild(name);
}
boolean firstEntry = true;
if (firstEntry) {
firstEntry = false;
} else {
}
}
}
}
}
throws NavigationException {
super.forwardTo(reqContext);
}
super.beginDisplay(event);
if (model.hasGlobalSubSchema()) {
if (!submitCycle) {
}
if (createable.isEmpty()) {
} else {
boolean canCreate = false;
canCreate = true;
} else {
}
}
}
}
if (!moduleList.isEmpty()) {
}
}
}
}
// If this is a dynamic request the UI is set with unsaved attribute values
if (dynamicRequest) {
}
}
throws AMConsoleException {
}
protected AMModel getModelInternal() {
try {
return new SubSchemaModelImpl(
} catch (AMConsoleException e) {
e.getMessage());
}
return null;
}
private SubConfigModel getSubConfigModel() {
try {
return new SubConfigModelImpl(
} catch (AMConsoleException e) {
e.getMessage());
}
return null;
}
/**
* Adds sub configuration.
*
* @param event Request Invocation Event.
*/
public void handleTblSubConfigButtonAddRequest(
) {
if (!createable.isEmpty()) {
} else {
SubConfigAddViewBean.class);
}
} else {
forwardTo();
}
}
private void addViewBeanClassToPageSession() {
if (viewBeanClasses == null) {
viewBeanClasses = new ArrayList();
}
}
/**
* Deletes sub configuration.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
public void handleTblSubConfigButtonDeleteRequest(
) throws ModelControlException {
submitCycle = true;
}
try {
"subconfig.message.deleted");
} else {
"subconfig.message.deleted.pural");
}
} catch (AMConsoleException e) {
e.getMessage());
}
submitCycle = false;
forwardTo();
}
/**
* Handles edit sub configuration request.
*
* @param event Request Invocation Event.
*/
SubConfigEditViewBean.class);
if (subConfigNames == null) {
subConfigNames = new ArrayList();
}
}
// button1 (Save) request done in AMServiceProfileViewBean
// button2 (Reset) request done in AMServiceProfileViewBean
/**
* Handles reset request.
*
* @param event Request invocation event
*/
backTrail();
try {
} catch (ClassNotFoundException e) {
}
}
protected String getBreadCrumbDisplayName() {
}
protected boolean startPageTrail() {
return false;
}
try {
} catch (SSOException e) {
} catch (SMSException e) {
} catch (InstantiationException e) {
} catch (IllegalAccessException e) {
}
forwardTo();
}
}