Search in sources :

Example 1 with AMPropertySheet

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

the class SCPropertiesBase method beginDisplay.

public void beginDisplay(DisplayEvent event) throws ModelControlException {
    super.beginDisplay(event);
    SCModel model = (SCModel) getModel();
    if (model != null) {
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        propertySheetModel.clear();
        setAttributeValuesToPropertyModel(ps, model);
    }
}
Also used : SCModel(com.sun.identity.console.service.model.SCModel) AMPropertySheet(com.sun.identity.console.base.AMPropertySheet)

Example 2 with AMPropertySheet

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

the class SCSAML2SOAPBindingViewBean method prePopulateTable.

private void prePopulateTable() {
    Map attributeValues = (Map) removePageSessionAttribute(PROPERTY_ATTRIBUTE);
    if (attributeValues != null) {
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        ps.setAttributeValues(attributeValues, getModel());
    }
    prePopulateRequestHandlerListTable(attributeValues);
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) HashMap(java.util.HashMap) Map(java.util.Map)

Example 3 with AMPropertySheet

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

the class SCSOAPBindingViewBean method prePopulateTable.

private void prePopulateTable() {
    Map attributeValues = (Map) removePageSessionAttribute(PROPERTY_ATTRIBUTE);
    if (attributeValues != null) {
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        ps.setAttributeValues(attributeValues, getModel());
    }
    prePopulateRequestHandlerListTable(attributeValues);
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) HashMap(java.util.HashMap) Map(java.util.Map)

Example 4 with AMPropertySheet

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

the class ConfigureSalesForceAppsCompleteViewBean method beginDisplay.

public void beginDisplay(DisplayEvent event) throws ModelControlException {
    try {
        super.beginDisplay(event);
        HttpServletRequest req = getRequestContext().getRequest();
        String realm = req.getParameter("realm");
        String idp = req.getParameter("idp");
        String attrMapp = req.getParameter("attrMapp");
        String spEntityId = req.getParameter(ENTITY_ID);
        setPageSessionAttribute(ENTITY_ID, spEntityId);
        setPageSessionAttribute("entityRealm", realm);
        TaskModel model = (TaskModel) getModelInternal();
        Map values = model.getConfigureSalesForceAppsURLs(realm, idp, attrMapp);
        String domainId = getModel().getLocalizedString("salesforce.link");
        String msg = "<ul>";
        String orgMsg = getModel().getLocalizedString("configure.salesforce.apps.complete.urllist");
        msg += "<li>";
        msg += MessageFormat.format(orgMsg, domainId, domainId);
        msg += "</li>";
        msg += "</ul>";
        values.put("urllist", returnEmptySetIfValueIsNull(msg));
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
        ps.setAttributeValues(values, model);
    } catch (AMConsoleException ex) {
        Logger.getLogger(ConfigureSalesForceAppsCompleteViewBean.class.getName()).log(Level.SEVERE, null, ex);
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", ex.getMessage());
    }
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) Map(java.util.Map) TaskModel(com.sun.identity.console.task.model.TaskModel)

Example 5 with AMPropertySheet

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

the class ServiceViewBeanBase method getValues.

protected Map getValues() throws ModelControlException, AMConsoleException {
    Map values = null;
    EntitiesModel model = (EntitiesModel) getModel();
    if (model != null) {
        String serviceName = (String) getPageSessionAttribute(SERVICE_NAME);
        String universalId = (String) getPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID);
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        values = ps.getAttributeValues(model.getServiceAttributeValues(universalId, serviceName), model);
    }
    return values;
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) Map(java.util.Map) EntitiesModel(com.sun.identity.console.idm.model.EntitiesModel)

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