Search in sources :

Example 1 with SAMLPropertyXMLBuilder

use of com.sun.identity.console.federation.SAMLPropertyXMLBuilder 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)1 DelegationConfig (com.sun.identity.console.delegation.model.DelegationConfig)1 SAMLPropertyXMLBuilder (com.sun.identity.console.federation.SAMLPropertyXMLBuilder)1 List (java.util.List)1