Search in sources :

Example 56 with AMPropertySheetModel

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

the class SMDiscoveryBootstrapRefOffViewBeanBase method createPropertyModel.

protected void createPropertyModel() {
    InputStream is = getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySMDiscoveryBootstrapResOff.xml");
    String xml = AMAdminUtils.getStringFromInputStream(is);
    propertySheetModel = new AMPropertySheetModel(processPropertiesXML(xml));
    propertySheetModel.clear();
    createSecurityMechIDTable();
}
Also used : InputStream(java.io.InputStream) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel)

Example 57 with AMPropertySheetModel

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

the class AbstractEventHandlerEditViewBean method createPropertyModel.

private void createPropertyModel() {
    try {
        AbstractAuditModel model = (AbstractAuditModel) getModel();
        String subConfigName = (String) getPageSessionAttribute(AUDIT_HANDLER_NAME);
        String realm = isGlobalService() ? "/" : (String) getPageSessionAttribute(CURRENT_REALM);
        propertySheetModel = new AMPropertySheetModel(model.getEditEventHandlerPropertyXML(realm, subConfigName, getClass().getName()));
        propertySheetModel.clear();
    } catch (AMConsoleException e) {
        setInlineAlertMessage(TYPE_ERROR, ERROR_MESSAGE, e.getMessage());
    }
}
Also used : AbstractAuditModel(com.sun.identity.console.audit.model.AbstractAuditModel) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 58 with AMPropertySheetModel

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

the class FSSAMLTrustedPartnersViewBeanBase method createPropertyModel.

private boolean createPropertyModel() {
    List profiles = (List) getPageSessionAttribute(PROFILES);
    if (profiles != null) {
        SAMLPropertyXMLBuilder builder = SAMLPropertyXMLBuilder.getInstance();
        propertySheetModel = new AMPropertySheetModel(builder.getXML(profiles, !isCreateViewBean()));
        propertySheetModel.clear();
        return true;
    }
    return false;
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) List(java.util.List)

Example 59 with AMPropertySheetModel

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

the class FSSAMLTargetURLsViewBeanBase method createPropertyModel.

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

Example 60 with AMPropertySheetModel

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

the class FSSAMLTrustedPartnersEditViewBean method createPropertyModel.

protected boolean createPropertyModel() {
    List profiles = (List) getPageSessionAttribute(PROFILES);
    if (profiles != null) {
        DelegationConfig dConfig = DelegationConfig.getInstance();
        String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
        boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
        SAMLPropertyXMLBuilder builder = SAMLPropertyXMLBuilder.getInstance();
        // TBD : change to set flag to Readonly (true)
        if (!canModify) {
            builder.setAllAttributeReadOnly(false);
        }
        propertySheetModel = new AMPropertySheetModel(builder.getXML(profiles, !isCreateViewBean()));
        propertySheetModel.clear();
        return true;
    }
    return false;
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) List(java.util.List) DelegationConfig(com.sun.identity.console.delegation.model.DelegationConfig) SAMLPropertyXMLBuilder(com.sun.identity.console.federation.SAMLPropertyXMLBuilder)

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