use of com.sun.identity.console.service.model.SCConfigModel in project OpenAM by OpenRock.
the class SCConfigViewBean method forwardToProfile.
protected void forwardToProfile(String serviceName) {
SCConfigModel model = (SCConfigModel) getModel();
setPageSessionAttribute(AMServiceProfile.SERVICE_NAME, serviceName);
unlockPageTrail();
String url = model.getServicePropertiesViewBeanURL(serviceName);
if ((url != null) && (url.length() != 0)) {
AMPostViewBean vb = (AMPostViewBean) getViewBean(AMPostViewBean.class);
passPgSessionMap(vb);
vb.setTargetViewBeanURL(url);
vb.forwardTo(getRequestContext());
} else {
// check if this service has any attributes to display.
if (model.hasConfigAttributes(serviceName)) {
SCServiceProfileViewBean vb = (SCServiceProfileViewBean) getViewBean(SCServiceProfileViewBean.class);
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
} else {
setPageSessionAttribute(AMAdminConstants.SAVE_VB_NAME, getClass().getName());
ServicesNoAttributeViewBean vb = (ServicesNoAttributeViewBean) getViewBean(ServicesNoAttributeViewBean.class);
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
}
}
use of com.sun.identity.console.service.model.SCConfigModel in project OpenAM by OpenRock.
the class SCConfigConsoleViewBean method createTableModels.
protected void createTableModels() {
SCConfigModel model = (SCConfigModel) getModel();
tblModelConsole = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigConsole.xml"));
List svcNames = model.getServiceNames(SEC_CONSOLE);
populateTableModel(tblModelConsole, svcNames, SEC_CONSOLE);
}
use of com.sun.identity.console.service.model.SCConfigModel in project OpenAM by OpenRock.
the class SCConfigGlobalViewBean method createTableModels.
protected void createTableModels() {
SCConfigModel model = (SCConfigModel) getModel();
tblModelGlobal = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigGlobal.xml"));
List svcNames = model.getServiceNames(SEC_GLOBAL);
populateTableModel(tblModelGlobal, svcNames, SEC_GLOBAL);
}
use of com.sun.identity.console.service.model.SCConfigModel in project OpenAM by OpenRock.
the class SCConfigSystemViewBean method createTableModels.
protected void createTableModels() {
SCConfigModel model = (SCConfigModel) getModel();
tblModelSystem = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigSystem.xml"));
List svcNames = model.getServiceNames(SEC_SYSTEM);
populateTableModel(tblModelSystem, svcNames, SEC_SYSTEM);
}
use of com.sun.identity.console.service.model.SCConfigModel in project OpenAM by OpenRock.
the class SCConfigAuthViewBean method createTableModels.
protected void createTableModels() {
SCConfigModel model = (SCConfigModel) getModel();
tblModelAuth = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigAuth.xml"));
List svcNames = model.getServiceNames(SEC_AUTH);
populateTableModel(tblModelAuth, svcNames, SEC_AUTH);
}
Aggregations