2010-07-21 19:53:51 +04:00
|
|
|
<?php
|
|
|
|
/**
|
2016-07-22 10:45:36 +03:00
|
|
|
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
|
|
|
*
|
2015-03-26 13:44:34 +03:00
|
|
|
* @author Aldo "xoen" Giambelluca <xoen@xoen.org>
|
|
|
|
* @author Dominik Schmidt <dev@dominik-schmidt.de>
|
|
|
|
* @author Jakob Sack <mail@jakobsack.de>
|
2016-07-22 10:45:36 +03:00
|
|
|
* @author Joas Schilling <coding@schilljs.com>
|
2015-03-26 13:44:34 +03:00
|
|
|
* @author Morris Jobke <hey@morrisjobke.de>
|
2016-07-22 10:45:36 +03:00
|
|
|
* @author Roeland Jago Douma <roeland@famdouma.nl>
|
2015-03-26 13:44:34 +03:00
|
|
|
* @author Sam Tuke <mail@samtuke.com>
|
|
|
|
* @author Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
|
2011-04-15 19:14:02 +04:00
|
|
|
*
|
2015-03-26 13:44:34 +03:00
|
|
|
* @license AGPL-3.0
|
2011-04-15 19:14:02 +04:00
|
|
|
*
|
2015-03-26 13:44:34 +03:00
|
|
|
* This code is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
|
|
* as published by the Free Software Foundation.
|
2011-04-15 19:14:02 +04:00
|
|
|
*
|
2015-03-26 13:44:34 +03:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2011-04-15 19:14:02 +04:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2015-03-26 13:44:34 +03:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
2011-04-15 19:14:02 +04:00
|
|
|
*
|
2015-03-26 13:44:34 +03:00
|
|
|
* You should have received a copy of the GNU Affero General Public License, version 3,
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
2011-04-15 19:14:02 +04:00
|
|
|
*
|
|
|
|
*/
|
2015-02-26 13:37:37 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* error code for functions not provided by the user backend
|
|
|
|
* @deprecated Use \OC_User_Backend::NOT_IMPLEMENTED instead
|
|
|
|
*/
|
2011-06-23 16:33:39 +04:00
|
|
|
define('OC_USER_BACKEND_NOT_IMPLEMENTED', -501);
|
2010-07-21 19:53:51 +04:00
|
|
|
|
|
|
|
/**
|
2011-06-23 16:33:39 +04:00
|
|
|
* actions that user backends can define
|
2010-07-21 19:53:51 +04:00
|
|
|
*/
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::CREATE_USER instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_CREATE_USER', 1 << 0);
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::SET_PASSWORD instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_SET_PASSWORD', 1 << 4);
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::CHECK_PASSWORD instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_CHECK_PASSWORD', 1 << 8);
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::GET_HOME instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_GET_HOME', 1 << 12);
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::GET_DISPLAYNAME instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_GET_DISPLAYNAME', 1 << 16);
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::SET_DISPLAYNAME instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_SET_DISPLAYNAME', 1 << 20);
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::PROVIDE_AVATAR instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_PROVIDE_AVATAR', 1 << 24);
|
2014-11-26 14:17:28 +03:00
|
|
|
/** @deprecated Use \OC_User_Backend::COUNT_USERS instead */
|
2014-09-22 18:45:11 +04:00
|
|
|
define('OC_USER_BACKEND_COUNT_USERS', 1 << 28);
|
2010-07-21 19:53:51 +04:00
|
|
|
|
2011-06-23 16:33:39 +04:00
|
|
|
/**
|
2012-06-01 19:46:18 +04:00
|
|
|
* Abstract base class for user management. Provides methods for querying backend
|
|
|
|
* capabilities.
|
2011-06-23 16:33:39 +04:00
|
|
|
*/
|
2016-05-04 10:09:01 +03:00
|
|
|
abstract class OC_User_Backend extends \OC\User\Backend implements \OCP\UserInterface {
|
2014-11-26 14:17:28 +03:00
|
|
|
|
2010-07-21 19:53:51 +04:00
|
|
|
}
|