Search in sources :

Example 26 with AMPropertySheetModel

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

the class UMChangeUserPasswordViewBean method createPropertyModel.

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

Example 27 with AMPropertySheetModel

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

the class AgentGroupAddViewBean method createPropertyModel.

private void createPropertyModel() {
    String agentType = getAgentType();
    String xml;
    if (agentType.equals(AgentConfiguration.AGENT_TYPE_J2EE)) {
        xml = "com/sun/identity/console/propertyAgentGroupAddJ2EE.xml";
    } else if (agentType.equals(AgentConfiguration.AGENT_TYPE_WEB)) {
        xml = "com/sun/identity/console/propertyAgentGroupAddWeb.xml";
    } else {
        xml = "com/sun/identity/console/propertyAgentGroupAdd.xml";
    }
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xml));
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Example 28 with AMPropertySheetModel

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

the class AgentProfileViewBean method createPropertyModel.

protected boolean createPropertyModel() {
    boolean created = false;
    String type = getAgentType();
    if ((type != null) && (type.trim().length() > 0)) {
        String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
        AgentsModel model = (AgentsModel) getModel();
        String universalId = (String) getPageSessionAttribute(UNIVERSAL_ID);
        String choice = (String) getPageSessionAttribute(AgentsViewBean.LOCAL_OR_NOT);
        if (checkAgentType(type)) {
            inheritedPropertyNames = (!isGroup && !is2dot2Agent() && !isAgentAuthenticator() && !choice.equals(AgentsViewBean.PROP_LOCAL)) ? model.getInheritedPropertyNames(curRealm, universalId) : Collections.EMPTY_SET;
        } else {
            inheritedPropertyNames = (!isGroup && !is2dot2Agent() && !isAgentAuthenticator()) ? model.getInheritedPropertyNames(curRealm, universalId) : Collections.EMPTY_SET;
        }
        AMPropertySheetModel psModel = createPropertySheetModel(type);
        if (psModel != null) {
            propertySheetModel = psModel;
            propertySheetModel.clear();
        }
        created = true;
    }
    return created;
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) AgentsModel(com.sun.identity.console.agentconfig.model.AgentsModel)

Example 29 with AMPropertySheetModel

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

the class SAMLv2SPAdvancedViewBean method createPropertyModel.

protected void createPropertyModel() {
    retrieveCommonProperties();
    if (isHosted()) {
        psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAdvancedHosted.xml"));
    } else {
        psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAdvancedRemote.xml"));
    }
    psModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Example 30 with AMPropertySheetModel

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

the class SAMLv2SPAssertionContentViewBean method createPropertyModel.

protected void createPropertyModel() {
    retrieveCommonProperties();
    if (isHosted()) {
        psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAssertionContentHosted.xml"));
        createAuthContextsModel();
        psModel.setModel(TBL_AUTHENTICATION_CONTEXTS, tblAuthContextsModel);
    } else {
        psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2SPAssertionContentRemote.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