backend.php 2.4 KB

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