Class BaseMailExtension
java.lang.Object
com.axemble.vdoc.sdk.mail.extensions.BaseMailExtension
- All Implemented Interfaces:
- com.axemble.vdoc.mail.extensions.IMailExtensionSupport
public abstract class BaseMailExtension
extends Object
implements com.axemble.vdoc.mail.extensions.IMailExtensionSupport
The 
BaseMailExtension class provides direct access to the SDK API.
 You can access the following methods:
- getPortalModule() : the module to manipulate the back office system;
- getDirectoryModule() : the module to manipulate the directory system;
- getProjectModule() : the module to manipulate the project system;
- getWorkflowModule() : the module to manipulate the workflow system;
- getWorkflowInstance() : the current workflow instance document;
- getTaskInstance() : the current activity of the document;
- getMessage() : the internal MimeMessage.
- getPreviousTaskInstanceOperator() : the operator of the previous task instance.
- Version:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidThis method is called just after the mail has been sent.final voidprotected abstract booleanThis method is called before mail has been submittedfinal booleanprotected final StringThis method return the language of the mailprotected final IDirectoryModuleprotected final IMailFormprotected final jakarta.mail.internet.MimeMessageprotected final IPortalModuleprotected final IUserReturns the operator on the previous task instanceprotected final IProjectModuleprotected final IResourceprotected final ITaskInstanceprotected final IWorkflowInstanceprotected final IWorkflowModulefinal voidinit(com.axemble.vdoc.mail.structures.MailData mailData, IBlockDefinition blockDefinition) protected StringThis method is called just before the mail is built.final StringvoidonFillRecipients(MailRecipients mailRecipients) Add, modify the addresses for the mail recipientfinal IBlockDefinitionvoidonPrepare(IBlockDefinition blockDefinition) final voidunInit()
- 
Field Details- 
LOGGERprotected static com.axemble.vdp.utils.Logger LOGGER
 
- 
- 
Constructor Details- 
BaseMailExtensionpublic BaseMailExtension()
 
- 
- 
Method Details- 
initpublic final void init(com.axemble.vdoc.mail.structures.MailData mailData, IBlockDefinition blockDefinition) 
- 
getMailForm
- 
unInitpublic final void unInit()
- 
afterSendMailpublic final void afterSendMail()
- 
beforeSendMailpublic final boolean beforeSendMail()
- 
onFillLanguageMail
- 
onPrepare
- 
onPrepare
- 
getWorkflowModule- Returns:
- the workflowModule
 
- 
getPortalModule- Returns:
- the portalModule
 
- 
getDirectoryModule- Returns:
- the directoryModule
 
- 
getProjectModule- Returns:
- the projectModule
 
- 
getWorkflowInstance- Returns:
- the workflowInstance
 
- 
getResource- Returns:
- the resource
 
- 
getTaskInstance- Returns:
- the taskInstance
 
- 
getPreviousTaskInstanceOperatorReturns the operator on the previous task instance- Returns:
- a IUser object
 
- 
getMessageprotected final jakarta.mail.internet.MimeMessage getMessage()- Returns:
- the MimeMessage object
 
- 
beforeSendprotected abstract boolean beforeSend()This method is called before mail has been submitted- Returns:
- true if everything went well. Return false is something wrong happened.
 
- 
afterSendprotected abstract void afterSend()This method is called just after the mail has been sent. This method notifies you only if the sending process succeeded.
- 
onFillLanguageThis method is called just before the mail is built. Force the language for the mail
- 
onFillRecipientsAdd, modify the addresses for the mail recipient- Parameters:
- mailRecipients- The structure to manipulate the message recipients.
 
- 
getCurrentLanguageThis method return the language of the mail
 
-