public class

MboxImporter

extends ConfluenceAbstractLongRunningTask
java.lang.Object
   ↳ com.atlassian.core.task.longrunning.AbstractLongRunningTask
     ↳ com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
       ↳ com.atlassian.confluence.mail.importers.MboxImporter

Summary

[Expand]
Inherited Fields
From class com.atlassian.core.task.longrunning.AbstractLongRunningTask
Public Constructors
MboxImporter()
Public Methods
String getName()
void importMbox()
void runInternal()
Perform the import.
void setFile(File file)
Set the file the mail will be read from.
void setInputStream(InputStream input)
You don't need to set the input stream if you've already set a File
void setMailContentManager(MailContentManager mailContentManager)
Provided by Spring
void setSessionFactory(SessionFactory sessionFactory)
Provided by Spring
void setSpace(Space space)
Set the space the mails will be added to.
void setTransactionManager(HibernateTransactionManager transactionManager)
[Expand]
Inherited Methods
From class com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask
From class com.atlassian.core.task.longrunning.AbstractLongRunningTask
From class java.lang.Object
From interface com.atlassian.core.task.longrunning.LongRunningTask
From interface java.lang.Runnable

Public Constructors

public MboxImporter ()

Public Methods

public String getName ()

public void importMbox ()

Throws
IOException

public void runInternal ()

Perform the import. You must have both space and one of File or input set before running this method.

public void setFile (File file)

Set the file the mail will be read from. Reading from a file is preferred as we can pre-scan it to determine the total number of mails to import

Parameters
file the file the mails will be read from

public void setInputStream (InputStream input)

You don't need to set the input stream if you've already set a File

Parameters
input the input stream to read the mail from

public void setMailContentManager (MailContentManager mailContentManager)

Provided by Spring

public void setSessionFactory (SessionFactory sessionFactory)

Provided by Spring

public void setSpace (Space space)

Set the space the mails will be added to.

Parameters
space the space the mails will be added to

public void setTransactionManager (HibernateTransactionManager transactionManager)