IServerContainer

interface OCP\IServerContainer
Class IServerContainer
Implemented by:OC\Server
Source:lib/public/IServerContainer.php#61
Parent:OCP\IContainer

Methods

public OCP\IServerContainer::getCalendarManager()
The calendar manager will act as a broker between consumers for calendar information and
providers which actual deliver the calendar information.
Source:lib/public/IServerContainer.php#70
Returns:\OCP\Calendar\IManager
Since:13.0.0
public OCP\IServerContainer::getCalendarResourceBackendManager()
The calendar resource backend manager will act as a broker between consumers
for calendar resource information an providers which actual deliver the room information.
Source:lib/public/IServerContainer.php#79
Returns:\OCP\Calendar\Resource\IBackend
Since:14.0.0
public OCP\IServerContainer::getCalendarRoomBackendManager()
The calendar room backend manager will act as a broker between consumers
for calendar room information an providers which actual deliver the room information.
Source:lib/public/IServerContainer.php#88
Returns:\OCP\Calendar\Room\IBackend
Since:14.0.0
public OCP\IServerContainer::getContactsManager()
The contacts manager will act as a broker between consumers for contacts information and
providers which actual deliver the contact information.
Source:lib/public/IServerContainer.php#97
Returns:\OCP\Contacts\IManager
Since:6.0.0
public OCP\IServerContainer::getRequest()
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
Source:lib/public/IServerContainer.php#107
Returns:\OCP\IRequest
Since:6.0.0
public OCP\IServerContainer::getPreviewManager()
Returns the preview manager which can create preview images for a given file
Source:lib/public/IServerContainer.php#115
Returns:\OCP\IPreview
Since:6.0.0
public OCP\IServerContainer::getTagManager()
Returns the tag manager which can get and set tags for different object types
Source:lib/public/IServerContainer.php#124
See:\OCP\ITagManager::load()
Returns:\OCP\ITagManager
Since:6.0.0
public OCP\IServerContainer::getRootFolder()
Returns the root folder of ownCloud’s data directory
Source:lib/public/IServerContainer.php#132
Returns:\OCP\Files\IRootFolder
Since:6.0.0 - between 6.0.0 and 8.0.0 this returned \OCP\Files\Folder
public OCP\IServerContainer::getUserFolder($userId=null)
Returns a view to ownCloud’s files folder
Source:

lib/public/IServerContainer.php#142

Parameters:
  • $userId (string) user ID
Returns:

\OCP\Files\Folder

Since:

6.0.0 - parameter $userId was added in 8.0.0

See:

\OCP\getUserFolder in \OCP\Files\IRootFolder

public OCP\IServerContainer::getAppFolder()
Returns an app-specific view in ownClouds data directory
Source:lib/public/IServerContainer.php#151
Returns:\OCP\Files\Folder
Since:6.0.0
Deprecated:9.2.0 use IAppData
public OCP\IServerContainer::getUserManager()
Returns a user manager
Source:lib/public/IServerContainer.php#159
Returns:\OCP\IUserManager
Since:8.0.0
public OCP\IServerContainer::getGroupManager()
Returns a group manager
Source:lib/public/IServerContainer.php#167
Returns:\OCP\IGroupManager
Since:8.0.0
public OCP\IServerContainer::getUserSession()
Returns the user session
Source:lib/public/IServerContainer.php#175
Returns:\OCP\IUserSession
Since:6.0.0
public OCP\IServerContainer::getNavigationManager()
Returns the navigation manager
Source:lib/public/IServerContainer.php#183
Returns:\OCP\INavigationManager
Since:6.0.0
public OCP\IServerContainer::getConfig()
Returns the config manager
Source:lib/public/IServerContainer.php#191
Returns:\OCP\IConfig
Since:6.0.0
public OCP\IServerContainer::getCrypto()
Returns a Crypto instance
Source:lib/public/IServerContainer.php#199
Returns:\OCP\Security\ICrypto
Since:8.0.0
public OCP\IServerContainer::getHasher()
Returns a Hasher instance
Source:lib/public/IServerContainer.php#207
Returns:\OCP\Security\IHasher
Since:8.0.0
public OCP\IServerContainer::getSecureRandom()
Returns a SecureRandom instance
Source:lib/public/IServerContainer.php#215
Returns:\OCP\Security\ISecureRandom
Since:8.1.0
public OCP\IServerContainer::getCredentialsManager()
Returns a CredentialsManager instance
Source:lib/public/IServerContainer.php#223
Returns:\OCP\Security\ICredentialsManager
Since:9.0.0
public OCP\IServerContainer::getAppConfig()
Returns the app config manager
Source:lib/public/IServerContainer.php#231
Returns:\OCP\IAppConfig
Since:7.0.0
public OCP\IServerContainer::getL10NFactory()
Source:lib/public/IServerContainer.php#237
Returns:\OCP\L10N\IFactory
Since:8.2.0
public OCP\IServerContainer::getL10N($app, $lang=null)
get an L10N instance
Source:

