use of com.sun.identity.console.service.model.SMDescriptionData in project OpenAM by OpenRock.
the class EntityDiscoveryDescriptionEditViewBean 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.SMDescriptionData in project OpenAM by OpenRock.
the class RealmDiscoveryDescriptionEditViewBean 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.SMDescriptionData in project OpenAM by OpenRock.
the class UMUserResourceOfferingEditViewBean method getCurrentServiceData.
protected SMDiscoEntryData getCurrentServiceData() {
int currentIdx = Integer.parseInt((String) getPageSessionAttribute(PGATTR_INDEX));
DiscoveryDataCache cache = DiscoveryDataCache.getInstance();
String cacheID = (String) getPageSessionAttribute(UMUserResourceOfferingViewBean.DATA_ID);
SMDiscoveryServiceData smEntry = cache.getData(getModel().getUserSSOToken(), cacheID);
List resourceData = smEntry.getResourceData();
SMDiscoEntryData smDisco = (SMDiscoEntryData) resourceData.get(currentIdx);
if (getPageSessionAttribute(PGATTR_ORIG_MECH_ID) == null) {
ArrayList list = new ArrayList();
for (Iterator i = smDisco.descData.iterator(); i.hasNext(); ) {
list.add(new SMDescriptionData((SMDescriptionData) i.next()));
}
setPageSessionAttribute(PGATTR_ORIG_MECH_ID, list);
}
return smDisco;
}
Aggregations