use of org.wso2.carbon.idp.mgt.util.IdPManagementConstants.TEMPLATE_ID_IDP_PROPERTY_DISPLAY_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;
}
Aggregations