public DirectoryObject(IDirectoryProvider directory, DirectoryIdentity identity) { AnchorUtil.ThrowOnNullArgument(directory, "directory"); AnchorUtil.ThrowOnNullArgument(identity, "identity"); this.directory = directory; this.Identity = identity; }
public DirectoryDatabase(IDirectoryProvider directory, DirectoryIdentity identity, IClientFactory clientFactory, bool isExcludedFromProvisioning, bool isExcludedFromInitialProvisioning, MailboxProvisioningAttributes mailboxProvisioningAttributes = null) : base(directory, identity) { this.clientFactory = clientFactory; this.IsExcludedFromProvisioning = isExcludedFromProvisioning; this.IsExcludedFromInitialProvisioning = isExcludedFromInitialProvisioning; this.MailboxProvisioningAttributes = mailboxProvisioningAttributes; }
public override IRequest CreateRequestToMove(DirectoryIdentity target, string batchName, ILogger logger) { if (target != null && target.ObjectType != DirectoryObjectType.Database) { throw new NotSupportedException("Mailboxes can only be moved into databases."); } return(base.Directory.CreateRequestToMove(this, target, batchName, logger)); }
public PhysicalMailbox(DirectoryIdentity identity, ByteQuantifiedSize totalLogicalSize, ByteQuantifiedSize totalPhysicalSize, bool isQuarantined, StoreMailboxType mailboxType, ulong itemCount, DateTime?lastLogonTimestamp, DateTime?disconnectDate, bool isConsumer, bool isSoftDeleted, bool isArchive, bool isDisabled, bool isMoveDestination) { this.Identity = identity; this.TotalLogicalSize = totalLogicalSize; this.TotalPhysicalSize = totalPhysicalSize; this.IsQuarantined = isQuarantined; this.IsArchive = isArchive; this.IsSoftDeleted = isSoftDeleted; this.IsMoveDestination = isMoveDestination; this.IsDisabled = isDisabled; this.MailboxType = mailboxType; this.ItemCount = itemCount; this.LastLogonAge = ((lastLogonTimestamp == null) ? TimeSpan.MaxValue : (DateTime.UtcNow - lastLogonTimestamp.Value)); this.LastLogonTimestamp = lastLogonTimestamp; this.DisconnectDate = disconnectDate; this.IsConsumer = isConsumer; }
public virtual IRequest CreateRequestToMove(DirectoryIdentity target, string batchName, ILogger logger) { throw new NotSupportedException("Directory objects of type " + base.GetType() + " can't be moved."); }
public IRequest CreateRequestToMove(DirectoryMailbox directoryMailbox, DirectoryIdentity targetIdentity, string batchName, ILogger logger) { return(new NullDirectory.NullRequest()); }
public DirectoryObject GetDirectoryObject(DirectoryIdentity directoryObjectIdentity) { return(null); }
public DirectoryDatabase GetDatabaseForMailbox(DirectoryIdentity identity) { return(null); }
public DirectoryDatabaseAvailabilityGroup(IDirectoryProvider directory, DirectoryIdentity identity) : base(directory, identity) { }
public DirectoryMailbox(IDirectoryProvider directory, DirectoryIdentity identity, IEnumerable <IPhysicalMailbox> physicalMailboxes, DirectoryMailboxType mailboxType = DirectoryMailboxType.Organization) : base(directory, identity) { this.physicalMailboxes = physicalMailboxes.ToList <IPhysicalMailbox>(); this.MailboxType = mailboxType; }
protected DirectoryContainerParent(IDirectoryProvider directory, DirectoryIdentity identity) : base(directory, identity) { }
public NonConnectedMailbox(IDirectoryProvider directory, DirectoryIdentity identity, IEnumerable <IPhysicalMailbox> physicalMailboxes) : base(directory, identity, physicalMailboxes, DirectoryMailboxType.Organization) { }
public PhysicalMailbox(DirectoryIdentity identity, ByteQuantifiedSize totalLogicalSize, ByteQuantifiedSize totalPhysicalSize, bool isQuarantined, MailboxMiscFlags mailboxFlags, StoreMailboxType mailboxType, ulong itemCount, DateTime?lastLogonTimestamp) : this(identity, totalLogicalSize, totalPhysicalSize, isQuarantined, mailboxType, itemCount, lastLogonTimestamp, null, false, mailboxFlags.HasFlag(MailboxMiscFlags.SoftDeletedMailbox) || mailboxFlags.HasFlag(MailboxMiscFlags.MRSSoftDeletedMailbox), mailboxFlags.HasFlag(MailboxMiscFlags.ArchiveMailbox), mailboxFlags.HasFlag(MailboxMiscFlags.DisabledMailbox), mailboxFlags.HasFlag(MailboxMiscFlags.CreatedByMove)) { }
public DirectoryServer(IDirectoryProvider directory, DirectoryIdentity identity, string fqdn) : base(directory, identity) { this.Fqdn = fqdn; }
public DirectoryForest(IDirectoryProvider directory, DirectoryIdentity identity) : base(directory, identity) { }
public virtual bool IsOwnedBy(DirectoryIdentity directoryIdentity) { DirectoryServer directoryServer = this.ActivationOrder.First <DirectoryServer>(); return(directoryServer != null && directoryServer.Identity.Equals(directoryIdentity)); }
public IEnumerable <DirectoryServer> GetServers(DirectoryIdentity dagIdentity) { yield break; }
public virtual DirectoryMailbox GetMailbox(DirectoryIdentity identity) { return(base.Directory.GetDirectoryObject(identity) as DirectoryMailbox); }
public CloudArchive(IDirectoryProvider directory, DirectoryIdentity identity, IEnumerable <IPhysicalMailbox> physicalMailboxes) : base(directory, identity, physicalMailboxes, DirectoryMailboxType.Organization) { }