Search in sources :

Example 1 with TEMPLATE_ID_IDP_PROPERTY_NAME

use of org.wso2.carbon.idp.mgt.util.IdPManagementConstants.TEMPLATE_ID_IDP_PROPERTY_NAME in project carbon-identity-framework by wso2.

the class IdPManagementDAO method buildTemplateIdProperty.

/**
 * Build templateId property for the IDP.
 *
 * @param identityProvider Identity provider.
 * @return templateId IdentityProviderProperty.
 */
private IdentityProviderProperty buildTemplateIdProperty(IdentityProvider identityProvider) {
    IdentityProviderProperty templateIdProperty = new IdentityProviderProperty();
    templateIdProperty.setName(TEMPLATE_ID_IDP_PROPERTY_NAME);
    templateIdProperty.setDisplayName(TEMPLATE_ID_IDP_PROPERTY_DISPLAY_NAME);
    templateIdProperty.setValue(StringUtils.isNotBlank(identityProvider.getTemplateId()) ? identityProvider.getTemplateId() : StringUtils.EMPTY);
    return templateIdProperty;
}
Also used : IdentityProviderProperty(org.wso2.carbon.identity.application.common.model.IdentityProviderProperty)

Aggregations

IdentityProviderProperty (org.wso2.carbon.identity.application.common.model.IdentityProviderProperty)1