internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Asset", RelatedAsset);
            builder.Relation("CreatedBy", Sender);

            foreach (Member member in Recipient)
            {
                builder.Root.And(new TokenTerm(string.Format("Message.Receipts[Recipient='{0}';IsDeleted='false']", member.ID.Token)));
            }

            // Because we are masking the Message-Receipt relation from the user,
            // and we will only ever get messages where I am the recipient or creator,
            // We filter Read and Unread by the receipts, assuming only one.
            if (IsUnread.HasValue)
            {
                builder.Simple("Receipts.IsUnread", IsUnread.Value);
            }

            if (IsArchived.HasValue)
            {
                builder.Simple("Receipts.IsArchived", IsArchived.Value);
            }
        }
示例#2
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Nickname", ShortName);
            builder.Simple("Username", Username);
        }
示例#3
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Name", Name);
            builder.Simple("URL", URL);

            builder.Relation("Asset", Asset);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Scope", Project);
            builder.MultiRelation("TestSets", TestSet);
            builder.Simple("Number", DisplayID);
            builder.Simple("Name", Name);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Name", Name);
            builder.Simple("Description", Description);
            foreach (var kvp in ArbitraryWhereTerms)
            {
                builder.Simple(kvp.Key, kvp.Value);
            }
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Name", Name);
            builder.Simple("Description", Description);

            builder.Relation("Asset", Asset);

            builder.ListRelation <AttachmentType>("Category", Type);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Number", DisplayID);
            builder.Simple("Reference", Reference);

            builder.Comparison("Estimate", Estimate);

            builder.Relation("Owner", Owners);
            builder.Relation("RegressionPlan", RegressionPlan);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("PersonalTo", new Member[] { null, builder.Instance.LoggedInMember });

            builder.Simple("Name", Name);
            builder.Simple("Content", Content);

            builder.Relation("Asset", Asset);
            builder.Relation("InResponseTo", InResponseTo);

            builder.ListRelation <NoteType>("Category", Type);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("RequestedBy", RequestedBy);
            builder.Simple("LastVersion", Build);
            builder.Relation("Customer", Customer);
            builder.Relation("Dependencies", DependsOnStories);
            builder.Relation("IdentifiedIn", IdentifiedIn);

            builder.MultiRelation("Dependants", DependentStories);

            builder.ListRelation <WorkitemRisk>("Risk", Risk);
            builder.ListRelation <StoryType>("Category", Type);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Tags", Tags);
            builder.Simple("Reference", Reference);

            builder.Relation("GeneratedFrom", GeneratedFrom);

            builder.MultiRelation("RegressionSuites", RegressionSuites);
            builder.MultiRelation("Owners", Owners);
            builder.MultiRelation("GeneratedTests", GeneratedTests);

            builder.ListRelation <RegressionTestStatus>("Status", Status);
            builder.ListRelation <TestType>("Category", Type);
        }
示例#11
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Relation("Owner", Owners);
            builder.Simple("Reference", Reference);
        }
示例#12
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("RequestedBy", RequestedBy);
            builder.Simple("Reference", Reference);

            builder.Relation("Owner", Owner);

            builder.MultiRelation("Issues", Issues);

            builder.ListRelation <WorkitemSource>("Source", Source);
            builder.ListRelation <RequestType>("Category", Type);
            builder.ListRelation <RequestStatus>("Status", Status);
            builder.ListRelation <RequestPriority>("Priority", Priority);
            builder.ListRelation <RequestResolution>("ResolutionReason", ResolutionReason);
        }
示例#13
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("FoundBy", FoundBy);
            builder.Simple("FoundInBuild", FoundInBuild);
            builder.Simple("FoundInVersion", FoundInVersion);
            builder.Simple("Environment", Environment);
            builder.Simple("FixedInBuild", ResolvedInBuild);

            builder.Relation("VerifiedBy", VerifiedBy);

            builder.MultiRelation("AffectedPrimaryWorkitems", AffectedPrimaryWorkitems);
            builder.MultiRelation("FoundInBuildRuns", FoundIn);

            builder.ListRelation <DefectType>("Type", Type);
            builder.ListRelation <DefectResolutionReason>("ResolutionReason", ResolutionReason);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.MultiRelation("Owners", Owners);
            builder.Simple("Reference", Reference);

            builder.Comparison("DetailEstimate", DetailEstimate);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Date", Date);

            builder.Relation("Timebox", Iteration);
            builder.Relation("FacilitatedBy", FacilitatedBy);
            builder.Relation("Team", Team);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("LastVersion", Build);

            builder.ListRelation <TaskSource>("Source", Source);
            builder.ListRelation <TaskType>("Category", Type);
            builder.ListRelation <TaskStatus>("Status", Status);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Reference", References);

            builder.Relation("BuildProject", BuildProjects);
            builder.Relation("ChangeSets", ChangeSets);

            builder.ListRelation <BuildSource>("Source", Source);
            builder.ListRelation <BuildStatus>("Status", Status);
        }
示例#18
0
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Reference", Reference);

            builder.Comparison("Risk", Risk);
            builder.Comparison("Swag", Swag);
            builder.Comparison("Value", Value);

            builder.Relation("Parent", Theme);
            builder.Relation("Super", Parent);

            builder.MultiRelation("Goals", Goals);
            builder.MultiRelation("Issues", Issues);
            builder.MultiRelation("BlockingIssues", BlockingIssues);
            builder.MultiRelation("Owners", Owners);
            builder.MultiRelation("Requests", Requests);

            builder.ListRelation <EpicStatus>("Status", Status);
            builder.ListRelation <WorkitemSource>("Source", Source);
            builder.ListRelation <EpicType>("Category", Type);
            builder.ListRelation <EpicPriority>("Priority", Priority);
        }
        internal override void InternalModifyFilter(FilterBuilder builder)
        {
            base.InternalModifyFilter(builder);

            builder.Simple("Reference", Reference);
        }