Example #1
0
        /// <summary>
        /// Registers a CubeLink.
        /// </summary>
        /// <param name="cubeLink">The CubeLink to register.</param>
        /// <param name="referenceName">The name of the data object.</param>
        /// <param name="enabled">Determines wheter to enable the object or not.</param>
        /// <remarks>
        /// This method is for internal use only.
        /// </remarks>
        public void RegisterCubeLink(IBaseCubeLink cubeLink, string referenceName, bool enabled)
        {
            AddRegisteredItem(cubeLink, referenceName);

            CubeSourceBase source = FindDataComponent(referenceName) as CubeSourceBase;

            if (source != null)
            {
                source.Reference = cubeLink;
            }
            else
            {
                source = new SliceCubeSource();
                source.ReferenceName = referenceName;
                source.Reference     = cubeLink;
                source.Name          = CreateUniqueName(referenceName);
                source.Alias         = CreateUniqueAlias(source.Alias);
                source.Enabled       = enabled;
                CubeSources.Add(source);
            }
        }
Example #2
0
        private void PRegisterCubeLink(IBaseCubeLink cubeLink, string referenceName, bool enabled)
        {
            dictionary.AddRegisteredItem(cubeLink, referenceName);

            CubeSourceBase source = FindDataComponent(referenceName) as CubeSourceBase;

            if (source != null)
            {
                source.Reference = cubeLink;
//                source.InitSchema();
            }
            else
            {
                source = new SliceCubeSource();
                source.ReferenceName = referenceName;
                source.Reference     = cubeLink;
                source.Name          = CreateUniqueName(referenceName);
                source.Alias         = CreateUniqueAlias(source.Alias);
                source.Enabled       = enabled;
//                source.InitSchema();
                dictionary.CubeSources.Add(source);
                AddBaseWithChiledToDictonary(source);
            }
        }