예제 #1
0
        public override IEnumerable <string> GetFullSyncTenants()
        {
            QueryFilter filter = this.RetrieveFullSyncTenantsSearchFilter();

            return(from cu in PartitionDataAggregator.FindTenantCookieContainers(filter)
                   select cu.ExternalDirectoryOrganizationId);
        }
예제 #2
0
 protected override IEnumerable <MsoTenantCookieContainer> GetPagedData()
 {
     if (this.Identity == null)
     {
         QueryFilter queryFilter = QueryFilter.OrTogether(new QueryFilter[]
         {
             new ExistsFilter(ExchangeConfigurationUnitSchema.MsoForwardSyncNonRecipientCookie),
             new ExistsFilter(ExchangeConfigurationUnitSchema.MsoForwardSyncRecipientCookie)
         });
         QueryFilter filter = QueryFilter.AndTogether(new QueryFilter[]
         {
             queryFilter,
             new ComparisonFilter(ComparisonOperator.NotEqual, ExchangeConfigurationUnitSchema.OrganizationStatus, OrganizationStatus.ReadyForRemoval),
             new ComparisonFilter(ComparisonOperator.NotEqual, ExchangeConfigurationUnitSchema.OrganizationStatus, OrganizationStatus.SoftDeleted),
             new ComparisonFilter(ComparisonOperator.NotEqual, ExchangeConfigurationUnitSchema.OrganizationStatus, OrganizationStatus.PendingRemoval)
         });
         return(PartitionDataAggregator.FindTenantCookieContainers(filter));
     }
     return(base.GetPagedData());
 }