use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class AgentsViewBean method getModelInternal.
protected AMModel getModelInternal() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
return new AgentsModelImpl(req, getPageSessionAttributes());
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class FileUploaderViewBean method getModelInternal.
protected AMModel getModelInternal() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
return new AMModelBase(req, getPageSessionAttributes());
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class EntitiesViewBean method getModelInternal.
protected AMModel getModelInternal() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
return new EntitiesModelImpl(req, getPageSessionAttributes());
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class EntityPropertiesBase method getEntityModel.
protected AMModel getEntityModel() {
RequestContext rc = RequestManager.getRequestContext();
EntityModel model = new EntityModelImpl(rc.getRequest(), getPageSessionAttributes());
return model;
}
use of com.iplanet.jato.RequestContext in project OpenAM by OpenRock.
the class STSEditViewBeanBase method getModelInternal.
protected AMModel getModelInternal() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
try {
if (stsType.isRestSTS()) {
return new RestSTSInstanceModel(req, getPageSessionAttributes());
} else {
return new SoapSTSInstanceModel(req, getPageSessionAttributes());
}
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
throw new IllegalStateException("Exception getting model in STSEditViewBeanBase: " + e.getMessage(), e);
}
}
Aggregations