Search in sources :

Example 91 with AMPropertySheetModel

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

the class SMDiscoveryDescriptionViewBeanBase method createPropertyModel.

protected void createPropertyModel() {
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySMDiscoveryDescription.xml"));
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Example 92 with AMPropertySheetModel

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

the class GenericAgentProfileViewBean method createPropertySheetModel.

protected AMPropertySheetModel createPropertySheetModel(String type) {
    String agentType = getAgentType();
    AgentsModel model = (AgentsModel) getModel();
    String tabName = (String) getPageSessionAttribute(PS_TABNAME);
    String choice = (String) getPageSessionAttribute(AgentsViewBean.LOCAL_OR_NOT);
    AgentPropertyXMLBuilder blder = null;
    try {
        if (isLocalConfig(agentType)) {
            blder = new AgentPropertyXMLBuilder(agentType, isGroup, true, tabName, model);
        } else {
            blder = new AgentPropertyXMLBuilder(agentType, isGroup, is2dot2Agent() || isAgentAuthenticator(), tabName, model);
        }
        attributeSchemas = blder.getAttributeSchemas();
        return new AMPropertySheetModel(blder.getXML(inheritedPropertyNames, choice));
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    } catch (SMSException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    } catch (SSOException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
    return null;
}
Also used : SMSException(com.sun.identity.sm.SMSException) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) SSOException(com.iplanet.sso.SSOException) AgentsModel(com.sun.identity.console.agentconfig.model.AgentsModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) AgentPropertyXMLBuilder(com.sun.identity.console.property.AgentPropertyXMLBuilder)

Example 93 with AMPropertySheetModel

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

the class NewAuthConfigViewBean method createPropertyModel.

private void createPropertyModel() {
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyNewAuthConfig.xml"));
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Example 94 with AMPropertySheetModel

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

the class NewAuthInstanceViewBean method createPropertyModel.

private void createPropertyModel() {
    AuthPropertiesModel model = (AuthPropertiesModel) getModel();
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyNewAuthInstance.xml"));
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) AuthPropertiesModel(com.sun.identity.console.authentication.model.AuthPropertiesModel)

Example 95 with AMPropertySheetModel

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

the class IDFFIDPViewBean method createPropertyModel.

protected void createPropertyModel() {
    retrieveCommonProperties();
    if (isHosted()) {
        psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyIDFFIDPHosted.xml"));
        createAuthContextsModel();
        psModel.setModel(TBL_AUTHENTICATION_CONTEXTS, tblAuthContextsModel);
    } else {
        psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyIDFFIDPRemote.xml"));
    }
    psModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Aggregations

AMPropertySheetModel (com.sun.identity.console.base.model.AMPropertySheetModel)146 DelegationConfig (com.sun.identity.console.delegation.model.DelegationConfig)32 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)16 CCAddRemoveModel (com.sun.web.ui.model.CCAddRemoveModel)9 InputStream (java.io.InputStream)8 HashSet (java.util.HashSet)7 Set (java.util.Set)7 Iterator (java.util.Iterator)5 HashMap (java.util.HashMap)4 Map (java.util.Map)4 HttpServletRequest (javax.servlet.http.HttpServletRequest)4 CCEditableListModel (com.sun.web.ui.model.CCEditableListModel)3 List (java.util.List)3 ViewBean (com.iplanet.jato.view.ViewBean)2 AgentsModel (com.sun.identity.console.agentconfig.model.AgentsModel)2 AbstractAuditModel (com.sun.identity.console.audit.model.AbstractAuditModel)2 EntitiesModel (com.sun.identity.console.idm.model.EntitiesModel)2 RMRealmModel (com.sun.identity.console.realm.model.RMRealmModel)2 SubConfigModel (com.sun.identity.console.service.model.SubConfigModel)2 CCOrderedListModel (com.sun.identity.console.ui.model.CCOrderedListModel)2