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
    • activateByUuid

      @PostMapping(path="/activate/by-uuid/{uuid}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> activateByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Method used to activate mail template according to uuid.
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • deactivateByUuid

      @PostMapping(path="/deactivate/by-uuid/{uuid}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> deactivateByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Method used to deactivate mail template according to uuid.
      Parameters:
      uuid - the uuid
      Returns:
      the hvl response
    • isEnabled

      @GetMapping(path="/enabled/by-code/{code}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Boolean> isEnabled(@NotBlank @Size(max=100) @PathVariable("code") @NotBlank @Size(max=100) String code)
      Notification template enabled by code
      Parameters:
      code - the code
      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