IManager

interface OCP\Collaboration\Resources\IManager
Implemented by:OC\Collaboration\Resources\Manager
Source:lib/public/Collaboration/Resources/IManager.php#36
Parent:OCP\Collaboration\Resources\IProvider

Methods

public OCP\Collaboration\Resources\IManager::getCollection($id)
Source:

lib/public/Collaboration/Resources/IManager.php#44

Parameters:
  • $id (int)
Returns:

\OCP\Collaboration\Resources\ICollection

Throws:

\OCP\Collaboration\Resources\CollectionException when the collection could not be found

Since:

16.0.0

public OCP\Collaboration\Resources\IManager::getCollectionForUser($id, $user)
Source:

lib/public/Collaboration/Resources/IManager.php#53

Parameters:
Returns:

\OCP\Collaboration\Resources\ICollection

Throws:

\OCP\Collaboration\Resources\CollectionException when the collection could not be found

Since:

16.0.0

public OCP\Collaboration\Resources\IManager::newCollection($name)
Source:

lib/public/Collaboration/Resources/IManager.php#60

Parameters:
  • $name (string)
Returns:

\OCP\Collaboration\Resources\ICollection

Since:

16.0.0

public OCP\Collaboration\Resources\IManager::canAccessCollection($collection, $user)
Can a user/guest access the collection
Source:

lib/public/Collaboration/Resources/IManager.php#70

Parameters:
Returns:

bool

Since:

16.0.0

public OCP\Collaboration\Resources\IManager::invalidateAccessCacheForUser($user)
Source:

lib/public/Collaboration/Resources/IManager.php#76

Parameters:
Since:

16.0.0

public OCP\Collaboration\Resources\IManager::invalidateAccessCacheForResource($resource)
Source:

lib/public/Collaboration/Resources/IManager.php#82

Parameters:
Since:

16.0.0

public OCP\Collaboration\Resources\IManager::invalidateAccessCacheForResourceByUser($resource, $user)
Source:

lib/public/Collaboration/Resources/IManager.php#89

Parameters:
Since:

16.0.0

public OCP\Collaboration\Resources\IManager::invalidateAccessCacheForProvider($provider)
Source:

lib/public/Collaboration/Resources/IManager.php#95

Parameters:
Since:

16.0.0

public OCP\Collaboration\Resources\IManager::invalidateAccessCacheForProviderByUser($provider, $user)
Source:

lib/public/Collaboration/Resources/IManager.php#102

Parameters:
Since:

16.0.0

public OCP\Collaboration\Resources\IManager::createResource($type, $id)
Source:

lib/public/Collaboration/Resources/IManager.php#110

Parameters:
  • $type (string)
  • $id (string)
Returns:

\OCP\Collaboration\Resources\IResource

Since:

16.0.0

public OCP\Collaboration\Resources\IManager::getResourceForUser($type, $id, $user)
Source:

lib/public/Collaboration/Resources/IManager.php#120

Parameters:
  • $type (string)
  • $id (string)
  • $user (OCP\IUser | null)
Returns:

\OCP\Collaboration\Resources\IResource

Throws:

\OCP\Collaboration\Resources\ResourceException

Since:

16.0.0

public OCP\Collaboration\Resources\IManager::registerResourceProvider($provider)
Source:

lib/public/Collaboration/Resources/IManager.php#127

Parameters:
  • $provider (string)
Since:

16.0.0

Deprecated:

18.0.0 Use IProviderManager::registerResourceProvider instead