Interface HvlNotificationTemplateService
- All Known Implementing Classes:
HvlNotificationTemplateServiceImpl
@Validated
public interface HvlNotificationTemplateService
This service provides operational and retrieve methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to activate mail template according to uuid.void
deactivateByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Method used to deactivate mail template according to uuid.void
Delete notification template by uuid.findOrElseThrow
(@NotNull @Valid HvlNotificationTemplateQueryModel templateQueryModel) FindHvlNotificationTemplateModel
by code or else throw .Gets notification template by uuid.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
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
-
activateByUuid
Method used to activate mail template according to uuid.- Parameters:
uuid
- the uuid
-
deactivateByUuid
Method used to deactivate mail template according to uuid.- Parameters:
uuid
- the uuid
-
isEnabled
Is template enabled boolean.- Parameters:
code
- the code- 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
-
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
-