CloudFederationFactory

class OC\Federation\CloudFederationFactory
Source:lib/private/Federation/CloudFederationFactory.php#30
Implements:OCP\Federation\ICloudFederationFactory

Methods

public OC\Federation\CloudFederationFactory::getCloudFederationShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $sharedSecret, $shareType, $resourceType)
get a CloudFederationShare Object to prepare a share you want to send
Source:

lib/private/Federation/CloudFederationFactory.php#50

Parameters:
  • $shareWith (string)
  • $name (string) resource name (e.g. document.odt)
  • $description (string) share description (optional)
  • $providerId (string) resource UID on the provider side
  • $owner (string) provider specific UID of the user who owns the resource
  • $ownerDisplayName (string) display name of the user who shared the item
  • $sharedBy (string) provider specific UID of the user who shared the resource
  • $sharedByDisplayName (string) display name of the user who shared the resource
  • $sharedSecret (string) used to authenticate requests across servers
  • $shareType (string) (‘group’ or ‘user’ share)
  • $resourceType (‘file’, ‘calendar’,...)
Returns:

\OCP\Federation\ICloudFederationShare

Since:

14.0.0

public OC\Federation\CloudFederationFactory::getCloudFederationNotification()
get a Cloud FederationNotification object to prepare a notification you
want to send
Source:lib/private/Federation/CloudFederationFactory.php#62
Returns:\OCP\Federation\ICloudFederationNotification
Since:14.0.0