|
|||||||||
| 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 |
Tenant |
create(Tenant tenant,
String domain)
Creates a tenant |
Notification |
createNotification(String text,
Notification.Priority priority,
String domain,
Map<String,String> customProperties)
Deprecated. |
void |
delete(String tenantId,
String domain)
Deletes a given tenant |
void |
deleteTenants(String domain,
List<String> tenantIds)
Deletes the tenants matching one of many given ids |
void |
dismissAllNotifications()
Does what dismissNotification(String) to all the queued notifications in CH |
void |
dismissNotification(String href)
Removes the notification form the read queue |
Account |
getAccount()
Returns the Account information of the logged user |
Tenant |
getTenant(String domain,
String tenantId)
Returns an specific tenant |
List<Application> |
listApplications()
|
NotificationResults |
listNotifications(Integer maxResults,
Integer offset,
String tenantId)
Lists all the notifications of an app. |
TenantResults |
listTenants(String domain,
Integer limit,
Integer offset,
String query)
Lists tenants for a given domain |
DomainConnection |
on(String domain)
|
boolean |
test()
|
Tenant |
update(Tenant tenant,
String domain)
Updates a tenant |
| Method Detail |
|---|
DomainConnection on(String domain)
domain - The domain of the required connection
A connection for a specific domain
boolean test()
List<Application> listApplications()
Account getAccount()
@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
TenantResults listTenants(String domain,
Integer limit,
Integer offset,
String query)
Lists tenants for a given domain
domain - the domain owning the tenantslimit - The maximum number of results to return by default. Maximum of 100.offset - The offset to start searching atquery - The company name, contact name, and email of the tenant to search form. Performs a case insensitive match to any part of the tenant name.
TenantResults
Tenant getTenant(String domain,
String tenantId)
Returns an specific tenant
domain - the domain owning the tenantstenantId - the id of the tenant you want
Tenant
Tenant create(Tenant tenant,
String domain)
Creates a tenant
tenant - an instance of Tenant representing the tenantdomain - the domain that will own the tenant
Tenant carrying the state of the newly created tenant
Tenant update(Tenant tenant,
String domain)
Updates a tenant
tenant - an instance of Tenant with the tenant's new statedomain - the domain that will own the tenant
Tenant carrying the tenant's updated state
void delete(String tenantId,
String domain)
Deletes a given tenant
tenantId - the id of the tenant to be deleteddomain - the domain that owns the tenant to be deleted
void deleteTenants(String domain,
List<String> tenantIds)
Deletes the tenants matching one of many given ids
domain - the domain you want to clear of tenantstenantIds - a list with tenant ids to be deleted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||