Search in sources :

Example 71 with AMPropertySheet

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

the class WSPersonalProfileServiceViewBean method prePopulateTable.

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

Example 72 with AMPropertySheet

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

the class SMDiscoveryServiceViewBean method prePopulateTable.

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

Example 73 with AMPropertySheet

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

the class SMG11NViewBean method prePopulateTable.

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

Example 74 with AMPropertySheet

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

the class GenericAgentProfileViewBean method setDefaultValues.

protected void setDefaultValues(String type) throws AMConsoleException {
    if (propertySheetModel != null) {
        AgentsModel model = (AgentsModel) getModel();
        String universalId = (String) getPageSessionAttribute(UNIVERSAL_ID);
        try {
            if (!submitCycle) {
                String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
                // !isGroup should that we do not inherit value is
                // the identity is a group.
                Map attrValues = model.getAttributeValues(curRealm, universalId, !isGroup);
                removeAgentRootURLKey(attrValues);
                propertySheetModel.clear();
                AMPropertySheet prop = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
                prop.setAttributeValues(attrValues, model);
            }
        } catch (AMConsoleException e) {
            setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
            disableButton("button1", true);
        }
        String[] uuid = { universalId };
        propertySheetModel.setValues(PROPERTY_UUID, uuid, model);
    }
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) AgentsModel(com.sun.identity.console.agentconfig.model.AgentsModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) Map(java.util.Map)

Example 75 with AMPropertySheet

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

the class EditAuthTypeViewBean method getValues.

protected Map getValues() throws ModelControlException, AMConsoleException {
    Map values = null;
    String instance = (String) getPageSessionAttribute(SERVICE_TYPE);
    AuthPropertiesModel model = getAuthModel();
    if (model != null) {
        AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
        values = ps.getAttributeValues(model.getInstanceValues(instance), model);
    }
    return values;
}
Also used : AMPropertySheet(com.sun.identity.console.base.AMPropertySheet) AuthPropertiesModel(com.sun.identity.console.authentication.model.AuthPropertiesModel) 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