ISenderDomainAwareCloudFederationNotification
extends
ICloudFederationNotification
in
Notification in the OCM 1.5+ format
Tags
Attributes
- #[Consumable]
- $since: '36.0.0'
Table of Contents
Methods
- getMessage() : array<string|int, mixed>
- get message, ready to send out
- getNotification() : array<string, mixed>
- Additional parameters, depending on the notification type and the resource type
- getNotificationType() : string
- Notification type, e.g. SHARE_ACCEPTED
- getProviderId() : string|null
- Identifier assigned by the sending server to the underlying share
- getResourceType() : string|null
- Type of the resource the notification is about, e.g. file
- getSenderDomain() : string
- Domain of the sending server, verified against the request signature
- getShareType() : string|null
- Type of the recipient the notification is about, e.g. user
- setMessage() : mixed
- add a message to the notification
Methods
getMessage()
get message, ready to send out
public
getMessage() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getNotification()
Additional parameters, depending on the notification type and the resource type
public
getNotification() : array<string, mixed>
Tags
Return values
array<string, mixed>getNotificationType()
Notification type, e.g. SHARE_ACCEPTED
public
getNotificationType() : string
Tags
Return values
stringgetProviderId()
Identifier assigned by the sending server to the underlying share
public
getProviderId() : string|null
deprecated by the OCM specification, identify the share from getNotification() instead
Tags
Return values
string|nullgetResourceType()
Type of the resource the notification is about, e.g. file
public
getResourceType() : string|null
Tags
Return values
string|nullgetSenderDomain()
Domain of the sending server, verified against the request signature
public
getSenderDomain() : string
Tags
Return values
stringgetShareType()
Type of the recipient the notification is about, e.g. user
public
getShareType() : string|null
Tags
Return values
string|nullsetMessage()
add a message to the notification
public
setMessage(string $notificationType, string $resourceType, string $providerId, array<string|int, mixed> $notification) : mixed
Parameters
- $notificationType : string
-
(e.g. SHARE_ACCEPTED)
- $resourceType : string
-
(e.g. file, calendar, contact,...)
- $providerId : string
-
id of the share
- $notification : array<string|int, mixed>
-
payload of the notification