All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.imunity.furms.unity.notifications.EmailNotificationProperties Maven / Gradle / Ivy

There is a newer version: 4.3.1
Show newest version
/*
 * Copyright (c) 2020 Bixbit s.c. All rights reserved.
 * See LICENSE file for licensing information.
 */

package io.imunity.furms.unity.notifications;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
class EmailNotificationProperties {
	public final String newPolicyAcceptanceTemplateId;
	public final String newPolicyRevisionTemplateId;
	public final String newInvitationTemplateId;
	public final String acceptedInvitationTemplateId;
	public final String rejectedInvitationTemplateId;
	public final String newApplicationTemplateId;
	public final String acceptedApplicationTemplateId;
	public final String rejectedApplicationTemplateId;
	public final String resourceUsageTemplateId;
	public final String resourceUsageTemplateWithoutUrlId;
	public final String furmsServerBaseURL;

	EmailNotificationProperties(
		@Value("${furms.notification.new-policy-template-id}") String newPolicyAcceptanceTemplateId,
		@Value("${furms.notification.new-policy-revision-template-id}") String newPolicyRevisionTemplateId,
		@Value("${furms.notification.new-invitation-template-id}") String newInvitationTemplateId,
		@Value("${furms.notification.accepted-invitation-template-id}") String acceptedInvitationTemplateId,
		@Value("${furms.notification.rejected-invitation-template-id}") String rejectedInvitationTemplateId,
		@Value("${furms.notification.new-application-template-id}") String newApplicationTemplateId,
		@Value("${furms.notification.accepted-application-template-id}") String acceptedApplicationTemplateId,
		@Value("${furms.notification.rejected-application-template-id}") String rejectedApplicationTemplateId,
		@Value("${furms.notification.resource-usage-alarm-template-id}") String resourceUsageTemplateId,
		@Value("${furms.notification.resource-usage-alarm-without-url-template-id}") String resourceUsageTemplateWithoutUrlId,
		@Value("${furms.url}") String furmsServerBaseURL
	) {
		this.newPolicyAcceptanceTemplateId = newPolicyAcceptanceTemplateId;
		this.newPolicyRevisionTemplateId = newPolicyRevisionTemplateId;
		this.newInvitationTemplateId = newInvitationTemplateId;
		this.acceptedInvitationTemplateId = acceptedInvitationTemplateId;
		this.rejectedInvitationTemplateId = rejectedInvitationTemplateId;
		this.newApplicationTemplateId = newApplicationTemplateId;
		this.acceptedApplicationTemplateId = acceptedApplicationTemplateId;
		this.rejectedApplicationTemplateId = rejectedApplicationTemplateId;
		this.resourceUsageTemplateId = resourceUsageTemplateId;
		this.furmsServerBaseURL = furmsServerBaseURL;
		this.resourceUsageTemplateWithoutUrlId = resourceUsageTemplateWithoutUrlId;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy