use of com.sun.identity.console.idm.model.EntityResourceOfferingModelImpl in project OpenAM by OpenRock.
the class SMDiscoveryServiceViewBean method handleEntityOperationRequest.
private void handleEntityOperationRequest(String realm, String univId, RequestContext rc) {
HttpServletRequest req = rc.getRequest();
String op = req.getParameter("Op");
if (op.equals(AMAdminConstants.OPERATION_EDIT)) {
setPageSessionAttribute(PG_SESSION_PAGE_TRAIL_ID, req.getParameter(PG_SESSION_PAGE_TRAIL_ID));
setPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID, univId);
setPageSessionAttribute(AMAdminConstants.CURRENT_REALM, realm);
unlockPageTrail();
EntityResourceOfferingViewBean vb = (EntityResourceOfferingViewBean) getViewBean(EntityResourceOfferingViewBean.class);
passPgSessionMap(vb);
vb.forwardTo(rc);
} else {
setPageSessionAttribute(PG_SESSION_PAGE_TRAIL_ID, req.getParameter(PG_SESSION_PAGE_TRAIL_ID));
setPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID, univId);
setPageSessionAttribute(AMAdminConstants.CURRENT_REALM, realm);
setPageSessionAttribute(EntityEditViewBean.ENTITY_TYPE, rc.getRequest().getParameter("type"));
EntityResourceOfferingModel entityModel = new EntityResourceOfferingModelImpl(req, getPageSessionAttributes());
try {
entityModel.assignService(univId);
} catch (AMConsoleException e) {
debug.error("SMDiscoveryServiceViewBean.handleEntityOperationRequest", e);
}
backTrail();
AMPostViewBean vb = (AMPostViewBean) getViewBean(AMPostViewBean.class);
passPgSessionMap(vb);
vb.setTargetViewBeanURL("../idm/EntityServices");
vb.forwardTo(rc);
}
}
Aggregations