// Token: 0x06000C1E RID: 3102 RVA: 0x000263C5 File Offset: 0x000245C5 public MailboxStoreObjectIdParameter(MailboxStoreObjectId storeObjectId) { if (null == storeObjectId) { throw new ArgumentNullException("storeObjectId"); } this.rawIdentity = storeObjectId.ToString(); ((IIdentityParameter)this).Initialize(storeObjectId); }
public static ObjectId RedactMailboxStoreObjectId(ObjectId objectId, out string raw, out string redacted) { raw = null; redacted = null; MailboxStoreObjectId mailboxStoreObjectId = objectId as MailboxStoreObjectId; if (mailboxStoreObjectId != null) { return(new MailboxStoreObjectId(SuppressingPiiData.Redact(mailboxStoreObjectId.MailboxOwnerId, out raw, out redacted), mailboxStoreObjectId.StoreObjectId)); } return(objectId); }
// Token: 0x06000C1A RID: 3098 RVA: 0x00026308 File Offset: 0x00024508 void IIdentityParameter.Initialize(ObjectId objectId) { if (objectId == null) { throw new ArgumentNullException("objectId"); } MailboxStoreObjectId mailboxStoreObjectId = objectId as MailboxStoreObjectId; if (null == mailboxStoreObjectId) { throw new NotSupportedException("objectId: " + objectId.GetType().FullName); } this.RawOwner = new MailboxIdParameter(mailboxStoreObjectId.MailboxOwnerId); this.RawStoreObjectId = mailboxStoreObjectId.StoreObjectId; }
void IIdentityParameter.Initialize(ObjectId objectId) { ArgumentValidator.ThrowIfNull("objectId", objectId); MailboxStoreObjectId mailboxStoreObjectId = objectId as MailboxStoreObjectId; if (mailboxStoreObjectId == null) { throw new NotSupportedException("objectId: " + objectId.GetType().FullName); } this.MailboxId = new MailboxIdParameter(mailboxStoreObjectId.MailboxOwnerId); if (mailboxStoreObjectId.StoreObjectId != null) { this.AssociationIdType = MailboxAssociationIdParameter.IdTypeItemId; this.AssociationIdValue = mailboxStoreObjectId.StoreObjectId.ToBase64String(); } }
private void WriteMailboxAssociation(MailboxAssociationFromStore association, IAssociationAdaptor associationAdaptor, ADUser masterMailbox, IExtensibleLogger logger) { if (association != null) { ObjectId objectId = new MailboxStoreObjectId(masterMailbox.ObjectId, association.ItemId.ObjectId); MailboxLocator slaveMailboxLocator = associationAdaptor.GetSlaveMailboxLocator(association); if (base.NeedSuppressingPiiData) { objectId = SuppressingPiiData.RedactMailboxStoreObjectId(objectId); } base.WriteResult(new MailboxAssociationPresentationObject { Identity = objectId, ExternalId = slaveMailboxLocator.ExternalId, LegacyDn = slaveMailboxLocator.LegacyDn, IsMember = association.IsMember, JoinedBy = association.JoinedBy, GroupSmtpAddress = association.GroupSmtpAddress, UserSmtpAddress = association.UserSmtpAddress, IsPin = association.IsPin, ShouldEscalate = association.ShouldEscalate, IsAutoSubscribed = association.IsAutoSubscribed, JoinDate = association.JoinDate, LastVisitedDate = association.LastVisitedDate, PinDate = association.PinDate, LastModified = association.LastModified, CurrentVersion = association.CurrentVersion, SyncedVersion = association.SyncedVersion, LastSyncError = association.LastSyncError, SyncAttempts = association.SyncAttempts, SyncedSchemaVersion = association.SyncedSchemaVersion }); return; } GetMailboxAssociation.Tracer.TraceDebug((long)this.GetHashCode(), "GetMailboxAssocaition.WriteMailboxAssociation. Skipping null MailboxAssociationFromStore."); }
public MailboxAssociationIdParameter(MailboxStoreObjectId mailboxStoreObjectId) : this(mailboxStoreObjectId.ToString()) { }