Interface HvlNotificationTemplateManager

All Known Implementing Classes:
HvlNotificationTemplateManagerImpl

@Service @Validated public interface HvlNotificationTemplateManager
This manager provides query methods.
  • Method Details

    • isEnabled

      boolean isEnabled(@NotBlank @Size(max=100) @NotBlank @Size(max=100) String code)
      Is template enabled boolean.
      Parameters:
      code - the code
      Returns:
      the boolean
    • isEnabled

      boolean isEnabled(@NotNull @NotNull Long id)
      Is template enabled boolean.
      Parameters:
      id - the id
      Returns:
      the boolean
    • findOrElseThrow

      HvlNotificationTemplateModel findOrElseThrow(@NotNull @Valid @NotNull @Valid HvlNotificationTemplateQueryModel templateQueryModel)
      Find HvlNotificationTemplateModel by code or else throw .
      Parameters:
      templateQueryModel - the template query model
      Returns:
      the hvl notification template model
    • verifyMailTemplateStatus

      void verifyMailTemplateStatus(@NotNull @Valid @NotNull @Valid HvlNotificationMailRequestModel mailRequestModel, Long templateId)
      Verify mail template status.
      Parameters:
      mailRequestModel - the mail request model
      templateId - the template id
    • preview

      HvlNotificationTemplateContentModel preview(@NotNull @Valid @NotNull @Valid HvlNotificationTemplateQueryModel notificationTemplateQueryModel)
      Preview notification template.
      Parameters:
      notificationTemplateQueryModel - the notification mail preview query model
      Returns:
      the hvl notification template model
    • getByUuid

      HvlNotificationTemplateModel getByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid)
      Gets notification template by uuid.
      Parameters:
      uuid - the uuid
      Returns:
      the predefined proxy model
    • query

      HvlNotificationTemplateModel query(@NotNull @Valid @NotNull @Valid HvlNotificationTemplateQueryModel templateQueryModel)
      Query hvl notification template model.
      Parameters:
      templateQueryModel - the template query model
      Returns:
      the hvl notification template model
    • queryDataPage

      tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationTemplateDataModel> queryDataPage(@NotNull @Valid @NotNull @Valid HvlNotificationTemplateQueryModel notificationTemplateQueryModel)
      Returns a page of mail template matching the query criteria.
      Parameters:
      notificationTemplateQueryModel - the notification template query model
      Returns:
      the page of notification template projection model
    • prepareMailTemplateContent

      String prepareMailTemplateContent(@NotBlank @NotBlank String content, @NotBlank @NotBlank String language)
      Returns notification template content with attributes.
      Parameters:
      content - the content
      language - the language
      Returns:
      the string