use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class RealmDiscoveryDescriptionAddViewBean method handleButton1Request.
protected void handleButton1Request(SMDescriptionData smData) {
RealmResourceOfferingViewBeanBase vb = (RealmResourceOfferingViewBeanBase) getReturnToViewBean();
SMDiscoEntryData data = (SMDiscoEntryData) removePageSessionAttribute(PG_SESSION_DISCO_ENTRY_DATA);
data.descData.add(smData);
setPageSessionAttribute(RealmResourceOfferingViewBeanBase.PROPERTY_ATTRIBUTE, data);
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class RealmDiscoveryDescriptionEditViewBean method handleButton1Request.
protected void handleButton1Request(SMDescriptionData smData) throws AMConsoleException {
RealmResourceOfferingViewBeanBase vb = (RealmResourceOfferingViewBeanBase) 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());
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class RealmResourceOfferingAddViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
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 RealmResourceOfferingEditViewBean method getCurrentServiceData.
protected SMDiscoEntryData getCurrentServiceData() {
int currentIdx = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
DiscoveryDataCache cache = DiscoveryDataCache.getInstance();
String cacheID = (String) getPageSessionAttribute(RealmResourceOfferingViewBean.DATA_ID);
SMDiscoveryServiceData smEntry = cache.getData(getModel().getUserSSOToken(), cacheID);
List resourceData = smEntry.getResourceData();
return (SMDiscoEntryData) resourceData.get(currentIdx);
}
use of com.sun.identity.console.service.model.SMDiscoEntryData in project OpenAM by OpenRock.
the class SMDiscoveryDescriptionEditViewBean method handleButton1Request.
protected void handleButton1Request(SMDescriptionData smData) throws AMConsoleException {
SMDiscoveryBootstrapRefOffViewBeanBase vb = (SMDiscoveryBootstrapRefOffViewBeanBase) getReturnToViewBean();
SMDiscoEntryData data = (SMDiscoEntryData) getPageSessionAttribute(PG_SESSION_DISCO_ENTRY_DATA);
int index = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
data.descData.set(index, smData);
backTrail();
passPgSessionMap(vb);
vb.forwardTo(getRequestContext());
}
Aggregations