SudoSOS Back-end API / internal/user-sync-service-factory / UserSyncServiceFactory
Class: UserSyncServiceFactory ​
Abstract factory class for creating and initializing sync services. Centralizes the logic for determining which sync services to create based on environment variables and configuration.
Extends ​
Constructors ​
Constructor ​
ts
new UserSyncServiceFactory(): UserSyncServiceFactory;Returns ​
UserSyncServiceFactory
Inherited from ​
SyncServiceFactory.constructor
Methods ​
createSyncServices() ​
ts
createSyncServices(options): UserSyncService[];Creates and returns an array of configured user sync services.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
options | UserSyncServiceFactoryOptions | Configuration options for the factory |
Returns ​
Array of initialized user sync services
Overrides ​
SyncServiceFactory.createSyncServices
getAvailableServices() ​
ts
getAvailableServices(): object;Gets information about which user sync services are available based on environment configuration.
Returns ​
object
Object describing available services
gewisdb ​
ts
gewisdb: boolean;ldap ​
ts
ldap: boolean;