public WorkspaceItemProperty[] GetPropertiesForTypeId(string typeId) { IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { return(provider.GetPropertiesForTypeId(typeId)); } Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); return(null); }
/// <summary> /// Gets the descriptions. /// </summary> /// <param name="itemId">The item id.</param> /// <returns></returns> public WorkspaceItemDescription[] GetDescriptions(string itemId) { IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { return(provider.GetDescriptions(itemId)); } Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); return(null); }
/// <summary> /// Selects the by item id and culture id and type id. /// </summary> /// <param name="itemId">The item id.</param> /// <param name="cultureId">The culture id.</param> /// <param name="typeId">The type id.</param> /// <returns></returns> public WorkspaceItemDescription[] SelectByItemIdAndCultureIdAndTypeId(string itemId, string cultureId, string typeId) { IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { return(provider.SelectByItemIdAndCultureIdAndTypeId(itemId, cultureId, typeId)); } Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); return(null); }
/// <summary> /// Registers the workspace. /// </summary> /// <param name="workspaceItem">The workspace item.</param> /// <returns></returns> public String RegisterWorkspace(WorkspaceItem workspaceItem) { IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { return(provider.RegisterWorkspace(workspaceItem)); } Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); return(null); }
/// <summary> /// Gets the workspace items by search string. /// </summary> /// <param name="searchString">The search string.</param> /// <returns></returns> public WorkspaceItem[] GetWorkspaceItemsBySearchString(string searchString) { IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { return(provider.GetWorkspaceItemsBySearchString(searchString)); } Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); return(null); }
/// <summary> /// Gets the languages. /// </summary> /// <returns></returns> public WorkspaceItem[] GetLanguages() { IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { return(provider.GetLanguages()); } Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); return(null); }
public void DeleteWorkspaceItems(WorkspaceItem[] workspaceItems) { IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { provider.DeleteWorkspaceItems(workspaceItems); return; } Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); }
/// <summary> /// Initializes this instance. /// </summary> /// <returns></returns> public bool Initialize() { Logger.Info("Force initialize"); IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider == null) { Logger.Error("IWorkspaceBrowserProvider == null"); return(false); } return(provider.Initialize()); }
protected override void RegisterRequiredDomainObjects() { Logger.Info("RegisterRequiredDomainObjects"); IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance); if (provider != null) { provider.Initialize(); return; } Logger.Error("RegisterRequiredDomainObjects can not create provider from WorkspaceBrowserProviderFactory"); Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null"); }