Class InviteSender
java.lang.Object
org.alfresco.repo.invitation.site.InviteSender
- Direct Known Subclasses:
InviteModeratedSender,InviteNominatedSender
Notifies the necessary user(s) of a pending site membership invitation/request.
- Author:
- Nick Smith
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ActionServiceprotected final FileFolderServiceprotected final MessageServiceprotected final NamespaceServiceprotected final NodeServiceprotected final PersonServiceprotected final RepoAdminServiceprotected final Repositoryprotected final SearchServiceprotected final SiteServiceprotected final SysAdminParams -
Constructor Summary
ConstructorsConstructorDescriptionInviteSender(ServiceRegistry services, Repository repository, MessageService messageService) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Map<String,Serializable> buildMailTextModel(Map<String, String> properties) protected voidcheckProperties(Map<String, String> properties) protected NodeRefgetEmailTemplateNodeRef(String emailTemplateXPath) protected StringgetSiteName(Map<String, String> properties) protected abstract Stringabstract voidSends an invitation email.
-
Field Details
-
actionService
-
nodeService
-
personService
-
searchService
-
siteService
-
repository
-
messageService
-
fileFolderService
-
repoAdminService
-
namespaceService
-
sysAdminParams
-
-
Constructor Details
-
InviteSender
-
-
Method Details
-
sendMail
public abstract void sendMail(String emailTemplateXpath, String emailSubjectKey, Map<String, String> properties) Sends an invitation email.- Parameters:
emailTemplateXpath- the XPath to the email template in the repositoryemailSubjectKey- the subject of the emailproperties- A Map containing the properties needed to send the email.
-
buildMailTextModel
-
getRequiredProperties
-
checkProperties
- Parameters:
properties- Map<String, String>
-
getEmailTemplateNodeRef
-
getSiteName
-
getWorkflowPropForSiteName
-