Beispiel #1
0
        public new DataExplorerNodeSet Copy()
        {
            Server.Application.DataExplorerNodeSet serverObject = (Server.Application.DataExplorerNodeSet)ToServerObject();

            DataExplorerNodeSet copiedObject = new DataExplorerNodeSet(application, serverObject);

            return(copiedObject);
        }
Beispiel #2
0
        public DataExplorer(Application applicationReference)
        {
            BaseConstructor(applicationReference);

            rootNode = new DataExplorerNodeSet(applicationReference);

            rootNode.DataExplorer = this;

            return;
        }
Beispiel #3
0
        public Boolean IsEqual(DataExplorerNodeSet compareObject)
        {
            Boolean isEqual = base.IsEqual((DataExplorerNode)compareObject);


            // TODO:


            return(isEqual);
        }
Beispiel #4
0
        public DataExplorerNodeSet AddNodeSet(Server.Application.DataExplorerSetType forSetType)
        {
            DataExplorerNodeSet nodeSet = new DataExplorerNodeSet(application);

            nodeSet.SetType = forSetType;

            nodeSet.Parent = this;

            Children.Add(nodeSet);

            return(nodeSet);
        }
Beispiel #5
0
        public void MapFromServerObject(Server.Application.DataExplorerNodeSet serverObject)
        {
            setType = serverObject.SetType;


            foreach (Server.Application.DataExplorerNode currentChildNode in serverObject.Children)
            {
                DataExplorerNode childNode = null;

                switch (currentChildNode.NodeType)
                {
                case Server.Application.DataExplorerNodeType.Set:

                    childNode = new DataExplorerNodeSet(application, (Server.Application.DataExplorerNodeSet)currentChildNode);

                    childNode.Parent = this;

                    break;

                case Server.Application.DataExplorerNodeType.Evaluation:

                    childNode = new DataExplorerNodeEvaluation(application, (Server.Application.DataExplorerNodeEvaluation)currentChildNode);

                    switch (((DataExplorerNodeEvaluation)childNode).EvaluationType)
                    {
                    case Server.Application.DataExplorerEvaluationType.MemberDemographic: childNode = new Evaluations.DataExplorerNodeEvaluationMemberDemographic(application, ((Server.Application.DataExplorerNodeEvaluationMemberDemographic)currentChildNode)); break;

                    case Server.Application.DataExplorerEvaluationType.MemberEnrollment: childNode = new Evaluations.DataExplorerNodeEvaluationMemberEnrollment(application, ((Server.Application.DataExplorerNodeEvaluationMemberEnrollment)currentChildNode)); break;

                    case Server.Application.DataExplorerEvaluationType.MemberEnrollmentContinuousFromBirthDate: childNode = new Evaluations.DataExplorerNodeEvaluationMemberEnrollmentContinuousFromBirthDate(application, ((Server.Application.DataExplorerNodeEvaluationMemberEnrollmentContinuousFromBirthDate)currentChildNode)); break;

                    case Server.Application.DataExplorerEvaluationType.MemberMetric: childNode = new Evaluations.DataExplorerNodeEvaluationMemberMetric(application, ((Server.Application.DataExplorerNodeEvaluationMemberMetric)currentChildNode)); break;

                    case Server.Application.DataExplorerEvaluationType.MemberService: childNode = new Evaluations.DataExplorerNodeEvaluationMemberService(application, ((Server.Application.DataExplorerNodeEvaluationMemberService)currentChildNode)); break;

                    case Server.Application.DataExplorerEvaluationType.PopulationMembership: childNode = new Evaluations.DataExplorerNodeEvaluationPopulationMembership(application, ((Server.Application.DataExplorerNodeEvaluationPopulationMembership)currentChildNode)); break;
                    }

                    childNode.Parent = this;

                    break;
                }

                if (childNode != null)
                {
                    Children.Add(childNode);
                }
            }

            return;
        }
Beispiel #6
0
        public void MapFromServerObject(Server.Application.DataExplorer serverObject)
        {
            isPublic = serverObject.IsPublic;

            ownerSecurityAuthorityId = serverObject.OwnerSecurityAuthorityId;

            ownerUserAccountId = serverObject.OwnerUserAccountId;

            ownerUserAccountName = serverObject.OwnerUserAccountName;

            ownerUserDisplayName = serverObject.OwnerUserDisplayName;


            rootNode = new DataExplorerNodeSet(application, serverObject.RootNode);

            rootNode.DataExplorer = this;


            return;
        }