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());
}
}
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);
}
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();
}
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);
}
Aggregations