use of com.sun.identity.console.base.AMViewConfig in project OpenAM by OpenRock.
the class ServerEditAdvancedViewBean method nodeClicked.
/**
* Handles tab selected event.
*
* @param event Request Invocation Event.
* @param nodeID Selected Node ID.
*/
public void nodeClicked(RequestInvocationEvent event, int nodeID) {
AMViewConfig amconfig = AMViewConfig.getInstance();
try {
AMViewBeanBase vb = getTabNodeAssociatedViewBean("cscGeneral", nodeID);
unlockPageTrailForSwapping();
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
} catch (AMConsoleException e) {
debug.error("ServerEditGeneralViewBean.nodeClicked", e);
forwardTo();
}
}
use of com.sun.identity.console.base.AMViewConfig in project OpenAM by OpenRock.
the class ServerSiteViewBean method forwardToServerProfilePage.
private void forwardToServerProfilePage(String serverName) {
setPageSessionAttribute(ServerEditGeneralViewBean.PG_ATTR_SERVER_NAME, serverName);
String tabIdx = (String) getPageSessionAttribute(ServerEditGeneralViewBean.TAB_TRACKER);
int idxTab = 421;
if (tabIdx != null) {
idxTab = Integer.parseInt(tabIdx);
}
AMViewConfig config = AMViewConfig.getInstance();
try {
AMViewBeanBase vb = config.getTabViewBean(this, "/", getModel(), ServerEditGeneralViewBean.TAB_NAME, idxTab, -1);
unlockPageTrail();
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
use of com.sun.identity.console.base.AMViewConfig in project OpenAM by OpenRock.
the class ServerEditAdvancedViewBean method createTabModel.
protected void createTabModel() {
if (tabModel == null) {
AMViewConfig amconfig = AMViewConfig.getInstance();
tabModel = amconfig.getTabsModel(ServerEditViewBeanBase.TAB_NAME, "/", getRequestContext().getRequest());
registerChild(TAB_COMMON, CCTabs.class);
}
}
use of com.sun.identity.console.base.AMViewConfig in project OpenAM by OpenRock.
the class ServerEditViewBeanBase method createTabModel.
protected void createTabModel(String serverName) {
AMViewConfig amconfig = AMViewConfig.getInstance();
tabModel = amconfig.getTabsModel(TAB_NAME, "/", getRequestContext().getRequest());
if (serverName.equals(ServerConfiguration.DEFAULT_SERVER_CONFIG)) {
CCNavNode node = (CCNavNode) tabModel.getNodeById(425);
tabModel.removeNode(node);
}
registerChild(TAB_COMMON, CCTabs.class);
}
use of com.sun.identity.console.base.AMViewConfig in project OpenAM by OpenRock.
the class ServicesModelImpl method mapNameToDisplayName.
/**
* Creates a mapping of the service name to the display name
* for the service.
*/
private Map mapNameToDisplayName(Set names) {
Map map = new HashMap(names.size() * 2);
AMViewConfig vConfig = AMViewConfig.getInstance();
for (Iterator iter = names.iterator(); iter.hasNext(); ) {
String name = (String) iter.next();
/*
* Have a way to hide policies in console by adding some entries
* to amConsoleConfig.xml
*/
if (vConfig.isServiceVisible(name)) {
String displayName = getLocalizedServiceName(name);
if (!name.equals(displayName)) {
map.put(name, displayName);
}
}
}
return map;
}
Aggregations