Beispiel #1
0
 public RecipientRow(MailEnabledRecipient recipient) : base(recipient.ToIdentity(), recipient)
 {
     this.PrimarySmtpAddress      = recipient.PrimarySmtpAddress.ToString();
     this.SpriteId                = Icons.FromEnum(recipient.RecipientTypeDetails);
     this.RecipientTypeDetails    = recipient.RecipientTypeDetails.ToString();
     this.LocRecipientTypeDetails = LocalizedDescriptionAttribute.FromEnum(typeof(RecipientTypeDetails), recipient.RecipientTypeDetails);
 }
 public MailboxRecipientRow(ReducedRecipient recipient) : base(recipient)
 {
     this.Recipient              = recipient;
     this.IsUserManaged          = (recipient.RecipientTypeDetails == Microsoft.Exchange.Data.Directory.Recipient.RecipientTypeDetails.UserMailbox && recipient.AuthenticationType == AuthenticationType.Managed);
     this.IsUserFederated        = (recipient.RecipientTypeDetails == Microsoft.Exchange.Data.Directory.Recipient.RecipientTypeDetails.UserMailbox && recipient.AuthenticationType == AuthenticationType.Federated);
     this.IsRoom                 = (recipient.RecipientTypeDetails == Microsoft.Exchange.Data.Directory.Recipient.RecipientTypeDetails.RoomMailbox);
     this.Type                   = recipient.RecipientTypeDetails.ToString();
     this.IsResetPasswordAllowed = RbacPrincipal.Current.RbacConfiguration.IsCmdletAllowedInScope("Set-Mailbox", new string[]
     {
         "Password"
     }, recipient, ScopeLocation.RecipientWrite);
     this.IsKeepWindowsLiveIdAllowed = RbacPrincipal.Current.IsInRole("Remove-Mailbox?KeepWindowsLiveId@W:Organization");
     this.MailboxType = MailboxRecipientRow.GenerateMailboxTypeText(recipient.RecipientTypeDetails, recipient.ArchiveGuid, this.IsUserFederated);
     base.SpriteId    = Icons.FromEnum(recipient.RecipientTypeDetails, recipient.ArchiveGuid, this.IsUserFederated);
 }
Beispiel #3
0
 public static string FromEnum(RecipientTypeDetails recipientType)
 {
     return(Icons.FromEnum(recipientType, Guid.Empty, false));
 }