use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class UMUserResourceOfferingEditViewBean method recoveryMechID.
private void recoveryMechID() {
SMDiscoEntryData smDisco = getCurrentServiceData();
List list = (ArrayList) removePageSessionAttribute(PGATTR_ORIG_MECH_ID);
if (list != null) {
smDisco.descData = list;
}
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class UMUserResourceOfferingViewBeanBase method handleTblSecurityMechIDHrefActionRequest.
/**
* Handles edit security mechanism ID request.
*
* @param event Request Invocation Event.
*/
public void handleTblSecurityMechIDHrefActionRequest(RequestInvocationEvent event) throws ModelControlException {
SMDiscoEntryData smData = (SMDiscoEntryData) getPageSessionAttribute(PROPERTY_ATTRIBUTE);
setPageSessionAttribute(UMUserDiscoveryDescriptionViewBeanBase.PG_SESSION_DISCO_ENTRY_DATA, smData);
setPageSessionAttribute(UMUserDiscoveryDescriptionViewBeanBase.PG_SESSION_RETURN_VIEW_BEAN_CLASSNAME, getClass().getName());
UMUserDiscoveryDescriptionEditViewBean vb = (UMUserDiscoveryDescriptionEditViewBean) getViewBean(UMUserDiscoveryDescriptionEditViewBean.class);
passPgSessionMap(vb);
vb.populateValues((String) getDisplayFieldValue(TBL_SECURITY_MECH_ID_HREF_ACTION));
vb.forwardTo(getRequestContext());
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class UMUserDiscoveryDescriptionEditViewBean method getCurrentData.
protected SMDescriptionData getCurrentData() {
int currentIdx = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
SMDiscoEntryData data = (SMDiscoEntryData) getPageSessionAttribute(PG_SESSION_DISCO_ENTRY_DATA);
return (SMDescriptionData) data.descData.get(currentIdx);
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class UMUserDiscoveryDescriptionEditViewBean method handleButton1Request.
protected void handleButton1Request(SMDescriptionData smData) throws AMConsoleException {
SMDiscoEntryData data = (SMDiscoEntryData) getPageSessionAttribute(PG_SESSION_DISCO_ENTRY_DATA);
int index = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
data.descData.set(index, smData);
setPageSessionAttribute(UMUserResourceOfferingViewBeanBase.PG_SESSION_MODIFIED, "1");
returnToCallingViewBean();
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class EntityDiscoveryDescriptionEditViewBean method handleButton1Request.
protected void handleButton1Request(SMDescriptionData smData) throws AMConsoleException {
EntityResourceOfferingViewBeanBase vb = (EntityResourceOfferingViewBeanBase) getReturnToViewBean();
SMDiscoEntryData data = (SMDiscoEntryData) getPageSessionAttribute(PG_SESSION_DISCO_ENTRY_DATA);
int index = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
data.descData.set(index, smData);
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
Aggregations