Пример #1
0
 public DirectoryObject(IDirectoryProvider directory, DirectoryIdentity identity)
 {
     AnchorUtil.ThrowOnNullArgument(directory, "directory");
     AnchorUtil.ThrowOnNullArgument(identity, "identity");
     this.directory = directory;
     this.Identity  = identity;
 }
Пример #2
0
 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;
 }
Пример #3
0
 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));
 }
Пример #4
0
 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;
 }
Пример #5
0
 public virtual IRequest CreateRequestToMove(DirectoryIdentity target, string batchName, ILogger logger)
 {
     throw new NotSupportedException("Directory objects of type " + base.GetType() + " can't be moved.");
 }
Пример #6
0
 public IRequest CreateRequestToMove(DirectoryMailbox directoryMailbox, DirectoryIdentity targetIdentity, string batchName, ILogger logger)
 {
     return(new NullDirectory.NullRequest());
 }
Пример #7
0
 public DirectoryObject GetDirectoryObject(DirectoryIdentity directoryObjectIdentity)
 {
     return(null);
 }
Пример #8
0
 public DirectoryDatabase GetDatabaseForMailbox(DirectoryIdentity identity)
 {
     return(null);
 }
Пример #9
0
 public DirectoryDatabaseAvailabilityGroup(IDirectoryProvider directory, DirectoryIdentity identity) : base(directory, identity)
 {
 }
Пример #10
0
 public DirectoryMailbox(IDirectoryProvider directory, DirectoryIdentity identity, IEnumerable <IPhysicalMailbox> physicalMailboxes, DirectoryMailboxType mailboxType = DirectoryMailboxType.Organization) : base(directory, identity)
 {
     this.physicalMailboxes = physicalMailboxes.ToList <IPhysicalMailbox>();
     this.MailboxType       = mailboxType;
 }
Пример #11
0
 protected DirectoryContainerParent(IDirectoryProvider directory, DirectoryIdentity identity) : base(directory, identity)
 {
 }
Пример #12
0
 public NonConnectedMailbox(IDirectoryProvider directory, DirectoryIdentity identity, IEnumerable <IPhysicalMailbox> physicalMailboxes) : base(directory, identity, physicalMailboxes, DirectoryMailboxType.Organization)
 {
 }
Пример #13
0
 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))
 {
 }
Пример #14
0
 public DirectoryServer(IDirectoryProvider directory, DirectoryIdentity identity, string fqdn) : base(directory, identity)
 {
     this.Fqdn = fqdn;
 }
Пример #15
0
 public DirectoryForest(IDirectoryProvider directory, DirectoryIdentity identity) : base(directory, identity)
 {
 }
Пример #16
0
        public virtual bool IsOwnedBy(DirectoryIdentity directoryIdentity)
        {
            DirectoryServer directoryServer = this.ActivationOrder.First <DirectoryServer>();

            return(directoryServer != null && directoryServer.Identity.Equals(directoryIdentity));
        }
Пример #17
0
 public IEnumerable <DirectoryServer> GetServers(DirectoryIdentity dagIdentity)
 {
     yield break;
 }
Пример #18
0
 public virtual DirectoryMailbox GetMailbox(DirectoryIdentity identity)
 {
     return(base.Directory.GetDirectoryObject(identity) as DirectoryMailbox);
 }
Пример #19
0
 public CloudArchive(IDirectoryProvider directory, DirectoryIdentity identity, IEnumerable <IPhysicalMailbox> physicalMailboxes) : base(directory, identity, physicalMailboxes, DirectoryMailboxType.Organization)
 {
 }