Exemple #1
0
 public DirectoryIdentity(DirectoryObjectType objectType, Guid objectGuid, string objectName, Guid organizationId)
 {
     this.ObjectType     = objectType;
     this.Guid           = objectGuid;
     this.Name           = objectName;
     this.OrganizationId = organizationId;
 }
Exemple #2
0
 public static DirectoryIdentity CreateMailboxIdentity(Guid guid, TenantPartitionHintAdapter tph, DirectoryObjectType objectType = DirectoryObjectType.Mailbox)
 {
     return(DirectoryIdentity.CreateMailboxIdentity(guid, tph.ExternalDirectoryOrganizationId, objectType));
 }
Exemple #3
0
 public static DirectoryIdentity CreateMailboxIdentity(Guid guid, TenantPartitionHint tph, DirectoryObjectType objectType = DirectoryObjectType.Mailbox)
 {
     return(DirectoryIdentity.CreateMailboxIdentity(guid, TenantPartitionHintAdapter.FromPartitionHint(tph), objectType));
 }
Exemple #4
0
 public static DirectoryIdentity CreateMailboxIdentity(Guid mailboxGuid, Guid organizationId, DirectoryObjectType objectType = DirectoryObjectType.Mailbox)
 {
     return(new DirectoryIdentity(objectType, mailboxGuid, string.Empty, organizationId));
 }
Exemple #5
0
 public static DirectoryIdentity CreateFromADObjectId(ADObjectId adObjectId, DirectoryObjectType objectType = DirectoryObjectType.Unknown)
 {
     return(new DirectoryIdentity(objectType, adObjectId.ObjectGuid, adObjectId.Name, Guid.Empty));
 }
        private void AssignDirectoryIdentity <TObject>(IIdentityParameter identityParameter, DirectoryObjectType objectType, LocalizedString notFoundErrorMsg, LocalizedString ambiguousObjErrorMsg) where TObject : ADConfigurationObject, new()
        {
            ADConfigurationObject adconfigurationObject = (ADConfigurationObject)base.GetDataObject <TObject>(identityParameter, this.ConfigurationSession, this.RootId, new LocalizedString?(notFoundErrorMsg), new LocalizedString?(ambiguousObjErrorMsg));

            this.objectIdentity = DirectoryIdentity.CreateFromADObjectId(adconfigurationObject.Id, objectType);
        }