public DirectoryIdentity(DirectoryObjectType objectType, Guid objectGuid, string objectName, Guid organizationId) { this.ObjectType = objectType; this.Guid = objectGuid; this.Name = objectName; this.OrganizationId = organizationId; }
public static DirectoryIdentity CreateMailboxIdentity(Guid guid, TenantPartitionHintAdapter tph, DirectoryObjectType objectType = DirectoryObjectType.Mailbox) { return(DirectoryIdentity.CreateMailboxIdentity(guid, tph.ExternalDirectoryOrganizationId, objectType)); }
public static DirectoryIdentity CreateMailboxIdentity(Guid guid, TenantPartitionHint tph, DirectoryObjectType objectType = DirectoryObjectType.Mailbox) { return(DirectoryIdentity.CreateMailboxIdentity(guid, TenantPartitionHintAdapter.FromPartitionHint(tph), objectType)); }
public static DirectoryIdentity CreateMailboxIdentity(Guid mailboxGuid, Guid organizationId, DirectoryObjectType objectType = DirectoryObjectType.Mailbox) { return(new DirectoryIdentity(objectType, mailboxGuid, string.Empty, organizationId)); }
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); }