com.trackstudio.app.adapter.store
Class MailImportMessageStoreAdapter

java.lang.Object
  extended by com.trackstudio.app.adapter.store.MailImportMessageStoreAdapter
All Implemented Interfaces:
Adapter, StoreAdapter

public class MailImportMessageStoreAdapter
extends java.lang.Object
implements StoreAdapter

MailImport Message Adapter. Import e-mail, create message and attachments.


Constructor Summary
MailImportMessageStoreAdapter()
           
 
Method Summary
 java.lang.String getDescription()
          Adapter's description
 boolean init()
          Initialize adapter.
 boolean process(java.lang.String taskid, java.lang.String from, java.lang.String name, java.lang.String subject, java.lang.String body, boolean plainText, javax.mail.internet.MimeMessage message)
          Parse message to body and attached file,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailImportMessageStoreAdapter

public MailImportMessageStoreAdapter()
Method Detail

init

public boolean init()
Description copied from interface: Adapter
Initialize adapter. TrackStudio calls this method during startup.

Specified by:
init in interface Adapter
Returns:
true when adapter initialized, false otherwise.

getDescription

public java.lang.String getDescription()
Adapter's description

Specified by:
getDescription in interface Adapter
Returns:
adapter's description

process

public boolean process(java.lang.String taskid,
                       java.lang.String from,
                       java.lang.String name,
                       java.lang.String subject,
                       java.lang.String body,
                       boolean plainText,
                       javax.mail.internet.MimeMessage message)
                throws MailImportException
Parse message to body and attached file,

Parameters:
message - e-mail message
result - if true does nothing
Returns:
true if successful
Throws:
GranException
MailImportException


Copyright © 2002-2008 TrackStudio, Ltd. All Rights Reserved.