Interface HvlNotificationTemplateRestService

All Known Implementing Classes:
HvlNotificationMailTemplateController

@HvlPublicFeignRestService @FeignClient(name="notificationMailRestService", path="${hvl.notification.mail.service.path:/notification/template}", url="${hvl.notification.mail.service.url}") public interface HvlNotificationTemplateRestService
A restful service which provides specific methods for mail notifications.
  • Method Details

    • save

      @PostMapping(consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> save(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationTemplateModel notificationTemplateModel)
      Saves notification template.
      Parameters:
      notificationTemplateModel - the notification template model
      Returns:
      the hvl response
    • update

      @PutMapping(consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> update(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationTemplateModel notificationTemplateModel)
      Updates notification template.
      Parameters:
      notificationTemplateModel - the notification template 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 notification template by uuid.
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • getByUuid

      @GetMapping(path="/by-uuid/{uuid}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationTemplateModel> getByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Gets notification template model by uuid.
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • queryDataPage

      @PostMapping(path="/data/page", consumes="application/json", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationTemplateDataModel>> queryDataPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationTemplateQueryModel notificationTemplateQueryModel)
      Returns a page of mail template matching the query criteria.
      Parameters:
      notificationTemplateQueryModel - the mail template query model
      Returns:
      the hvl response
    • preview

      @PostMapping(path="/preview", consumes="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationTemplateContentModel> preview(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationTemplateQueryModel notificationTemplateQueryModel)
      Provides preview for mail with parameters
      Parameters:
      notificationTemplateQueryModel - the notification mail preview query model
      Returns:
      the hvl response