Search in sources :

Example 11 with SMDiscoEntryData

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());
}
Also used : SMDiscoEntryData(com.sun.identity.console.service.model.SMDiscoEntryData)

Example 12 with SMDiscoEntryData

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());
}
Also used : SMDiscoEntryData(com.sun.identity.console.service.model.SMDiscoEntryData)

Example 13 with SMDiscoEntryData

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);
    }
}
Also used : SMDiscoEntryData(com.sun.identity.console.service.model.SMDiscoEntryData)

Example 14 with SMDiscoEntryData

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);
}
Also used : SMDiscoveryServiceData(com.sun.identity.console.service.model.SMDiscoveryServiceData) SMDiscoEntryData(com.sun.identity.console.service.model.SMDiscoEntryData) List(java.util.List) DiscoveryDataCache(com.sun.identity.console.service.model.DiscoveryDataCache)

Example 15 with SMDiscoEntryData

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());
}
Also used : SMDiscoEntryData(com.sun.identity.console.service.model.SMDiscoEntryData)

Aggregations

SMDiscoEntryData (com.sun.identity.console.service.model.SMDiscoEntryData)42 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)10 List (java.util.List)7 DiscoveryDataCache (com.sun.identity.console.service.model.DiscoveryDataCache)6 SMDescriptionData (com.sun.identity.console.service.model.SMDescriptionData)6 SMDiscoveryServiceData (com.sun.identity.console.service.model.SMDiscoveryServiceData)5 Iterator (java.util.Iterator)5 ArrayList (java.util.ArrayList)3 CCActionTableModel (com.sun.web.ui.model.CCActionTableModel)2 OptionList (com.iplanet.jato.view.html.OptionList)1 EntityResourceOfferingModel (com.sun.identity.console.idm.model.EntityResourceOfferingModel)1 RealmResourceOfferingModel (com.sun.identity.console.realm.model.RealmResourceOfferingModel)1 UMUserResourceOfferingModel (com.sun.identity.console.user.model.UMUserResourceOfferingModel)1 OrderedSet (com.sun.identity.shared.datastruct.OrderedSet)1 CCEditableListModel (com.sun.web.ui.model.CCEditableListModel)1 CCEditableList (com.sun.web.ui.view.editablelist.CCEditableList)1 CCSelectableList (com.sun.web.ui.view.html.CCSelectableList)1 CCActionTable (com.sun.web.ui.view.table.CCActionTable)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1