2013-08-20 18:58:15 -04:00
|
|
|
<?php
|
2020-07-17 04:17:18 -04:00
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
2013-08-30 19:41:24 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2013-08-30 19:41:24 -04:00
|
|
|
*/
|
2013-08-31 15:34:29 -04:00
|
|
|
namespace OCP;
|
2020-04-09 05:48:10 -04:00
|
|
|
|
2020-07-17 04:17:18 -04:00
|
|
|
use Psr\Container\ContainerInterface;
|
2013-08-20 18:58:15 -04:00
|
|
|
|
|
|
|
|
/**
|
2020-07-17 04:17:18 -04:00
|
|
|
* This is a tagging interface for the server container
|
|
|
|
|
*
|
|
|
|
|
* The interface currently extends IContainer, but this interface is deprecated as of Nextcloud 20,
|
|
|
|
|
* thus this interface won't extend it anymore once that was removed. So migrate to the ContainerInterface
|
|
|
|
|
* only.
|
2013-08-20 18:58:15 -04:00
|
|
|
*
|
2022-04-08 08:16:21 -04:00
|
|
|
* @deprecated 20.0.0
|
|
|
|
|
*
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2013-08-20 18:58:15 -04:00
|
|
|
*/
|
2020-07-17 04:17:18 -04:00
|
|
|
interface IServerContainer extends ContainerInterface, IContainer {
|
2018-06-18 08:33:25 -04:00
|
|
|
|
2013-08-26 17:48:18 -04:00
|
|
|
/**
|
2013-08-31 14:57:16 -04:00
|
|
|
* The contacts manager will act as a broker between consumers for contacts information and
|
|
|
|
|
* providers which actual deliver the contact information.
|
|
|
|
|
*
|
2013-08-31 15:34:29 -04:00
|
|
|
* @return \OCP\Contacts\IManager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-08-26 17:48:18 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getContactsManager();
|
2013-08-31 14:57:16 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The current request object holding all information about the request currently being processed
|
|
|
|
|
* is returned from this method.
|
|
|
|
|
* In case the current execution was not initiated by a web request null is returned
|
|
|
|
|
*
|
2015-04-01 06:13:49 -04:00
|
|
|
* @return \OCP\IRequest
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-08-31 14:57:16 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getRequest();
|
2013-08-31 14:57:16 -04:00
|
|
|
|
2013-09-15 16:24:57 -04:00
|
|
|
/**
|
|
|
|
|
* Returns the root folder of ownCloud's data directory
|
|
|
|
|
*
|
2015-04-28 03:36:29 -04:00
|
|
|
* @return \OCP\Files\IRootFolder
|
2015-06-05 11:30:45 -04:00
|
|
|
* @since 6.0.0 - between 6.0.0 and 8.0.0 this returned \OCP\Files\Folder
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-15 16:24:57 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getRootFolder();
|
2013-09-15 16:24:57 -04:00
|
|
|
|
2013-09-18 06:34:10 -04:00
|
|
|
/**
|
|
|
|
|
* Returns a view to ownCloud's files folder
|
|
|
|
|
*
|
2014-08-31 05:16:40 -04:00
|
|
|
* @param string $userId user ID
|
2013-09-18 06:34:10 -04:00
|
|
|
* @return \OCP\Files\Folder
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0 - parameter $userId was added in 8.0.0
|
2015-06-16 10:02:30 -04:00
|
|
|
* @see getUserFolder in \OCP\Files\IRootFolder
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-18 06:34:10 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getUserFolder($userId = null);
|
2013-09-18 06:34:10 -04:00
|
|
|
|
2014-07-09 09:43:06 -04:00
|
|
|
/**
|
|
|
|
|
* Returns a user manager
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\IUserManager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-07-09 09:43:06 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getUserManager();
|
2014-07-09 09:43:06 -04:00
|
|
|
|
2014-07-16 08:25:31 -04:00
|
|
|
/**
|
|
|
|
|
* Returns a group manager
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\IGroupManager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-07-16 08:25:31 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getGroupManager();
|
2014-07-16 08:25:31 -04:00
|
|
|
|
2013-09-20 06:45:56 -04:00
|
|
|
/**
|
|
|
|
|
* Returns the user session
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\IUserSession
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-20 06:45:56 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getUserSession();
|
2013-09-20 06:45:56 -04:00
|
|
|
|
2013-09-20 14:21:24 -04:00
|
|
|
/**
|
2013-11-26 18:35:36 -05:00
|
|
|
* Returns the config manager
|
|
|
|
|
*
|
2013-09-20 14:21:24 -04:00
|
|
|
* @return \OCP\IConfig
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-20 14:21:24 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getConfig();
|
2013-09-20 14:21:24 -04:00
|
|
|
|
2014-11-04 10:05:31 -05:00
|
|
|
/**
|
|
|
|
|
* Returns a Crypto instance
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Security\ICrypto
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-11-04 10:05:31 -05:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getCrypto();
|
2014-11-04 10:05:31 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns a Hasher instance
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Security\IHasher
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-11-04 10:05:31 -05:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getHasher();
|
2014-04-19 13:30:12 -04:00
|
|
|
|
2015-03-31 05:13:46 -04:00
|
|
|
/**
|
|
|
|
|
* Returns a SecureRandom instance
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Security\ISecureRandom
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.1.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-03-31 05:13:46 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getSecureRandom();
|
2015-03-31 05:13:46 -04:00
|
|
|
|
2015-09-25 03:05:12 -04:00
|
|
|
/**
|
|
|
|
|
* @return \OCP\L10N\IFactory
|
|
|
|
|
* @since 8.2.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-09-25 03:05:12 -04:00
|
|
|
*/
|
|
|
|
|
public function getL10NFactory();
|
|
|
|
|
|
2013-09-25 12:34:01 -04:00
|
|
|
/**
|
|
|
|
|
* get an L10N instance
|
2014-02-28 15:03:43 -05:00
|
|
|
* @param string $app appid
|
2014-08-31 04:20:00 -04:00
|
|
|
* @param string $lang
|
2013-09-25 12:34:01 -04:00
|
|
|
* @return \OCP\IL10N
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0 - parameter $lang was added in 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-25 12:34:01 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getL10N($app, $lang = null);
|
2013-09-25 12:34:01 -04:00
|
|
|
|
2015-03-30 05:49:03 -04:00
|
|
|
/**
|
|
|
|
|
* @return \OC\Encryption\Manager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.1.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-03-30 05:49:03 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getEncryptionManager();
|
2015-03-30 05:49:03 -04:00
|
|
|
|
2015-03-31 10:23:31 -04:00
|
|
|
/**
|
|
|
|
|
* @return \OC\Encryption\File
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.1.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-03-31 10:23:31 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getEncryptionFilesHelper();
|
2015-03-31 10:23:31 -04:00
|
|
|
|
2013-09-26 12:41:19 -04:00
|
|
|
/**
|
2013-11-26 18:35:36 -05:00
|
|
|
* Returns the URL generator
|
|
|
|
|
*
|
2013-09-26 12:41:19 -04:00
|
|
|
* @return \OCP\IURLGenerator
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-26 12:41:19 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getURLGenerator();
|
2013-09-26 12:41:19 -04:00
|
|
|
|
2013-09-17 11:46:33 -04:00
|
|
|
/**
|
|
|
|
|
* Returns an ICache instance
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\ICache
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-17 11:46:33 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getCache();
|
2013-09-17 11:46:33 -04:00
|
|
|
|
2014-01-06 07:11:38 -05:00
|
|
|
/**
|
2014-01-08 09:51:40 -05:00
|
|
|
* Returns an \OCP\CacheFactory instance
|
2014-01-06 07:11:38 -05:00
|
|
|
*
|
2014-01-24 10:01:19 -05:00
|
|
|
* @return \OCP\ICacheFactory
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 7.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-01-06 07:11:38 -05:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getMemCacheFactory();
|
2014-01-06 07:11:38 -05:00
|
|
|
|
2013-09-17 12:31:14 -04:00
|
|
|
/**
|
|
|
|
|
* Returns the current session
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\ISession
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-17 12:31:14 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getSession();
|
2013-09-17 12:31:14 -04:00
|
|
|
|
2013-09-20 10:37:52 -04:00
|
|
|
/**
|
|
|
|
|
* Returns the activity manager
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Activity\IManager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-20 10:37:52 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getActivityManager();
|
2013-09-20 10:37:52 -04:00
|
|
|
|
2013-09-20 08:33:45 -04:00
|
|
|
/**
|
|
|
|
|
* Returns the current session
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\IDBConnection
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 6.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2013-09-20 08:33:45 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getDatabaseConnection();
|
2013-09-20 08:33:45 -04:00
|
|
|
|
2014-02-11 08:00:24 -05:00
|
|
|
/**
|
|
|
|
|
* Returns an job list for controlling background jobs
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\BackgroundJob\IJobList
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 7.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-02-11 08:00:24 -05:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getJobList();
|
2014-02-11 08:00:24 -05:00
|
|
|
|
2014-08-14 08:24:10 -04:00
|
|
|
/**
|
2020-07-05 08:31:19 -04:00
|
|
|
* Get the certificate manager
|
2014-08-14 08:24:10 -04:00
|
|
|
*
|
2020-07-05 08:31:19 -04:00
|
|
|
* @return \OCP\ICertificateManager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-08-14 08:24:10 -04:00
|
|
|
*/
|
2020-07-05 08:31:19 -04:00
|
|
|
public function getCertificateManager();
|
2015-02-24 11:15:21 -05:00
|
|
|
|
2014-10-22 11:33:36 -04:00
|
|
|
/**
|
|
|
|
|
* Get the manager for temporary files and folders
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\ITempManager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-10-22 11:33:36 -04:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getTempManager();
|
2014-11-07 08:26:12 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the app manager
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\App\IAppManager
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-11-07 08:26:12 -05:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getAppManager();
|
2014-11-27 08:36:11 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the webroot
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2014-11-27 08:36:11 -05:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getWebRoot();
|
2014-11-24 09:54:42 -05:00
|
|
|
|
2015-02-12 07:53:27 -05:00
|
|
|
/**
|
|
|
|
|
* Creates a new mailer
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Mail\IMailer
|
2015-04-16 11:00:08 -04:00
|
|
|
* @since 8.1.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-02-12 07:53:27 -05:00
|
|
|
*/
|
2015-04-18 05:46:29 -04:00
|
|
|
public function getMailer();
|
2015-05-04 08:02:27 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the locking provider
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Lock\ILockingProvider
|
|
|
|
|
* @since 8.1.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-05-04 08:02:27 -04:00
|
|
|
*/
|
|
|
|
|
public function getLockingProvider();
|
2015-07-01 09:57:04 -04:00
|
|
|
|
2015-04-09 09:19:57 -04:00
|
|
|
/**
|
|
|
|
|
* Get the MimeTypeDetector
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Files\IMimeTypeDetector
|
|
|
|
|
* @since 8.2.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-04-09 09:19:57 -04:00
|
|
|
*/
|
|
|
|
|
public function getMimeTypeDetector();
|
2015-03-21 15:03:56 -04:00
|
|
|
|
2015-09-03 14:48:42 -04:00
|
|
|
/**
|
|
|
|
|
* Get the MimeTypeLoader
|
|
|
|
|
*
|
|
|
|
|
* @return \OCP\Files\IMimeTypeLoader
|
|
|
|
|
* @since 8.2.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-09-03 14:48:42 -04:00
|
|
|
*/
|
|
|
|
|
public function getMimeTypeLoader();
|
|
|
|
|
|
2015-08-31 06:24:37 -04:00
|
|
|
/**
|
|
|
|
|
* Get the Notification Manager
|
|
|
|
|
*
|
2016-01-14 08:35:24 -05:00
|
|
|
* @return \OCP\Notification\IManager
|
2016-01-22 05:02:40 -05:00
|
|
|
* @since 9.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2015-08-31 06:24:37 -04:00
|
|
|
*/
|
|
|
|
|
public function getNotificationManager();
|
2015-11-26 09:49:14 -05:00
|
|
|
|
2017-01-27 06:52:17 -05:00
|
|
|
/**
|
|
|
|
|
* @return \OCP\Federation\ICloudIdManager
|
|
|
|
|
* @since 12.0.0
|
2020-07-16 12:59:56 -04:00
|
|
|
* @deprecated 20.0.0 have it injected or fetch it through \Psr\Container\ContainerInterface::get
|
2017-01-27 06:52:17 -05:00
|
|
|
*/
|
|
|
|
|
public function getCloudIdManager();
|
2013-08-20 18:58:15 -04:00
|
|
|
}
|