use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class SMDiscoveryDescriptionAddViewBean method handleButton1Request.
protected void handleButton1Request(SMDescriptionData smData) {
SMDiscoveryBootstrapRefOffViewBeanBase vb = (SMDiscoveryBootstrapRefOffViewBeanBase) getReturnToViewBean();
SMDiscoEntryData data = (SMDiscoEntryData) removePageSessionAttribute(PG_SESSION_DISCO_ENTRY_DATA);
data.descData.add(smData);
setPageSessionAttribute(SMDiscoveryBootstrapRefOffViewBeanBase.PROPERTY_ATTRIBUTE, data);
backTrail();
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class SMDiscoveryDescriptionEditViewBean 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 SMDiscoveryBootstrapRefOffEditViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
if (populateValues) {
SMDiscoEntryData data = getCurrentServiceData();
setValues(data, getModel());
} else {
SMDiscoEntryData data = (SMDiscoEntryData) getPageSessionAttribute(PROPERTY_ATTRIBUTE);
if (data != null) {
populateDirectiveMechIDRefs(data);
}
}
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class SMDiscoveryBootstrapRefOffEditViewBean method getCurrentServiceData.
protected SMDiscoEntryData getCurrentServiceData() {
SMDiscoEntryData curData = null;
int currentIdx = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
Map mapAttrs = (Map) getPageSessionAttribute(SMDiscoveryServiceViewBean.PROPERTY_ATTRIBUTE);
OrderedSet set = (OrderedSet) mapAttrs.get(AMAdminConstants.DISCOVERY_SERVICE_NAME_BOOTSTRAP_RES_OFF);
try {
SMDiscoveryServiceData smEntry = SMDiscoveryServiceData.getEntries(set);
List resourceData = smEntry.getResourceData();
curData = (SMDiscoEntryData) resourceData.get(currentIdx);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return curData;
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class SMDiscoveryBootstrapRefOffViewBeanBase 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(SMDiscoveryDescriptionViewBeanBase.PG_SESSION_DISCO_ENTRY_DATA, smData);
setPageSessionAttribute(SMDiscoveryDescriptionViewBeanBase.PG_SESSION_RETURN_VIEW_BEAN_CLASSNAME, getClass().getName());
SMDiscoveryDescriptionEditViewBean vb = (SMDiscoveryDescriptionEditViewBean) getViewBean(SMDiscoveryDescriptionEditViewBean.class);
unlockPageTrail();
passPgSessionMap(vb);
vb.populateValues((String) getDisplayFieldValue(TBL_SECURITY_MECH_ID_HREF_ACTION));
vb.forwardTo(getRequestContext());
}
Aggregations