lib/public/IServerContainer.php#246

Parameters:
  • $app (string) appid
  • $lang (string)
Returns:

\OCP\IL10N

Since:

6.0.0 - parameter $lang was added in 8.0.0

public OCP\IServerContainer::getEncryptionManager()
Source:lib/public/IServerContainer.php#252
Returns:\OC\Encryption\Manager
Since:8.1.0
public OCP\IServerContainer::getEncryptionFilesHelper()
Source:lib/public/IServerContainer.php#258
Returns:\OC\Encryption\File
Since:8.1.0
public OCP\IServerContainer::getEncryptionKeyStorage()
Source:lib/public/IServerContainer.php#264
Returns:\OCP\Encryption\Keys\IStorage
Since:8.1.0
public OCP\IServerContainer::getURLGenerator()
Returns the URL generator
Source:lib/public/IServerContainer.php#272
Returns:\OCP\IURLGenerator
Since:6.0.0
public OCP\IServerContainer::getCache()
Returns an ICache instance
Source:lib/public/IServerContainer.php#280
Returns:\OCP\ICache
Since:6.0.0
public OCP\IServerContainer::getMemCacheFactory()
Returns an \OCP\CacheFactory instance
Source:lib/public/IServerContainer.php#288
Returns:\OCP\ICacheFactory
Since:7.0.0
public OCP\IServerContainer::getSession()
Returns the current session
Source:lib/public/IServerContainer.php#296
Returns:\OCP\ISession
Since:6.0.0
public OCP\IServerContainer::getActivityManager()
Returns the activity manager
Source:lib/public/IServerContainer.php#304
Returns:\OCP\Activity\IManager
Since:6.0.0
public OCP\IServerContainer::getDatabaseConnection()
Returns the current session
Source:lib/public/IServerContainer.php#312
Returns:\OCP\IDBConnection
Since:6.0.0
public OCP\IServerContainer::getAvatarManager()
Returns an avatar manager, used for avatar functionality
Source:lib/public/IServerContainer.php#320
Returns:\OCP\IAvatarManager
Since:6.0.0
public OCP\IServerContainer::getJobList()
Returns an job list for controlling background jobs
Source:lib/public/IServerContainer.php#328
Returns:\OCP\BackgroundJob\IJobList
Since:7.0.0
public OCP\IServerContainer::getLogger()
Returns a logger instance
Source:lib/public/IServerContainer.php#336
Returns:\OCP\ILogger
Since:8.0.0
public OCP\IServerContainer::getLogFactory()
returns a log factory instance
Source:lib/public/IServerContainer.php#344
Returns:\OCP\Log\ILogFactory
Since:14.0.0
public OCP\IServerContainer::getRouter()
Returns a router for generating and matching urls
Source:lib/public/IServerContainer.php#352
Returns:\OCP\Route\IRouter
Since:7.0.0
public OCP\IServerContainer::getSearch()
Returns a search instance
Source:lib/public/IServerContainer.php#360
Returns:\OCP\ISearch
Since:7.0.0
public OCP\IServerContainer::getCertificateManager($userId=null)
Get the certificate manager for the user
Source:

lib/public/IServerContainer.php#369

Parameters:
  • $userId (string) (optional) if not specified the current loggedin user is used, use null to get the system certificate manager
Returns:

\OCP\ICertificateManager | null if $userId is null and no user is logged in

Since:

8.0.0

