Interface HvlNotificationPollingAnnouncementRestService
- All Known Implementing Classes:
HvlNotificationPollingAnnouncementRestController
@HvlPublicFeignRestService
@FeignClient(name="notificationPollingAnnouncementRestService",
path="${hvl.notification.polling.service.announcement.path:/polling/announcement}",
url="${hvl.notification.polling.service.announcement.url:${hvl.notification.polling.service.url}}")
public interface HvlNotificationPollingAnnouncementRestService
A restful service which provides specific methods for notification polling announcements.
-
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> Deletes announcement.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlNotificationPollingAnnouncementModel> Gets announcement model by uuid.tr.com.havelsan.javarch.service.data.HvlResponse
<List<HvlNotificationPollingAnnouncementModel>> queryList
(@NotNull HvlNotificationPollingAnnouncementQueryModel pollingAnnouncementQueryModel) Returns a list of announcement matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationPollingAnnouncementModel>> queryPage
(@NotNull HvlNotificationPollingAnnouncementQueryModel pollingAnnouncementQueryModel) Returns a page of announcement matching the query criteria.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlNotificationPollingAnnouncementModel> save
(@NotNull @Valid HvlNotificationPollingAnnouncementModel pollingAnnouncementModel) Sends announcement.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlNotificationPollingAnnouncementModel> update
(@NotNull @Valid HvlNotificationPollingAnnouncementModel pollingAnnouncementModel) Updates announcement.
-
Method Details
-
save
@PostMapping(path="/save", produces="application/json", consumes="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationPollingAnnouncementModel> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingAnnouncementModel pollingAnnouncementModel) Sends announcement.- Parameters:
pollingAnnouncementModel
- the polling announcement model- Returns:
- the hvl response
-
update
@PutMapping(path="/update", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationPollingAnnouncementModel> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingAnnouncementModel pollingAnnouncementModel) Updates announcement.- Parameters:
pollingAnnouncementModel
- the polling announcement model- Returns:
- the hvl response
-
delete
@DeleteMapping(path="/by-uuid/{uuid}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> delete(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Deletes announcement.- Parameters:
uuid
- the uuid- Returns:
- the hvl response
-
getByUuid
@GetMapping(path="/by-uuid/{uuid}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationPollingAnnouncementModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Gets announcement model by uuid.- Parameters:
uuid
- the uuid- Returns:
- the by uuid
-
queryList
@PostMapping(path="/list", produces="application/json", consumes="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlNotificationPollingAnnouncementModel>> queryList(@NotNull @RequestBody @NotNull HvlNotificationPollingAnnouncementQueryModel pollingAnnouncementQueryModel) Returns a list of announcement matching the query criteria.- Parameters:
pollingAnnouncementQueryModel
- the polling announcement query model- Returns:
- the hvl response
-
queryPage
@PostMapping(path="/page", produces="application/json", consumes="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationPollingAnnouncementModel>> queryPage(@NotNull @RequestBody @NotNull HvlNotificationPollingAnnouncementQueryModel pollingAnnouncementQueryModel) Returns a page of announcement matching the query criteria.- Parameters:
pollingAnnouncementQueryModel
- the polling announcement query model- Returns:
- the hvl response
-