示例#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;
 }
 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)
 {
 }