Interface NotificationSubscriptionApi
- All Known Implementing Classes:
NotificationSubscriptionApiImpl
public interface NotificationSubscriptionApi
Manage notification subscriptions
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(NotificationSubscriptionRepresentation subscription) Delete by object.void
Deletes all subscriptions matching a filter.void
deleteById
(String subscriptionId) Delete by ID.void
deleteBySource
(String source) Deletes all subscriptions to a source in managed object context.void
Deletes all subscriptions of the current tenant.Gets all the subscriptions.Gets all the subscriptions matching a filter.subscribe
(NotificationSubscriptionRepresentation representation) Creates a subscription to a source.
-
Method Details
-
subscribe
NotificationSubscriptionRepresentation subscribe(NotificationSubscriptionRepresentation representation) throws SDKException Creates a subscription to a source.- Parameters:
representation
- initial values for subscription- Returns:
- subscription populated with an id
- Throws:
SDKException
-
getSubscriptions
Gets all the subscriptions.- Returns:
- all the subscriptions
- Throws:
SDKException
-
getSubscriptionsByFilter
NotificationSubscriptionCollection getSubscriptionsByFilter(NotificationSubscriptionFilter filter) throws SDKException Gets all the subscriptions matching a filter. If the filter is null, return all subscriptions.- Parameters:
filter
- values to be matched on- Returns:
- subscriptions matching values
- Throws:
SDKException
-
delete
Delete by object.- Parameters:
subscription
- to delete- Throws:
SDKException
-
deleteById
Delete by ID.- Parameters:
subscriptionId
- of subscription to delete- Throws:
SDKException
-
deleteByFilter
Deletes all subscriptions matching a filter.- Parameters:
filter
-
-
deleteBySource
Deletes all subscriptions to a source in managed object context.- Parameters:
source
-
-
deleteTenantSubscriptions
void deleteTenantSubscriptions()Deletes all subscriptions of the current tenant.
-