2016-07-22 04:46:29 -04:00
|
|
|
<?php
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\LDAP;
|
|
|
|
|
|
|
|
|
|
use OCP\IServerContainer;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface ILDAPProviderFactory
|
|
|
|
|
*
|
|
|
|
|
* This class is responsible for instantiating and returning an ILDAPProvider
|
|
|
|
|
* instance.
|
|
|
|
|
*
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
|
|
|
|
interface ILDAPProviderFactory {
|
|
|
|
|
/**
|
|
|
|
|
* Constructor for the LDAP provider factory
|
|
|
|
|
*
|
|
|
|
|
* @param IServerContainer $serverContainer server container
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
|
|
|
|
public function __construct(IServerContainer $serverContainer);
|
2021-01-25 15:06:07 -05:00
|
|
|
|
2016-07-22 04:46:29 -04:00
|
|
|
/**
|
|
|
|
|
* creates and returns an instance of the ILDAPProvider
|
|
|
|
|
*
|
|
|
|
|
* @return ILDAPProvider
|
2016-11-15 12:51:52 -05:00
|
|
|
* @since 11.0.0
|
2016-07-22 04:46:29 -04:00
|
|
|
*/
|
|
|
|
|
public function getLDAPProvider();
|
2021-01-25 15:06:07 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check if an ldap provider is available
|
|
|
|
|
*
|
|
|
|
|
* @return bool
|
|
|
|
|
* @since 21.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function isAvailable(): bool;
|
2016-07-22 04:46:29 -04:00
|
|
|
}
|