@Singleton
@Path(value="notifications")
public class NotificationServices
extends step.core.deployment.AbstractServices
Modifier and Type | Field and Description |
---|---|
protected NotificationEngine |
notificationEngine |
protected NotificationGatewayConfigurationAccessor |
notificationGatewayConfigurationAccessor |
protected NotificationSubscriptionAccessor |
notificationSubscriptionAccessor |
Constructor and Description |
---|
NotificationServices() |
Modifier and Type | Method and Description |
---|---|
void |
deleteNotificationGatewayConfiguration(String id) |
void |
deleteNotificationSubscription(String id) |
NotificationGatewayConfiguration |
getNotificationGatewayConfiguration(String id) |
List<NotificationGatewayConfiguration> |
getNotificationGatewayConfigurations() |
List<String> |
getNotificationGatewayNames() |
NotificationSubscription |
getNotificationSubscription(String id) |
List<NotificationSubscription> |
getNotificationSubscriptionsByPlanRef(step.core.repositories.RepositoryObjectReference planRef) |
void |
init() |
void |
saveNotificationGatewayConfiguration(NotificationGatewayConfiguration gatewayConfiguration) |
void |
saveNotificationSubscription(NotificationSubscription subscription) |
protected NotificationGatewayConfigurationAccessor notificationGatewayConfigurationAccessor
protected NotificationSubscriptionAccessor notificationSubscriptionAccessor
protected NotificationEngine notificationEngine
@PostConstruct public void init() throws Exception
init
in class step.core.deployment.AbstractServices
Exception
@POST @Consumes(value="application/json") @Path(value="/gateway") public void saveNotificationGatewayConfiguration(NotificationGatewayConfiguration gatewayConfiguration)
@GET @Consumes(value="application/json") @Path(value="/gateway/{id}") public NotificationGatewayConfiguration getNotificationGatewayConfiguration(@PathParam(value="id") String id)
@DELETE @Consumes(value="application/json") @Path(value="/gateway/{id}") public void deleteNotificationGatewayConfiguration(@PathParam(value="id") String id)
@GET @Consumes(value="application/json") @Path(value="/gateway/list") public List<NotificationGatewayConfiguration> getNotificationGatewayConfigurations()
@POST @Consumes(value="application/json") @Path(value="/subscription") public void saveNotificationSubscription(NotificationSubscription subscription)
@GET @Consumes(value="application/json") @Path(value="/subscription/{id}") public NotificationSubscription getNotificationSubscription(@PathParam(value="id") String id)
@DELETE @Consumes(value="application/json") @Path(value="/subscription/{id}") public void deleteNotificationSubscription(@PathParam(value="id") String id)
@POST @Consumes(value="application/json") @Path(value="/subscription/byplan") public List<NotificationSubscription> getNotificationSubscriptionsByPlanRef(step.core.repositories.RepositoryObjectReference planRef)
@GET @Consumes(value="application/json") @Path(value="/gateway/list/names") public List<String> getNotificationGatewayNames()
Copyright © 2020. All rights reserved.