public OCP\IServerContainer::createEventSource()
Create a new event source
Source:lib/public/IServerContainer.php#377
Returns:\OCP\IEventSource
Since:8.0.0
public OCP\IServerContainer::getHTTPClientService()
Returns an instance of the HTTP client service
Source:lib/public/IServerContainer.php#385
Returns:\OCP\Http\Client\IClientService
Since:8.1.0
public OCP\IServerContainer::getEventLogger()
Get the active event logger
Source:lib/public/IServerContainer.php#393
Returns:\OCP\Diagnostics\IEventLogger
Since:8.0.0
public OCP\IServerContainer::getQueryLogger()
Get the active query logger
The returned logger only logs data when debug mode is enabled
Source:lib/public/IServerContainer.php#403
Returns:\OCP\Diagnostics\IQueryLogger
Since:8.0.0
public OCP\IServerContainer::getTempManager()
Get the manager for temporary files and folders
Source:lib/public/IServerContainer.php#411
Returns:\OCP\ITempManager
Since:8.0.0
public OCP\IServerContainer::getAppManager()
Get the app manager
Source:lib/public/IServerContainer.php#419
Returns:\OCP\App\IAppManager
Since:8.0.0
public OCP\IServerContainer::getWebRoot()
Get the webroot
Source:lib/public/IServerContainer.php#427
Returns:string
Since:8.0.0
public OCP\IServerContainer::getMountProviderCollection()
Source:lib/public/IServerContainer.php#433
Returns:\OCP\Files\Config\IMountProviderCollection
Since:8.0.0
public OCP\IServerContainer::getIniWrapper()
Get the IniWrapper
Source:lib/public/IServerContainer.php#441
Returns:\bantu\IniGetWrapper\IniGetWrapper
Since:8.0.0
public OCP\IServerContainer::getCommandBus()
Source:lib/public/IServerContainer.php#446
Returns:\OCP\Command\IBus
Since:8.1.0
public OCP\IServerContainer::getMailer()
Creates a new mailer
Source:lib/public/IServerContainer.php#454
Returns:\OCP\Mail\IMailer
Since:8.1.0
public OCP\IServerContainer::getLockingProvider()
Get the locking provider
Source:lib/public/IServerContainer.php#462
Returns:\OCP\Lock\ILockingProvider
Since:8.1.0
public OCP\IServerContainer::getMountManager()
Source:lib/public/IServerContainer.php#468
Returns:\OCP\Files\Mount\IMountManager
Since:8.2.0
public OCP\IServerContainer::getMimeTypeDetector()
Get the MimeTypeDetector
Source:lib/public/IServerContainer.php#476
Returns:\OCP\Files\IMimeTypeDetector
Since:8.2.0
public OCP\IServerContainer::getMimeTypeLoader()
Get the MimeTypeLoader
Source:lib/public/IServerContainer.php#484
Returns:\OCP\Files\IMimeTypeLoader
Since:8.2.0
public OCP\IServerContainer::getEventDispatcher()
Get the EventDispatcher
Source:lib/public/IServerContainer.php#492
Returns:\Symfony\Component\EventDispatcher\EventDispatcherInterface
Since:8.2.0
public OCP\IServerContainer::getNotificationManager()
Get the Notification Manager
Source:lib/public/IServerContainer.php#500
Returns:\OCP\Notification\IManager
Since:9.0.0
public OCP\IServerContainer::getCommentsManager()
Source:lib/public/IServerContainer.php#506
Returns:\OCP\Comments\ICommentsManager
Since:9.0.0
public OCP\IServerContainer::getSystemTagManager()
Returns the system-tag manager
Source:lib/public/IServerContainer.php#515
Returns:\OCP\SystemTag\ISystemTagManager
Since:9.0.0
public OCP\IServerContainer::getSystemTagObjectMapper()
Returns the system-tag object mapper
Source:lib/public/IServerContainer.php#524
Returns:\OCP\SystemTag\ISystemTagObjectMapper
Since:9.0.0
public OCP\IServerContainer::getShareManager()
Returns the share manager
Source:lib/public/IServerContainer.php#532
Returns:\OCP\Share\IManager
Since:9.0.0
public OCP\IServerContainer::getContentSecurityPolicyManager()
Source:lib/public/IServerContainer.php#539
Returns:\OCP\Security\IContentSecurityPolicyManager
Since:9.0.0
Deprecated:17.0.0 Use the AddContentSecurityPolicyEvent
public OCP\IServerContainer::getDateTimeZone()
Source:lib/public/IServerContainer.php#545
Returns:\OCP\IDateTimeZone
Since:8.0.0
public OCP\IServerContainer::getDateTimeFormatter()
Source:lib/public/IServerContainer.php#551
Returns:\OCP\IDateTimeFormatter
Since:8.0.0
public OCP\IServerContainer::getCloudIdManager()
Source:lib/public/IServerContainer.php#557
Returns:\OCP\Federation\ICloudIdManager
Since:12.0.0
public OCP\IServerContainer::getGlobalScaleConfig()
Source:lib/public/IServerContainer.php#563
Returns:\OCP\GlobalScale\IConfig
Since:14.0.0
public OCP\IServerContainer::getCloudFederationFactory()
Source:lib/public/IServerContainer.php#569
Returns:\OCP\Federation\ICloudFederationFactory
Since:14.0.0
public OCP\IServerContainer::getCloudFederationProviderManager()
Source:lib/public/IServerContainer.php#575
Returns:\OCP\Federation\ICloudFederationProviderManager
Since:14.0.0
public OCP\IServerContainer::getRemoteApiFactory()
Source:lib/public/IServerContainer.php#581
Returns:\OCP\Remote\Api\IApiFactory
Since:13.0.0
public OCP\IServerContainer::getRemoteInstanceFactory()
Source:lib/public/IServerContainer.php#587
Returns:\OCP\Remote\IInstanceFactory
Since:13.0.0
public OCP\IServerContainer::getStorageFactory()
Source:lib/public/IServerContainer.php#593
Returns:\OCP\Files\Storage\IStorageFactory
Since:15.0.0