Interface HvlNotificationTemplateService
- All Known Implementing Classes:
HvlNotificationTemplateServiceImpl
@Validated
public interface HvlNotificationTemplateService
A service in which includes custom methods used for persist/retrieve data.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete notification template by uuid.findOrElseThrow
(@NotNull @Valid HvlNotificationTemplateQueryModel templateQueryModel) FindHvlNotificationTemplateModel
by code or else throw .Gets notification template by uuid.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
save
(@NotNull @Valid HvlNotificationTemplateModel notificationTemplateModel) Save notification template.void
update
(@NotNull @Valid HvlNotificationTemplateModel notificationTemplateModel) Update notification template.
-
Method Details
-
save
Save notification template.- Parameters:
notificationTemplateModel
- the notification template model
-
update
Update notification template.- Parameters:
notificationTemplateModel
- the notification template model
-
delete
void delete(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid) Delete notification template by uuid.- Parameters:
uuid
- the uuid
-
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
-
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
-