@Path(value="notifications") public interface NotificationService extends JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
Modifier and Type | Method and Description |
---|---|
void |
actionJob(JobAction action)
Executes an action on the notification job.
|
javax.ws.rs.core.Response |
create(@NotNull NotificationTO notificationTO)
Creates a new notification.
|
void |
delete(@NotNull String key)
Deletes the notification matching the given key.
|
JobTO |
getJob()
Returns details about notification job.
|
List<NotificationTO> |
list()
Returns a list of all notifications.
|
NotificationTO |
read(@NotNull String key)
Returns notification with matching key.
|
void |
update(@NotNull NotificationTO notificationTO)
Updates the notification matching the given key.
|
@GET @Path(value="{key}") @Produces(value={"application/json","application/yaml","application/xml"}) NotificationTO read(@NotNull @PathParam(value="key") @NotNull String key)
key
- key of notification to be read@GET @Produces(value={"application/json","application/yaml","application/xml"}) List<NotificationTO> list()
@POST @Consumes(value={"application/json","application/yaml","application/xml"}) @Produces(value={"application/json","application/yaml","application/xml"}) javax.ws.rs.core.Response create(@NotNull @NotNull NotificationTO notificationTO)
notificationTO
- Creates a new notification.@PUT @Path(value="{key}") @Consumes(value={"application/json","application/yaml","application/xml"}) @Produces(value={"application/json","application/yaml","application/xml"}) void update(@NotNull @NotNull NotificationTO notificationTO)
notificationTO
- notification to be stored@DELETE @Path(value="{key}") @Produces(value={"application/json","application/yaml","application/xml"}) void delete(@NotNull @PathParam(value="key") @NotNull String key)
key
- key for notification to be deleted@GET @Path(value="job") @Produces(value={"application/json","application/yaml","application/xml"}) JobTO getJob()
@POST @Path(value="job") @Produces(value={"application/json","application/yaml","application/xml"}) void actionJob(@QueryParam(value="action") JobAction action)
action
- action to executeCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.