Search in sources :

Example 1 with SCConfigModel

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());
        }
    }
}
Also used : ServicesNoAttributeViewBean(com.sun.identity.console.realm.ServicesNoAttributeViewBean) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) AMPostViewBean(com.sun.identity.console.base.AMPostViewBean)

Example 2 with SCConfigModel

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);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) List(java.util.List)

Example 3 with SCConfigModel

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);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) List(java.util.List)

Example 4 with SCConfigModel

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);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) List(java.util.List)

Example 5 with SCConfigModel

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);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SCConfigModel(com.sun.identity.console.service.model.SCConfigModel) List(java.util.List)

Aggregations

SCConfigModel (com.sun.identity.console.service.model.SCConfigModel)6 CCActionTableModel (com.sun.web.ui.model.CCActionTableModel)4 List (java.util.List)4 AMPostViewBean (com.sun.identity.console.base.AMPostViewBean)1 ServicesNoAttributeViewBean (com.sun.identity.console.realm.ServicesNoAttributeViewBean)1