public static ElementAttachingProviderResult GetAlternateElementList(string providerName, EntityToken parentEntityToken, Dictionary <string, string> piggybag) { Verify.ArgumentNotNullOrEmpty(providerName, "providerName"); IElementAttachingProvider elementAttachingProvider = GetElementAttachingProvider(providerName); ElementAttachingProviderResult result = elementAttachingProvider.GetAlternateElementList(parentEntityToken, piggybag); return(result); }
public static IEnumerable <Element> GetChildren(string providerName, EntityToken parentEntityToken, Dictionary <string, string> piggybag) { Verify.ArgumentNotNullOrEmpty(providerName, "providerName"); IElementAttachingProvider elementAttachingProvider = GetElementAttachingProvider(providerName); IEnumerable <Element> result = elementAttachingProvider.GetChildren(parentEntityToken, piggybag); return(result); }
public static bool HaveCustomChildElements(string providerName, EntityToken parentEntityToken, Dictionary <string, string> piggybag) { Verify.ArgumentNotNullOrEmpty(providerName, "providerName"); IElementAttachingProvider elementAttachingProvider = GetElementAttachingProvider(providerName); bool result = elementAttachingProvider.HaveCustomChildElements(parentEntityToken, piggybag); return(result); }
public static void Initialize(string elementAttachingProviderName = null) { if (_sharedRootFolders != null) { return; } lock (_lock) { if (_sharedRootFolders != null) { return; } if (_elementAttachingProviderName == null) { if (elementAttachingProviderName == null) { foreach (string providerName in ElementAttachingProviderRegistry.ElementAttachingProviderNames) { IElementAttachingProvider elementAttachingProvider = ElementAttachingProviderPluginFacade.GetElementAttachingProvider(providerName); if (elementAttachingProvider is TreeElementAttachingProvider) { _elementAttachingProviderName = providerName; break; } } } else { _elementAttachingProviderName = elementAttachingProviderName; } } DoInitialize(_elementAttachingProviderName); } }