|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CloudhubConnection
Interface of the cloudhub connector
| Method Summary | |
|---|---|
Notification |
create(Notification notification)
Connects to CH to create a notification |
Notification |
createNotification(String text,
Notification.Priority priority,
String domain,
Map<String,String> customProperties)
Deprecated. |
void |
dismissAllNotifications()
Does what dismissNotification(String) to all the queued notifications in CH |
void |
dismissNotification(String href)
Removes the notification form the read queue |
List<Application> |
listApplications()
|
NotificationResults |
listNotifications(Integer maxResults,
Integer offset,
String tenantId)
Lists all the notifications of an app. |
DomainConnection |
on(String domain)
|
boolean |
test()
|
| Method Detail |
|---|
DomainConnection on(String domain)
domain - The domain of the required connection
A connection for a specific domain
boolean test()
List<Application> listApplications()
@Deprecated
Notification createNotification(String text,
Notification.Priority priority,
String domain,
Map<String,String> customProperties)
create(Notification) instead
Notification create(Notification notification)
Connects to CH to create a notification
notification - The notification information that needs to be created in CH
The created notification
- CloudHub exceptions based on the http response.
NotificationResults listNotifications(Integer maxResults,
Integer offset,
String tenantId)
Lists all the notifications of an app.
In the case of a multitenant application those notifications will be filtered by tenant id.
offset - Since which notification. For pagination.
maxResults - Maximum number of results. For pagination.
tenantId - Filter by tenant id. If null then don't apply the filter
all existing applications
void dismissNotification(String href)
Removes the notification form the read queue
href - href id of the notification that needs to be dismissed
void dismissAllNotifications()
Does what dismissNotification(String) to all the queued notifications in CH
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||