Search in sources :

Example 81 with AMPropertySheet

use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.

the class SAMLv2AttrAuthorityViewBean method beginDisplay.

public void beginDisplay(DisplayEvent event) throws ModelControlException {
    AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
    ps.init();
    SAMLv2Model model = (SAMLv2Model) getModel();
    ps.setAttributeValues(getStandardAttriAuthorityValues(), model);
    ps.setAttributeValues(getExtendedAttriAuthorityValues(), model);
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) SAMLv2Model(com.sun.identity.console.federation.model.SAMLv2Model)

Example 82 with AMPropertySheet

use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.

the class SAMLv2AttrAuthorityViewBean method handleButton1Request.

public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
    try {
        SAMLv2Model model = (SAMLv2Model) getModel();
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
        //retrieve the standard metadata values from the property sheet
        Map attrAuthValues = ps.getAttributeValues(model.getStandardAttributeAuthorityAttributes(realm, entityName), false, model);
        //save the standard metadata values for attribute authority
        model.setStdAttributeAuthorityValues(realm, entityName, attrAuthValues);
        //retrieve the extended metadata values from the property sheet
        Map attrAuthExtValues = ps.getAttributeValues(model.getattrAuthEXDataMap(), false, model);
        //save the extended metadata values for attribute authority
        model.setExtAttributeAuthorityValues(realm, entityName, attrAuthExtValues, location);
        setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "samlv2.attrauth.property.updated");
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
    forwardTo();
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) SAMLv2Model(com.sun.identity.console.federation.model.SAMLv2Model) HashMap(java.util.HashMap) Map(java.util.Map)

Example 83 with AMPropertySheet

use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.

the class SAMLv2AuthnAuthorityViewBean method beginDisplay.

public void beginDisplay(DisplayEvent event) throws ModelControlException {
    AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
    ps.init();
    SAMLv2Model model = (SAMLv2Model) getModel();
    ps.setAttributeValues(getStandardAuthnAuthorityValues(), model);
    ps.setAttributeValues(getExtendedAuthnAuthorityValues(), model);
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) SAMLv2Model(com.sun.identity.console.federation.model.SAMLv2Model)

Example 84 with AMPropertySheet

use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.

the class IDFFGeneralViewBean method handleButton1Request.

/**
     * Handles save
     *
     * @param event Request invocation event
     */
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
    retrieveCommonProperties();
    IDFFModel model = (IDFFModel) getModel();
    try {
        Map orig = model.getCommonAttributeValues(realm, entityName);
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
        Map values = ps.getAttributeValues(orig, false, model);
        model.modifyEntityProfile(realm, entityName, values);
        setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "idff.entityDescriptor.provider.general.updated");
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
    forwardTo();
}
Also used : IDFFModel(com.sun.identity.console.federation.model.IDFFModel) AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) Map(java.util.Map)

Example 85 with AMPropertySheet

use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.

the class FSSAMLServiceViewBean method getValues.

private Map getValues(boolean modified, boolean matchPassword) throws ModelControlException, AMConsoleException {
    AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
    FSSAMLServiceModel model = (FSSAMLServiceModel) getModel();
    Map origValues = model.getAttributeValues();
    Map origNonTableValues = new HashMap();
    origNonTableValues.putAll(origValues);
    AMAdminUtils.removeMapEntries(origNonTableValues, tabledAttributes);
    Map mapAttrValues = ps.getAttributeValues(origNonTableValues, modified, matchPassword, model);
    Map cachedValues = (Map) getPageSessionAttribute(PROPERTY_ATTRIBUTE);
    for (Iterator i = cachedValues.keySet().iterator(); i.hasNext(); ) {
        String attrName = (String) i.next();
        Set values = (Set) cachedValues.get(attrName);
        if (tabledAttributes.contains(attrName)) {
            mapAttrValues.put(attrName, values);
        }
    }
    return mapAttrValues;
}
Also used : HashSet(java.util.HashSet) Set(java.util.Set) OrderedSet(com.sun.identity.shared.datastruct.OrderedSet) HashMap(java.util.HashMap) AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) Iterator(java.util.Iterator) FSSAMLServiceModel(com.sun.identity.console.federation.model.FSSAMLServiceModel) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

AMPropertySheet (com.sun.identity.console.base.AMPropertySheet)122 Map (java.util.Map)79 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)76 HashMap (java.util.HashMap)37 SAMLv2Model (com.sun.identity.console.federation.model.SAMLv2Model)28 Set (java.util.Set)21 HashSet (java.util.HashSet)15 List (java.util.List)10 View (com.iplanet.jato.view.View)9 IDFFModel (com.sun.identity.console.federation.model.IDFFModel)8 SubConfigModel (com.sun.identity.console.service.model.SubConfigModel)8 CCAddRemoveModel (com.sun.web.ui.model.CCAddRemoveModel)8 ArrayList (java.util.ArrayList)7 Iterator (java.util.Iterator)7 CCPageTitle (com.sun.web.ui.view.pagetitle.CCPageTitle)6 ModelControlException (com.iplanet.jato.model.ModelControlException)5 WSFedPropertiesModel (com.sun.identity.console.federation.model.WSFedPropertiesModel)5 EntitiesModel (com.sun.identity.console.idm.model.EntitiesModel)5 AbstractAuditModel (com.sun.identity.console.audit.model.AbstractAuditModel)4 FSAuthDomainsModel (com.sun.identity.console.federation.model.FSAuthDomainsModel)4