ICloudFederationProviderManager
Class ICloudFederationProviderManager
Manage cloud federation providers
Tags
Table of Contents
- addCloudFederationProvider() : mixed
- Registers an callback function which must return an cloud federation provider
- getAllCloudFederationProviders() : array
- get a list of all cloudFederationProviders
- getCloudFederationProvider() : ICloudFederationProvider
- get a specific cloud federation provider
- isReady() : bool
- check if the new cloud federation API is ready to be used
- removeCloudFederationProvider() : mixed
- remove cloud federation provider
- sendNotification() : mixed
- send notification about existing share
- sendShare() : mixed
- send federated share
Methods
addCloudFederationProvider()
Registers an callback function which must return an cloud federation provider
public
addCloudFederationProvider(string $resourceType, string $displayName, callable $callback) : mixed
Parameters
- $resourceType : string
-
which resource type does the provider handles
- $displayName : string
-
user facing name of the federated share provider
- $callback : callable
Tags
Return values
mixed —getAllCloudFederationProviders()
get a list of all cloudFederationProviders
public
getAllCloudFederationProviders() : array
Tags
Return values
array —[resourceType => ['resourceType' => $resourceType, 'displayName' => $displayName, 'callback' => callback]]
getCloudFederationProvider()
get a specific cloud federation provider
public
getCloudFederationProvider(string $resourceType) : ICloudFederationProvider
Parameters
- $resourceType : string
Tags
Return values
ICloudFederationProvider —isReady()
check if the new cloud federation API is ready to be used
public
isReady() : bool
Tags
Return values
bool —removeCloudFederationProvider()
remove cloud federation provider
public
removeCloudFederationProvider(string $resourceType) : mixed
Parameters
- $resourceType : string
Tags
Return values
mixed —sendNotification()
send notification about existing share
public
sendNotification(string $url, ICloudFederationNotification $notification) : mixed
Parameters
- $url : string
- $notification : ICloudFederationNotification
Tags
Return values
mixed —sendShare()
send federated share
public
sendShare(ICloudFederationShare $share) : mixed
Parameters
- $share : ICloudFederationShare