com.trackstudio.app.adapter.store
Class BaseStoreAdapter

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

public class BaseStoreAdapter
extends java.lang.Object
implements StoreAdapter

Email Submission Adapter


Constructor Summary
BaseStoreAdapter()
           
 
Method Summary
 java.lang.String getDescription()
          Adapter's description
 boolean init()
          Initialize adapter.
 boolean process(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

BaseStoreAdapter

public BaseStoreAdapter()
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 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 - message to be parsed
result - if true message will be skipped
Returns:
true if message has been processed
Throws:
GranException
MailImportException


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