use of com.redhat.cloud.notifications.models.AggregationEmailTemplate in project notifications-backend by RedHatInsights.
the class TemplateResourceTest method buildAggregationEmailTemplate.
private static AggregationEmailTemplate buildAggregationEmailTemplate(String appId, String subjectTemplateId, String bodyTemplateId) {
AggregationEmailTemplate emailTemplate = new AggregationEmailTemplate();
emailTemplate.setSubscriptionType(DAILY);
if (appId != null) {
emailTemplate.setApplicationId(UUID.fromString(appId));
}
emailTemplate.setSubjectTemplateId(UUID.fromString(subjectTemplateId));
emailTemplate.setBodyTemplateId(UUID.fromString(bodyTemplateId));
return emailTemplate;
}
Aggregations