Search in sources :

Example 21 with RequestContext

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;
}
Also used : AuthConfigurationModelImpl(com.sun.identity.console.authentication.model.AuthConfigurationModelImpl) RequestContext(com.iplanet.jato.RequestContext)

Example 22 with RequestContext

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());
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AuthConfigurationModelImpl(com.sun.identity.console.authentication.model.AuthConfigurationModelImpl) RequestContext(com.iplanet.jato.RequestContext)

Example 23 with RequestContext

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());
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) RequestContext(com.iplanet.jato.RequestContext) EntityModelImpl(com.sun.identity.console.federation.model.EntityModelImpl)

Example 24 with RequestContext

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;
}
Also used : AuthConfigurationModelImpl(com.sun.identity.console.authentication.model.AuthConfigurationModelImpl) RequestContext(com.iplanet.jato.RequestContext)

Example 25 with RequestContext

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();
    }
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) RequestContext(com.iplanet.jato.RequestContext) IOException(java.io.IOException) EntitiesModel(com.sun.identity.console.idm.model.EntitiesModel)

Aggregations

RequestContext (com.iplanet.jato.RequestContext)32 HttpServletRequest (javax.servlet.http.HttpServletRequest)20 IOException (java.io.IOException)5 AuthConfigurationModelImpl (com.sun.identity.console.authentication.model.AuthConfigurationModelImpl)3 AuthPropertiesModelImpl (com.sun.identity.console.authentication.model.AuthPropertiesModelImpl)3 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)3 AMModelBase (com.sun.identity.console.base.model.AMModelBase)3 ISLocaleContext (com.sun.identity.common.ISLocaleContext)2 DelegationModelImpl (com.sun.identity.console.delegation.model.DelegationModelImpl)2 EntityModelImpl (com.sun.identity.console.federation.model.EntityModelImpl)2 RestSTSInstanceModel (com.sun.identity.console.sts.model.RestSTSInstanceModel)2 SoapSTSInstanceModel (com.sun.identity.console.sts.model.SoapSTSInstanceModel)2 PWResetUserValidationModel (com.sun.identity.password.ui.model.PWResetUserValidationModel)2 ByteArrayInputStream (java.io.ByteArrayInputStream)2 DataInputStream (java.io.DataInputStream)2 InputStream (java.io.InputStream)2 ServletOutputStream (javax.servlet.ServletOutputStream)2 HttpServletResponse (javax.servlet.http.HttpServletResponse)2 CompleteRequestException (com.iplanet.jato.CompleteRequestException)1 HiddenField (com.iplanet.jato.view.html.HiddenField)1