RestSTSHomeViewBean.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.
*/
public class RestSTSHomeViewBean extends RealmPropertiesBase {
public static final String DEFAULT_DISPLAY_URL =
/*
Used to set a session attribute
*/
public RestSTSHomeViewBean() {
/*
must be class name minus 'ViewBean', and the .jsp in the DEFAULT_DISPLAY_URL must match this pattern as well,
as does the url in the entry in amConsoleConfig.xml
*/
super("RestSTSHome");
}
protected void registerChildren() {
super.registerChildren();
ptModel.registerChildren(this);
tblModel.registerChildren(this);
}
} else {
}
return view;
}
throws ModelControlException {
super.beginDisplay(event);
}
protected AMModel getModelInternal() {
try {
} catch (AMConsoleException e) {
throw new IllegalStateException("Exception getting model in RestSTSAddViewBean: " + e.getMessage(), e);
}
}
private void createPageTitleModel() {
ptModel = new CCPageTitleModel(
}
private void createTableModel() {
tblModel = new CCActionTableModel(
"rest.sts.home.instances.table.button.delete");
"rest.sts.home.instances.table.column.name");
"rest.sts.home.instances.table.action.column.name");
}
private void setRestSTSInstanceNamesInTable() {
try {
} catch (AMConsoleException e) {
e.getMessage());
}
}
boolean firstEntry = true;
if (firstEntry) {
firstEntry = false;
} else {
}
}
} else {
}
}
/**
* Forwards request to creation view bean.
*
* @param event Request Invocation Event.
*/
}
/**
* Forwards request to ViewBean to edit Rest STS instance
*/
RestSTSEditViewBean.class);
}
public void handleTblButtonDeleteRequest(RequestInvocationEvent event) throws ModelControlException {
}
try {
"rest.sts.home.instance.deleted");
} else {
"rest.sts.home.instances.deleted");
}
} catch (AMConsoleException e) {
e.getMessage());
}
forwardTo();
}
/**
* Handles "back to" page request.
*
* @param event Request invocation event
*/
backTrail();
}
}