use of com.sun.identity.console.service.model.DiscoveryDataCache in project OpenAM by OpenRock.
the class UMUserResourceOfferingViewBean method handleButton1Request.
/**
* Handles finish service request.
*
* @param event Request invocation event.
*/
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
submitCycle = true;
UMUserResourceOfferingModel model = (UMUserResourceOfferingModel) getModel();
String userId = (String) getPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID);
DiscoveryDataCache cache = DiscoveryDataCache.getInstance();
String cacheID = (String) getPageSessionAttribute(UMUserResourceOfferingViewBean.DATA_ID);
SMDiscoveryServiceData smEntry = cache.getData(model.getUserSSOToken(), cacheID);
try {
model.setUserDiscoEntry(userId, smEntry);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
forwardToServicesViewBean();
}
Aggregations