Class InviteSender
- java.lang.Object
-
- org.alfresco.repo.invitation.site.InviteSender
-
- Direct Known Subclasses:
InviteModeratedSender,InviteNominatedSender
public abstract class InviteSender extends Object
Notifies the necessary user(s) of a pending site membership invitation/request.- Author:
- Nick Smith
-
-
Field Summary
Fields Modifier and Type Field Description protected ActionServiceactionServiceprotected FileFolderServicefileFolderServiceprotected MessageServicemessageServiceprotected NamespaceServicenamespaceServiceprotected NodeServicenodeServiceprotected PersonServicepersonServiceprotected RepoAdminServicerepoAdminServiceprotected Repositoryrepositoryprotected SearchServicesearchServiceprotected SiteServicesiteService
-
Constructor Summary
Constructors Constructor Description InviteSender(ServiceRegistry services, Repository repository, MessageService messageService)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Map<String,Serializable>buildMailTextModel(Map<String,String> properties)protected voidcheckProperties(Map<String,String> properties)protected NodeRefgetEmailTemplateNodeRef(String emailTemplateXPath)protected abstract List<String>getRequiredProperties()protected StringgetSiteName(Map<String,String> properties)protected abstract StringgetWorkflowPropForSiteName()abstract voidsendMail(String emailTemplateXpath, String emailSubjectKey, Map<String,String> properties)Sends an invitation email.
-
-
-
Field Detail
-
actionService
protected final ActionService actionService
-
nodeService
protected final NodeService nodeService
-
personService
protected final PersonService personService
-
searchService
protected final SearchService searchService
-
siteService
protected final SiteService siteService
-
repository
protected final Repository repository
-
messageService
protected final MessageService messageService
-
fileFolderService
protected final FileFolderService fileFolderService
-
repoAdminService
protected final RepoAdminService repoAdminService
-
namespaceService
protected final NamespaceService namespaceService
-
-
Constructor Detail
-
InviteSender
public InviteSender(ServiceRegistry services, Repository repository, MessageService messageService)
-
-
Method Detail
-
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
protected abstract Map<String,Serializable> buildMailTextModel(Map<String,String> properties)
-
checkProperties
protected void checkProperties(Map<String,String> properties)
- Parameters:
properties- Map
-
getWorkflowPropForSiteName
protected abstract String getWorkflowPropForSiteName()
-
-