Search in sources :

Example 31 with AMPropertySheetModel

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

the class SAMLv2PEPViewBean method createPropertyModel.

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

Example 32 with AMPropertySheetModel

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

the class SubConfigEditViewBean method createPropertyModel.

private void createPropertyModel() {
    try {
        SubConfigModel model = (SubConfigModel) getModel();
        propertySheetModel = new AMPropertySheetModel(model.getEditConfigPropertyXML(getClass().getName()));
        propertySheetModel.clear();
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
}
Also used : SubConfigModel(com.sun.identity.console.service.model.SubConfigModel) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 33 with AMPropertySheetModel

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

the class FSAuthDomainsEditViewBean method createPropertyModel.

private void createPropertyModel() {
    DelegationConfig dConfig = DelegationConfig.getInstance();
    String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
    boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
    // TBD: need to have one propertysheet which is read_only
    String xmlFile = (canModify) ? "com/sun/identity/console/propertyCOTEdit.xml" : "com/sun/identity/console/propertyCOTEdit.xml";
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
    if (addRemoveModel == null)
        addRemoveModel = new CCAddRemoveModel();
    propertySheetModel.setModel(ADD_REMOVE_PROVIDERS, addRemoveModel);
    propertySheetModel.clear();
}
Also used : CCAddRemoveModel(com.sun.web.ui.model.CCAddRemoveModel) AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) DelegationConfig(com.sun.identity.console.delegation.model.DelegationConfig)

Example 34 with AMPropertySheetModel

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

the class FSSAMLSiteIDEditViewBean method createPropertyModel.

protected void createPropertyModel() {
    DelegationConfig dConfig = DelegationConfig.getInstance();
    String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
    boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
    // TBD : add readonly xml back
    // "com/sun/identity/console/propertyFSSAMLSiteIDProfile_Readonly.xml";
    String xmlFile = (canModify) ? "com/sun/identity/console/propertyFSSAMLSiteIDProfile.xml" : "com/sun/identity/console/propertyFSSAMLSiteIDProfile.xml";
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) DelegationConfig(com.sun.identity.console.delegation.model.DelegationConfig)

Example 35 with AMPropertySheetModel

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

the class FSSAMLServiceViewBean method createPropertyModel.

private void createPropertyModel() {
    DelegationConfig dConfig = DelegationConfig.getInstance();
    String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
    boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
    // TBD: add readonly xml back
    //"com/sun/identity/console/propertyFSSAMLProfile_Readonly.xml";
    String xmlFile = (canModify) ? "com/sun/identity/console/propertyFSSAMLProfile.xml" : "com/sun/identity/console/propertyFSSAMLProfile.xml";
    propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
    propertySheetModel.setModel(TABLE_SITE_ID, tblSiteIdModel);
    propertySheetModel.setModel(TABLE_TARGET_URLS, tblTargetURLsModel);
    propertySheetModel.clear();
}
Also used : AMPropertySheetModel(com.sun.identity.console.base.model.AMPropertySheetModel) DelegationConfig(com.sun.identity.console.delegation.model.DelegationConfig)

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