@Path(value="notifications") public interface NotificationService extends JAXRSService
DEFAULT_PARAM_PAGE, DEFAULT_PARAM_PAGE_VALUE, DEFAULT_PARAM_SIZE, DEFAULT_PARAM_SIZE_VALUE, PARAM_DETAILS, PARAM_FIQL, PARAM_ORDERBY, PARAM_PAGE, PARAM_SIZE| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(NotificationTO notificationTO)
Creates a new notification.
|
void |
delete(Long notificationId)
Deletes the notification matching the given id.
|
List<NotificationTO> |
list()
Returns a list of all notifications.
|
NotificationTO |
read(Long notificationId)
Returns notification with matching id.
|
void |
update(Long notificationId,
NotificationTO notificationTO)
Updates the notification matching the given id.
|
@GET
@Path(value="{notificationId}")
@Produces(value={"application/xml","application/json"})
NotificationTO read(@NotNull@PathParam(value="notificationId")
Long notificationId)
notificationId - id of notification to be read@GET
@Produces(value={"application/xml","application/json"})
List<NotificationTO> list()
@POST
@Consumes(value={"application/xml","application/json"})
javax.ws.rs.core.Response create(@NotNull
NotificationTO notificationTO)
notificationTO - Creates a new notification.@PUT
@Path(value="{notificationId}")
@Consumes(value={"application/xml","application/json"})
void update(@NotNull@PathParam(value="notificationId")
Long notificationId,
@NotNull
NotificationTO notificationTO)
notificationId - id of notification to be updatednotificationTO - notification to be stored@DELETE
@Path(value="{notificationId}")
void delete(@NotNull@PathParam(value="notificationId")
Long notificationId)
notificationId - id for notification to be deletedCopyright © 2010–2018 The Apache Software Foundation. All rights reserved.