use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class NewAuthConfigViewBean method getModelInternal.
protected AMModel getModelInternal() {
if (acModel == null) {
RequestContext rc = RequestManager.getRequestContext();
acModel = new AuthConfigurationModelImpl(rc.getRequest(), getPageSessionAttributes());
}
return acModel;
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class AuthPropertiesViewBean method getConfigModel.
private AMModel getConfigModel() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
return new AuthConfigurationModelImpl(req, getPageSessionAttributes());
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class FederationViewBean method getEntityModel.
private EntityModel getEntityModel() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
return new EntityModelImpl(req, getPageSessionAttributes());
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class AuthConfigViewBean method getModelInternal.
protected AMModel getModelInternal() {
RequestContext rc = RequestManager.getRequestContext();
acModel = new AuthConfigurationModelImpl(rc.getRequest(), getPageSessionAttributes());
acModel.initialize(getRealmName(), getConfigName());
return acModel;
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class ServiceViewBeanBase method handleDynLinkRequest.
/**
* Handles link type attribute schema request.
*
* @param event Request invocation event.
*/
public void handleDynLinkRequest(RequestInvocationEvent event) {
submitCycle = true;
RequestContext requestContext = getRequestContext();
HttpServletRequest req = requestContext.getRequest();
String attrName = req.getParameter("attrname");
EntitiesModel model = (EntitiesModel) getModel();
if (model != null) {
try {
String url = appendPgSession(model.getPropertiesViewBean(attrName));
requestContext.getResponse().sendRedirect(url);
} catch (IOException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
forwardTo();
}
} else {
forwardTo();
}
}
Aggregations