Search in sources :

Example 11 with AuthPropertiesModel

use of com.sun.identity.console.authentication.model.AuthPropertiesModel in project OpenAM by OpenRock.

the class AuthPropertiesViewBean method handleActionColumnHREFRequest.

/**
     * Handles the edit authentication instance request.
     *
     * @param event Request Invocation Event.
     */
public void handleActionColumnHREFRequest(RequestInvocationEvent event) throws ModelControlException {
    String type = hexToString((String) getDisplayFieldValue(ACTION_COLUMN_HREF));
    AuthPropertiesModel model = (AuthPropertiesModel) getModel();
    if (model.getServiceName(type) == null) {
        setPageSessionAttribute(INSTANCE_MSG, model.getLocalizedString("no.module.instance"));
        forwardTo();
    } else {
        setPageSessionAttribute(EditAuthTypeViewBean.SERVICE_TYPE, type);
        /*
             * EditAuthTypeViewBean displays the properties for the auth 
             * instance selected. We need to set the current profile value
             * to be the name of the current realm. Current Profile is use
             * by AMServiceProfileViewBeanBase.getPropertySheetXML() when 
             * building the page.
             */
        setPageSessionAttribute(AMAdminConstants.CURRENT_PROFILE, (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM));
        EditAuthTypeViewBean vb = (EditAuthTypeViewBean) getViewBean(EditAuthTypeViewBean.class);
        unlockPageTrail();
        passPgSessionMap(vb);
        vb.forwardTo(getRequestContext());
    }
}
Also used : AuthPropertiesModel(com.sun.identity.console.authentication.model.AuthPropertiesModel)

Example 12 with AuthPropertiesModel

use of com.sun.identity.console.authentication.model.AuthPropertiesModel in project OpenAM by OpenRock.

the class AuthPropertiesViewBean method forwardTo.

public void forwardTo(RequestContext reqContext) throws NavigationException {
    // set the realm selected in the parentage path in the model.
    String tmp = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
    AuthPropertiesModel m = (AuthPropertiesModel) getModel();
    m.setCurrentRealm(tmp);
    removePageSessionAttribute(AUTH_INSTANCE_TABLE);
    removePageSessionAttribute(AUTH_CONFIG_TABLE);
    super.forwardTo(reqContext);
}
Also used : AuthPropertiesModel(com.sun.identity.console.authentication.model.AuthPropertiesModel)

Example 13 with AuthPropertiesModel

use of com.sun.identity.console.authentication.model.AuthPropertiesModel in project OpenAM by OpenRock.

the class NewAuthInstanceViewBean method createPropertyModel.

private void createPropertyModel() {
    AuthPropertiesModel model = (AuthPropertiesModel) getModel();
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyNewAuthInstance.xml"));
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) AuthPropertiesModel(com.sun.identity.console.authentication.model.AuthPropertiesModel)

Example 14 with AuthPropertiesModel

use of com.sun.identity.console.authentication.model.AuthPropertiesModel in project OpenAM by OpenRock.

the class NewAuthInstanceViewBean method createAuthTypeOptionList.

private OptionList createAuthTypeOptionList() {
    AuthPropertiesModel model = (AuthPropertiesModel) getModel();
    Map types = model.getAuthTypes();
    return createOptionList(types);
}
Also used : AuthPropertiesModel(com.sun.identity.console.authentication.model.AuthPropertiesModel) Map(java.util.Map)

Aggregations

AuthPropertiesModel (com.sun.identity.console.authentication.model.AuthPropertiesModel)14 Map (java.util.Map)6 OrderedSet (com.sun.identity.shared.datastruct.OrderedSet)4 Iterator (java.util.Iterator)4 AMPropertySheet (com.sun.identity.console.base.AMPropertySheet)3 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)3 CCActionTableModel (com.sun.web.ui.model.CCActionTableModel)3 HashSet (java.util.HashSet)3 Set (java.util.Set)3 AMAuthenticationInstance (com.sun.identity.authentication.config.AMAuthenticationInstance)2 HashMap (java.util.HashMap)2 OptionList (com.iplanet.jato.view.html.OptionList)1 AMAuthenticationManager (com.sun.identity.authentication.config.AMAuthenticationManager)1 AMConfigurationException (com.sun.identity.authentication.config.AMConfigurationException)1 AuthPropertiesModelImpl (com.sun.identity.console.authentication.model.AuthPropertiesModelImpl)1 AMPropertySheetModel (com.sun.identity.console.base.model.AMPropertySheetModel)1 CCDropDownMenu (com.sun.web.ui.view.html.CCDropDownMenu)1 CCActionTable (com.sun.web.ui.view.table.CCActionTable)1