// Token: 0x06001174 RID: 4468 RVA: 0x000540EC File Offset: 0x000522EC
        public static IList <RetentionPolicy> GetDefaultRetentionPolicy(IConfigurationSession scopedSession, ADRawEntry user, SortBy sortBy, int resultSize)
        {
            bool isArbitrationMailbox = false;

            if (user[OrgPersonPresentationObjectSchema.RecipientTypeDetails] != null && (RecipientTypeDetails)user[OrgPersonPresentationObjectSchema.RecipientTypeDetails] == RecipientTypeDetails.ArbitrationMailbox)
            {
                isArbitrationMailbox = true;
            }
            return(SharedConfiguration.GetDefaultRetentionPolicy(scopedSession, isArbitrationMailbox, sortBy, resultSize));
        }
 // Token: 0x06001176 RID: 4470 RVA: 0x00054170 File Offset: 0x00052370
 public static bool ExecutingUserHasRetentionPolicy(ADRawEntry executingUser, OrganizationId orgId)
 {
     if (executingUser[ADUserSchema.RetentionPolicy] != null)
     {
         return(true);
     }
     if (executingUser[ADObjectSchema.OrganizationId] != null && !OrganizationId.ForestWideOrgId.Equals(executingUser[ADObjectSchema.OrganizationId]))
     {
         IConfigurationSession   scopedSession          = SharedConfiguration.CreateScopedToSharedConfigADSession(orgId);
         IList <RetentionPolicy> defaultRetentionPolicy = SharedConfiguration.GetDefaultRetentionPolicy(scopedSession, executingUser, null, 1);
         if (defaultRetentionPolicy != null && defaultRetentionPolicy.Count > 0)
         {
             return(true);
         }
     }
     return(false);
 }