RestSTSAddViewBean.java revision 56f76965098d6cc3ae531ce0a73bda588abdf1d3
/*
* 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 legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at 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]".
*
* Copyright 2014 ForgeRock AS. All rights reserved.
*/
/**
* The ViewBean used to create new Rest STS instances. Extends the AMServiceProfileViewBeanBase class as this class
* provides for automatic constitution of propertySheet values based on model state.
*/
public class RestSTSAddViewBean extends AMServiceProfileViewBeanBase {
public static final String DEFAULT_DISPLAY_URL =
public RestSTSAddViewBean() {
}
protected void initialize() {
super.initialize();
}
protected void registerChildren() {
super.registerChildren();
}
protected void createPageTitleModel() {
}
protected void createPropertyModel() {
}
protected AMModel getModelInternal() {
try {
} catch (AMConsoleException e) {
throw new IllegalStateException("Exception getting model in RestSTSAddViewBean: " + e.getMessage(), e);
}
}
/**
* Handles save button request. Validates the rest sts configuration state, and invokes the model to publish a
* rest sts instance corresponding to this state.
* @param event Request invocation event
*/
submitCycle = true;
if (validationResponse.isSuccessful()) {
try {
if (creationResponse.isSuccessful()) {
} else {
}
} catch (AMConsoleException e) {
throw new ModelControlException(e);
}
} else {
}
forwardTo();
}
/*
Returns a map of all settings, including those not changed from the default values in the model.
*/
try {
} catch (AMConsoleException e) {
throw new ModelControlException(e.getMessage(), e);
}
}
return values;
}
protected String getBackButtonLabel() {
return "button.back";
}
/**
* Handles reset request.
*
* @param event Request invocation event
*
*/
throws ModelControlException, AMConsoleException {
}
throw new AMConsoleException("No page session attribute corresponding to " + AMAdminConstants.SAVE_VB_NAME);
}
try {
} catch (ClassNotFoundException e) {
throw new AMConsoleException("Could not find class corresponding to class name "
+ name + ". Exception: " + e);
}
} else {
}
}
}