Interface HvlNotificationTemplateManager
- All Known Implementing Classes:
HvlNotificationTemplateManagerImpl
@Service
@Validated
public interface HvlNotificationTemplateManager
This manager provides query methods.
-
Method Summary
Modifier and TypeMethodDescriptionfindOrElseThrow
(@NotNull @Valid HvlNotificationTemplateQueryModel templateQueryModel) FindHvlNotificationTemplateModel
by code or else throw .Gets notification template by uuid.boolean
Is template enabled boolean.boolean
Is template enabled boolean.prepareMailTemplateContent
(@NotBlank String content, @NotBlank String language) Returns notification template content with attributes.preview
(@NotNull @Valid HvlNotificationTemplateQueryModel notificationTemplateQueryModel) Preview notification template.query
(@NotNull @Valid HvlNotificationTemplateQueryModel templateQueryModel) Query hvl notification template model.tr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlNotificationTemplateDataModel> queryDataPage
(@NotNull @Valid HvlNotificationTemplateQueryModel notificationTemplateQueryModel) Returns a page of mail template matching the query criteria.void
verifyMailTemplateStatus
(@NotNull @Valid HvlNotificationMailRequestModel mailRequestModel, Long templateId) Verify mail template status.
-
Method Details
-
isEnabled
Is template enabled boolean.- Parameters:
code
- the code- Returns:
- the boolean
-
isEnabled
Is template enabled boolean.- Parameters:
id
- the id- Returns:
- the boolean
-
findOrElseThrow
HvlNotificationTemplateModel findOrElseThrow(@NotNull @Valid @NotNull @Valid HvlNotificationTemplateQueryModel templateQueryModel) FindHvlNotificationTemplateModel
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 modeltemplateId
- 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 contentlanguage
- the language- Returns:
- the string
-