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: Parameters: - $id (int)
Returns: Throws: \OCP\Collaboration\Resources\CollectionException
when the collection could not be foundSince: 16.0.0
-
public
OCP\Collaboration\Resources\IManager::
getCollectionForUser
($id, $user)¶ Source: Parameters: - $id (int)
- $user (
OCP\IUser
| null)
Returns: Throws: \OCP\Collaboration\Resources\CollectionException
when the collection could not be foundSince: 16.0.0
-
public
OCP\Collaboration\Resources\IManager::
newCollection
($name)¶ Source: Parameters: - $name (string)
Returns: Since: 16.0.0
-
public
OCP\Collaboration\Resources\IManager::
canAccessCollection
($collection, $user)¶ - Can a user/guest access the collection
Source: Parameters: - $collection (
OCP\Collaboration\Resources\ICollection
) - $user (
OCP\IUser
| null)
Returns: bool
Since: 16.0.0
- $collection (
-
public
OCP\Collaboration\Resources\IManager::
invalidateAccessCacheForUser
($user)¶ Source: Parameters: - $user (
OCP\IUser
| null)
Since: 16.0.0
- $user (
-
public
OCP\Collaboration\Resources\IManager::
invalidateAccessCacheForResource
($resource)¶ Source: Parameters: - $resource (
OCP\Collaboration\Resources\IResource
)
Since: 16.0.0
- $resource (
-
public
OCP\Collaboration\Resources\IManager::
invalidateAccessCacheForResourceByUser
($resource, $user)¶ Source: Parameters: - $resource (
OCP\Collaboration\Resources\IResource
) - $user (
OCP\IUser
| null)
Since: 16.0.0
- $resource (
-
public
OCP\Collaboration\Resources\IManager::
invalidateAccessCacheForProvider
($provider)¶ Source: Parameters: - $provider (
OCP\Collaboration\Resources\IProvider
)
Since: 16.0.0
- $provider (
-
public
OCP\Collaboration\Resources\IManager::
invalidateAccessCacheForProviderByUser
($provider, $user)¶ Source: Parameters: - $provider (
OCP\Collaboration\Resources\IProvider
) - $user (
OCP\IUser
| null)
Since: 16.0.0
- $provider (
-
public
OCP\Collaboration\Resources\IManager::
createResource
($type, $id)¶ Source: Parameters: - $type (string)
- $id (string)
Returns: Since: 16.0.0
-
public
OCP\Collaboration\Resources\IManager::
getResourceForUser
($type, $id, $user)¶ Source: Parameters: - $type (string)
- $id (string)
- $user (
OCP\IUser
| null)
Returns: Throws: Since: 16.0.0
-
public
OCP\Collaboration\Resources\IManager::
registerResourceProvider
($provider)¶ Source: Parameters: - $provider (string)
Since: 16.0.0
Deprecated: 18.0.0 Use IProviderManager::registerResourceProvider instead