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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
LOGGER
protected static com.axemble.vdp.utils.Logger LOGGER
-
-
Constructor Details
-
BaseMailExtension
public BaseMailExtension()
-
-
Method Details
-
init
public final void init(com.axemble.vdoc.mail.structures.MailData mailData, IBlockDefinition blockDefinition) -
getMailForm
-
unInit
public final void unInit() -
afterSendMail
public final void afterSendMail() -
beforeSendMail
public 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
-
getPreviousTaskInstanceOperator
Returns the operator on the previous task instance- Returns:
- a IUser object
-
getMessage
protected final jakarta.mail.internet.MimeMessage getMessage()- Returns:
- the MimeMessage object
-
beforeSend
protected abstract boolean beforeSend()This method is called before mail has been submitted- Returns:
- true if everything went well. Return false is something wrong happened.
-
afterSend
protected abstract void afterSend()This method is called just after the mail has been sent. This method notifies you only if the sending process succeeded. -
onFillLanguage
This method is called just before the mail is built. Force the language for the mail -
onFillRecipients
Add, modify the addresses for the mail recipient- Parameters:
mailRecipients- The structure to manipulate the message recipients.
-
getCurrentLanguage
This method return the language of the mail
-