+func (pm *ProviderManager) GetAefsForPublisher(apfId string) []string {
+ for _, provider := range pm.onboardedProviders {
+ for _, registeredFunc := range *provider.ApiProvFuncs {
+ if *registeredFunc.ApiProvFuncId == apfId && registeredFunc.ApiProvFuncRole == provapi.ApiProviderFuncRoleAPF {
+ return getExposedFuncs(provider.ApiProvFuncs)
+ }
+ }
+ }
+ return nil
+}
+
+func getExposedFuncs(providerFuncs *[]provapi.APIProviderFunctionDetails) []string {
+ exposedFuncs := []string{}
+ for _, registeredFunc := range *providerFuncs {
+ if registeredFunc.ApiProvFuncRole == provapi.ApiProviderFuncRoleAEF {
+ exposedFuncs = append(exposedFuncs, *registeredFunc.ApiProvFuncId)
+ }
+ }
+ return exposedFuncs
+}
+