C# Класс SenseNet.DirectoryServices.SyncAD2Portal

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetSyncInfo ( string ldapPath ) : SyncInfo

Gets portal info for given LDAP path. If resulting SyncInfo object's SyncTreeFound is false, no other properties are filled.

SyncAD2Portal ( ) : System
SyncFromAD ( ) : void

Syncs all objects of all configured sync trees from Active Directory(ies).

SyncObjectFromAD ( string ldapPath ) : void

Syncs a single object from Active directory according to configuration.

Приватные методы

Метод Описание
ADObjectPathSynced ( System.Guid guid, System.DirectoryServices.SearchResultCollection ADObjects, Node node ) : bool
CreateNewPortalContainer ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalDomain ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalFolder ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalGroup ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalOrgUnit ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
CreateNewPortalUser ( System.DirectoryServices.DirectoryEntry entry, string parentPath, System.Guid guid, SyncTree syncTree ) : void
DeleteObjectsFromAD ( SyncTree syncTree, ADObjectType objType, System.DirectoryServices.SearchResultCollection allADObjects, Action DeletePortalObject ) : void
DeletePortalContainer ( Node node ) : void
DeletePortalContainers ( SyncTree syncTree ) : void
DeletePortalGroup ( Node node ) : void
DeletePortalGroups ( SyncTree syncTree ) : void
DeletePortalUser ( Node node ) : void
DeletePortalUsers ( SyncTree syncTree ) : void
EnsurePortalPath ( SyncTree syncTree, string ADPath, string portalParentPath ) : void
GetADDomainName ( DirectoryEntry entry ) : string
GetADGroupMembers ( DirectoryEntry group, SyncTree syncTree ) : ADGroupMember>.Dictionary
GetAllPortalObjects ( ADObjectType objType ) : int>.Dictionary
GetAllPortalObjects ( ADObjectType objType, SyncTree syncTree ) : IEnumerable
GetSyncTreeForObject ( string objectPath ) : SyncTree
SyncContainersFromAD ( SyncTree syncTree ) : void
SyncGroupsFromAD ( SyncTree syncTree ) : void
SyncObjectsFromAD ( SyncTree syncTree, ADObjectType objType, SearchResultCollection allADObjects, Action CreateNewObject, Action UpdateProperties ) : void
SyncOneADObject ( SearchResult result, DirectoryEntry ADentry, Guid guid, ADObjectType objType, string nodePortalParentPath, Action CreateNewObject, Action UpdateProperties, SyncTree syncTree ) : void
SyncSingleObjectFromAD ( string ldapPath ) : void
SyncUsersFromAD ( SyncTree syncTree ) : void
UpdatePortalContainerProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalDomainProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalFolderProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalGroupProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalOrgUnitProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void
UpdatePortalUserProperties ( DirectoryEntry entry, Node node, SyncTree syncTree ) : void

Описание методов

GetSyncInfo() публичный Метод

Gets portal info for given LDAP path. If resulting SyncInfo object's SyncTreeFound is false, no other properties are filled.
public GetSyncInfo ( string ldapPath ) : SyncInfo
ldapPath string The LDAP path of the object, ie. CN=MyGroup,OU=MyOrg,DC=Nativ,DC=local
Результат SyncInfo

SyncAD2Portal() публичный Метод

public SyncAD2Portal ( ) : System
Результат System

SyncFromAD() публичный Метод

Syncs all objects of all configured sync trees from Active Directory(ies).
public SyncFromAD ( ) : void
Результат void

SyncObjectFromAD() публичный Метод

Syncs a single object from Active directory according to configuration.
public SyncObjectFromAD ( string ldapPath ) : void
ldapPath string The LDAP path of the object, ie. CN=MyGroup,OU=MyOrg,DC=Nativ,DC=local
Результат void