Class ShowVocEmailService
java.lang.Object
it.uniroma2.art.semanticturkey.email.EmailService
it.uniroma2.art.semanticturkey.email.ShowVocEmailService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendAcceptedDevExcelResourceContributionMail
(Reference reference, StoredDevResourceContributionConfiguration contribution, String projectName, String vbLink, String tempPwd) Send email notification to the contributor about the approval of a contribution request of a dev resource that requires conversion from excel Note: the project name is not retrieved from the contribution since it could be change from the admin during the approvalvoid
sendAcceptedDevGenericResourceContributionMail
(Reference reference, StoredDevResourceContributionConfiguration contribution, String projectName, String showvocHostUrl, String token) Send email notification to the contributor about the approval of a contribution request of a dev resource that requires no conversion or a conversion from TBX or Zthes.void
sendAcceptedMetadataContributionMail
(Reference reference, StoredMetadataContributionConfiguration contribution) Mail to the contributor that informs that his metadata contribution has been acceptedvoid
sendAcceptedStableResourceContributionMail
(Reference reference, StoredStableResourceContributionConfiguration contribution, String projectName, String showvocHostUrl, String token) Mail to the contributor that inform that his contribution has been accepted Note: the project name is not retrieved from the contribution since it could be change from the admin during the approvalvoid
sendContributionSubmittedMail
(StoredContributionConfiguration contribution) Mail to: - the administrator that informs that a new contribution has been submitted - the contributor that informs that the contribution request has been receivedvoid
sendLoadedDevGenericResourceContributionMail
(String projectName, String vbLink, String contributorEmail, String tempPwd) Send email notification to a contributor that has just loaded data.void
sendLoadedStableResourceContributionMail
(String projectName, String contributorName, String contributorLastName, String contributorEmail) Mail to the administrator that informs that the contributor has loaded the data into a stable resource contribution projectvoid
sendRejectedContributionMail
(Reference reference, StoredContributionConfiguration contribution) Methods inherited from class it.uniroma2.art.semanticturkey.email.EmailService
formatBold, formatItalic, replaceAdminPlaceholders, replaceGenericPlaceholders, replaceUserPlaceholders, sendMailServiceConfigurationTest, sendProjCreationMailToAdmin, sendResetPasswordConfirmedMail, sendResetPasswordRequestedMail
-
Constructor Details
-
ShowVocEmailService
public ShowVocEmailService()
-
-
Method Details
-
sendContributionSubmittedMail
public void sendContributionSubmittedMail(StoredContributionConfiguration contribution) throws STPropertyAccessException, UnsupportedEncodingException, jakarta.mail.MessagingException Mail to: - the administrator that informs that a new contribution has been submitted - the contributor that informs that the contribution request has been received- Parameters:
contribution
-- Throws:
STPropertyAccessException
UnsupportedEncodingException
jakarta.mail.MessagingException
-
sendAcceptedStableResourceContributionMail
public void sendAcceptedStableResourceContributionMail(Reference reference, StoredStableResourceContributionConfiguration contribution, String projectName, String showvocHostUrl, String token) throws UnsupportedEncodingException, jakarta.mail.MessagingException, STPropertyAccessException Mail to the contributor that inform that his contribution has been accepted Note: the project name is not retrieved from the contribution since it could be change from the admin during the approval- Parameters:
reference
-contribution
-projectName
-showvocHostUrl
-token
-- Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
-
sendAcceptedDevGenericResourceContributionMail
public void sendAcceptedDevGenericResourceContributionMail(Reference reference, StoredDevResourceContributionConfiguration contribution, String projectName, String showvocHostUrl, String token) throws IOException, jakarta.mail.MessagingException, STPropertyAccessException Send email notification to the contributor about the approval of a contribution request of a dev resource that requires no conversion or a conversion from TBX or Zthes. Note: the project name is not retrieved from the contribution since it could be change from the admin during the approval- Parameters:
reference
-contribution
-projectName
-showvocHostUrl
-token
-- Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
IOException
-
sendAcceptedDevExcelResourceContributionMail
public void sendAcceptedDevExcelResourceContributionMail(Reference reference, StoredDevResourceContributionConfiguration contribution, String projectName, String vbLink, String tempPwd) throws IOException, jakarta.mail.MessagingException, STPropertyAccessException Send email notification to the contributor about the approval of a contribution request of a dev resource that requires conversion from excel Note: the project name is not retrieved from the contribution since it could be change from the admin during the approval- Parameters:
reference
-contribution
-projectName
-vbLink
-tempPwd
- provided if a user is created contextually- Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
IOException
-
sendAcceptedMetadataContributionMail
public void sendAcceptedMetadataContributionMail(Reference reference, StoredMetadataContributionConfiguration contribution) throws UnsupportedEncodingException, jakarta.mail.MessagingException, STPropertyAccessException Mail to the contributor that informs that his metadata contribution has been accepted- Parameters:
reference
-contribution
-- Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
-
sendLoadedDevGenericResourceContributionMail
public void sendLoadedDevGenericResourceContributionMail(String projectName, String vbLink, String contributorEmail, String tempPwd) throws UnsupportedEncodingException, jakarta.mail.MessagingException, STPropertyAccessException Send email notification to a contributor that has just loaded data. The email contains the reference to the VB instance where the data has been loaded.- Parameters:
projectName
-vbLink
-contributorEmail
-tempPwd
-- Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
-
sendLoadedStableResourceContributionMail
public void sendLoadedStableResourceContributionMail(String projectName, String contributorName, String contributorLastName, String contributorEmail) throws UnsupportedEncodingException, jakarta.mail.MessagingException, STPropertyAccessException Mail to the administrator that informs that the contributor has loaded the data into a stable resource contribution project- Parameters:
projectName
-contributorName
-contributorLastName
-contributorEmail
-- Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
-
sendRejectedContributionMail
public void sendRejectedContributionMail(Reference reference, StoredContributionConfiguration contribution) throws UnsupportedEncodingException, jakarta.mail.MessagingException, STPropertyAccessException - Parameters:
reference
-contribution
-- Throws:
UnsupportedEncodingException
jakarta.mail.MessagingException
STPropertyAccessException
-