Interface NotificationSubscriptionApi
-
- All Known Implementing Classes:
NotificationSubscriptionApiImpl
public interface NotificationSubscriptionApiManage notification subscriptions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(NotificationSubscriptionRepresentation subscription)Delete by object.voiddeleteByFilter(NotificationSubscriptionFilter filter)Deletes all subscriptions matching a filter.voiddeleteById(String subscriptionId)Delete by ID.voiddeleteBySource(String source)Deletes all subscriptions to a source in managed object context.voiddeleteTenantSubscriptions()Deletes all subscriptions of the current tenant.NotificationSubscriptionCollectiongetSubscriptions()Gets all the subscriptions.NotificationSubscriptionCollectiongetSubscriptionsByFilter(NotificationSubscriptionFilter filter)Gets all the subscriptions matching a filter.NotificationSubscriptionRepresentationsubscribe(NotificationSubscriptionRepresentation representation)Creates a subscription to a source.
-
-
-
Method Detail
-
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
NotificationSubscriptionCollection getSubscriptions() throws SDKException
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
void delete(NotificationSubscriptionRepresentation subscription) throws SDKException
Delete by object.- Parameters:
subscription- to delete- Throws:
SDKException
-
deleteById
void deleteById(String subscriptionId) throws SDKException
Delete by ID.- Parameters:
subscriptionId- of subscription to delete- Throws:
SDKException
-
deleteByFilter
void deleteByFilter(NotificationSubscriptionFilter filter)
Deletes all subscriptions matching a filter.- Parameters:
filter-
-
deleteBySource
void deleteBySource(String source)
Deletes all subscriptions to a source in managed object context.- Parameters:
source-
-
deleteTenantSubscriptions
void deleteTenantSubscriptions()
Deletes all subscriptions of the current tenant.
-
-