Nextcloud PHP API (master)

ISenderDomainAwareCloudFederationProvider extends ICloudFederationProvider

Cloud federation provider that handles notifications in the OCM 1.5+ format

Tags
link
https://github.com/cs3org/OCM-API/blob/v1.5.0/IETF-OCM.md#notifications
since
36.0.0
Attributes
#[Implementable]
$since: '36.0.0'

Table of Contents

Methods

getShareType()  : string
get the name of the share type, handled by this provider
getSupportedShareTypes()  : array<string|int, mixed>
get the supported share types, e.g. "user", "group", etc.
notificationReceived()  : array<string|int, string>
notification received from another server
senderDomainAwareNotificationReceived()  : array<string, mixed>
Notification with senderDomain field received from another server
shareReceived()  : string
share received from another server

Methods

getShareType()

get the name of the share type, handled by this provider

public getShareType() : string
Tags
since
14.0.0
Return values
string

getSupportedShareTypes()

get the supported share types, e.g. "user", "group", etc.

public getSupportedShareTypes() : array<string|int, mixed>
Tags
since
14.0.0
Return values
array<string|int, mixed>

notificationReceived()

notification received from another server

public notificationReceived(string $notificationType, string $providerId, array<string|int, mixed> $notification) : array<string|int, string>
Parameters
$notificationType : string

(e.g SHARE_ACCEPTED)

$providerId : string

share ID

$notification : array<string|int, mixed>

provider specific notification

Tags
throws
ShareNotFound
ActionNotSupportedException
BadRequestException
AuthenticationFailedException
since
14.0.0
Return values
array<string|int, string> —

$data send back to sender

senderDomainAwareNotificationReceived()

Notification with senderDomain field received from another server

public senderDomainAwareNotificationReceived(string $notificationType, string|null $providerId, array<string, mixed> $notification, string $senderDomain, string|null $shareType) : array<string, mixed>
Parameters
$notificationType : string

(e.g SHARE_ACCEPTED)

$providerId : string|null

share ID, deprecated by the OCM spec and may be omitted by the sender

$notification : array<string, mixed>

provider specific notification

$senderDomain : string

domain of the sending server, verified against the request signature. Providers must still verify that the sender is allowed to act on the resource.

$shareType : string|null

type of the recipient the notification is about, e.g. user

Tags
throws
ShareNotFound
ActionNotSupportedException
BadRequestException
AuthenticationFailedException
since
36.0.0
Return values
array<string, mixed> —

data sent back to the sender

On this page

Search results