internal static DataClassificationIdentityMatcher CreateFrom(TextFilter nameQueryFilter, string rawSearchName)
        {
            DataClassificationIdentityMatcher result = null;

            if (nameQueryFilter != null)
            {
                result = new DataClassificationIdentityMatcher(nameQueryFilter.Text, rawSearchName, nameQueryFilter.MatchOptions);
            }
            return(result);
        }
示例#2
0
        private void InitializeDataClassificationMatchFilter()
        {
            this.resultsFilter = null;
            TextFilter nameQueryFilter = this.IsWildcardDefined(this.dataClassificationIdentityFilter) ? ((TextFilter)base.CreateWildcardFilter(ADObjectSchema.Name, this.dataClassificationIdentityFilter)) : new TextFilter(ADObjectSchema.Name, this.dataClassificationIdentityFilter, MatchOptions.FullString, MatchFlags.Default);
            DataClassificationIdentityMatcher dataClassificationIdentityMatcher = DataClassificationIdentityMatcher.CreateFrom(nameQueryFilter, this.dataClassificationIdentityFilter);

            if (dataClassificationIdentityMatcher != null)
            {
                this.resultsFilter = dataClassificationIdentityMatcher;
            }
        }