示例#1
0
        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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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);
        }
示例#4
0
        /// <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);
        }
示例#5
0
        /// <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);
        }
示例#6
0
        /// <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);
        }
示例#7
0
        public void DeleteWorkspaceItems(WorkspaceItem[] workspaceItems)
        {
            IWorkspaceBrowserProvider provider = WorkspaceBrowserProviderFactory.CreateProvider(WorkspaceBrowserProviderFactory.Key.Instance);

            if (provider != null)
            {
                provider.DeleteWorkspaceItems(workspaceItems);
                return;
            }
            Debug.WriteLine(DebugWriteLinePrefix + ": IWorkspaceBrowserProvider == null");
        }
示例#8
0
        /// <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());
        }
示例#9
0
        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");
        }