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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
This method is called just after the mail has been sent.final void
protected abstract boolean
This method is called before mail has been submittedfinal boolean
protected final String
This method return the language of the mailprotected final IDirectoryModule
protected final IMailForm
protected final jakarta.mail.internet.MimeMessage
protected final IPortalModule
protected final IUser
Returns the operator on the previous task instanceprotected final IProjectModule
protected final IResource
protected final ITaskInstance
protected final IWorkflowInstance
protected final IWorkflowModule
final void
init
(com.axemble.vdoc.mail.structures.MailData mailData, IBlockDefinition blockDefinition) protected String
This method is called just before the mail is built.final String
void
onFillRecipients
(MailRecipients mailRecipients) Add, modify the addresses for the mail recipientfinal IBlockDefinition
void
onPrepare
(IBlockDefinition blockDefinition) final void
unInit()
-
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
-