Roeland Jago Douma
6 anni fa
Nessun account collegato all'indirizzo email del committer
|
|
@@ -28,7 +28,14 @@ use OC\User\Backend; |
|
|
|
use OCP\IUserBackend; |
|
|
|
use OCP\UserInterface; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
abstract class AbstractBackend implements IUserBackend, UserInterface { |
|
|
|
|
|
|
|
/** |
|
|
|
* @deprecated 14.0.0 |
|
|
|
*/ |
|
|
|
public function implementsActions($actions): bool { |
|
|
|
$implements = 0; |
|
|
|
|
|
|
@@ -24,6 +24,12 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface ICheckPasswordBackend { |
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function checkPassword(string $loginName, string $password): string; |
|
|
|
} |
|
|
@@ -24,6 +24,13 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface ICountUsersBackend { |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function countUsers(): int; |
|
|
|
} |
|
|
@@ -24,6 +24,13 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface ICreateUserBackend { |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function createUser(string $uid, string $password): bool; |
|
|
|
} |
|
|
@@ -24,6 +24,13 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface IGetDisplayNameBackend { |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function getDisplayName(string $uid): string; |
|
|
|
} |
|
|
@@ -24,6 +24,13 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface IGetHomeBackend { |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function getHome(string $uid): string; |
|
|
|
} |
|
|
@@ -24,6 +24,13 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface IProvideAvatarBackend { |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function canChangeAvatar(string $uid): bool; |
|
|
|
} |
|
|
@@ -24,6 +24,13 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface ISetDisplayNameBackend { |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function setDisplayName(string $uid, string $displayName): bool; |
|
|
|
} |
|
|
@@ -24,6 +24,13 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
namespace OCP\User\Backend; |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
interface ISetPasswordBackend { |
|
|
|
|
|
|
|
/** |
|
|
|
* @since 14.0.0 |
|
|
|
*/ |
|
|
|
public function setPassword(string $uid, string $password): bool; |
|
|
|
} |