org.apache.jetspeed.modules.actions.portlets.email
Class Email

java.lang.Object
  extended byorg.apache.jetspeed.modules.actions.portlets.email.Email

public class Email
extends java.lang.Object


Constructor Summary
Email(java.lang.String user, java.lang.String pass, java.util.Hashtable param)
          Email Action
 
Method Summary
 java.util.Vector allFolders()
           
 void authenticateUser(java.lang.String user, java.lang.String pass)
           
 boolean checkAttachment(javax.mail.Message message)
           
 void checkboxDelete(java.lang.String[] checkboxes)
           
 void checkboxDelete(java.lang.String foldername, java.lang.String[] checkboxes, java.lang.String protocol)
           
 int checkNewmessage(javax.mail.Message message)
           
 void checkRecipients(java.lang.String addressTo, javax.mail.Message message)
           
 void close()
           
 void close(javax.mail.Folder foldername)
           
 void contentDelete(int current_index)
           
 void contentDelete(int current_index, java.lang.String foldername, java.lang.String protocol)
           
 java.lang.String convertMessage(java.lang.String msg)
           
 void deleteUploadedfile(org.apache.turbine.util.upload.FileItem file)
           
 void doCreatefolder(java.lang.String folder_name)
           
 void doSendEmail(java.lang.String addressTo, java.lang.String addressFrom, java.lang.String subject, java.lang.String msg, org.apache.turbine.util.upload.FileItem file)
           
 void folderDelete(java.lang.String folder_name)
           
 void forward(java.lang.String to, java.lang.String from, java.lang.String subject, java.lang.String content, javax.mail.Message message)
           
 java.lang.String getAttachmentname(javax.mail.Message message)
           
 java.util.Vector getAttachments(javax.mail.Message message)
           
 java.lang.String getAttachmentsFolder()
           
 javax.mail.Folder getFolder(java.lang.String folder_name)
           
 java.lang.String getFrom(javax.mail.Message message)
           
 javax.mail.Message getMessage(int current_index)
           
 javax.mail.Message getMessage(int current_index, java.lang.String foldername)
           
 java.lang.String getMessageContent(javax.mail.Message message)
           
 java.lang.String getMessageId(javax.mail.Message message)
           
 int getNo_of_messages()
           
 java.lang.String getReceivedDate(javax.mail.Message message)
           
 java.lang.String getSubject(javax.mail.Message message)
           
 java.util.Vector getTo(javax.mail.Message message)
           
 void moveMessage(java.lang.String fromFolder, java.lang.String toFolder, int current_index)
           
 void moveMessage(java.lang.String fromFolder, java.lang.String toFolder, java.lang.String[] checkboxes)
           
 int num_Newmessages()
           
 java.util.Vector openInbox(java.lang.String protocol)
           
 java.util.Vector openMyfolder(java.lang.String foldername, java.lang.String protocol)
           
 void reply(java.lang.String from, java.lang.String addressTo, java.lang.String msgecontent, java.lang.String subject, org.apache.turbine.util.upload.FileItem file, javax.mail.Message msge)
           
 void sendAttachment(javax.mail.Message message, org.apache.turbine.util.upload.FileItem file, java.lang.String msg)
           
 void storeClose()
           
 void uploadAttachment(org.apache.turbine.util.upload.FileItem fileItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Email

public Email(java.lang.String user,
             java.lang.String pass,
             java.util.Hashtable param)
      throws javax.mail.AuthenticationFailedException,
             javax.mail.NoSuchProviderException,
             java.lang.Exception
Email Action

Method Detail

authenticateUser

public void authenticateUser(java.lang.String user,
                             java.lang.String pass)
                      throws javax.mail.AuthenticationFailedException,
                             javax.mail.NoSuchProviderException,
                             java.lang.Exception
Throws:
javax.mail.AuthenticationFailedException
javax.mail.NoSuchProviderException
java.lang.Exception

doSendEmail

public void doSendEmail(java.lang.String addressTo,
                        java.lang.String addressFrom,
                        java.lang.String subject,
                        java.lang.String msg,
                        org.apache.turbine.util.upload.FileItem file)
                 throws java.lang.Exception
Throws:
java.lang.Exception

uploadAttachment

public void uploadAttachment(org.apache.turbine.util.upload.FileItem fileItem)
                      throws java.lang.Exception
Throws:
java.lang.Exception

deleteUploadedfile

public void deleteUploadedfile(org.apache.turbine.util.upload.FileItem file)
                        throws java.lang.Exception
Throws:
java.lang.Exception

checkRecipients

public void checkRecipients(java.lang.String addressTo,
                            javax.mail.Message message)
                     throws java.lang.Exception
Throws:
java.lang.Exception

sendAttachment

public void sendAttachment(javax.mail.Message message,
                           org.apache.turbine.util.upload.FileItem file,
                           java.lang.String msg)
                    throws java.lang.Exception
Throws:
java.lang.Exception

reply

public void reply(java.lang.String from,
                  java.lang.String addressTo,
                  java.lang.String msgecontent,
                  java.lang.String subject,
                  org.apache.turbine.util.upload.FileItem file,
                  javax.mail.Message msge)
           throws java.lang.Exception
Throws:
java.lang.Exception

forward

public void forward(java.lang.String to,
                    java.lang.String from,
                    java.lang.String subject,
                    java.lang.String content,
                    javax.mail.Message message)
             throws java.lang.Exception
Throws:
java.lang.Exception

contentDelete

public void contentDelete(int current_index)
                   throws java.lang.Exception
Throws:
java.lang.Exception

contentDelete

public void contentDelete(int current_index,
                          java.lang.String foldername,
                          java.lang.String protocol)
                   throws java.lang.Exception
Throws:
java.lang.Exception

checkboxDelete

public void checkboxDelete(java.lang.String foldername,
                           java.lang.String[] checkboxes,
                           java.lang.String protocol)
                    throws java.lang.Exception
Throws:
java.lang.Exception

checkboxDelete

public void checkboxDelete(java.lang.String[] checkboxes)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getNo_of_messages

public int getNo_of_messages()
                      throws java.lang.Exception
Throws:
java.lang.Exception

num_Newmessages

public int num_Newmessages()
                    throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close()
           throws java.lang.Exception
Throws:
java.lang.Exception

storeClose

public void storeClose()
                throws java.lang.Exception
Throws:
java.lang.Exception

close

public void close(javax.mail.Folder foldername)
           throws java.lang.Exception
Throws:
java.lang.Exception

openInbox

public java.util.Vector openInbox(java.lang.String protocol)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getMessage

public javax.mail.Message getMessage(int current_index)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getMessage

public javax.mail.Message getMessage(int current_index,
                                     java.lang.String foldername)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getSubject

public java.lang.String getSubject(javax.mail.Message message)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getFrom

public java.lang.String getFrom(javax.mail.Message message)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getReceivedDate

public java.lang.String getReceivedDate(javax.mail.Message message)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getTo

public java.util.Vector getTo(javax.mail.Message message)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getMessageContent

public java.lang.String getMessageContent(javax.mail.Message message)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getAttachmentname

public java.lang.String getAttachmentname(javax.mail.Message message)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getAttachments

public java.util.Vector getAttachments(javax.mail.Message message)
                                throws java.lang.Exception
Throws:
java.lang.Exception

checkAttachment

public boolean checkAttachment(javax.mail.Message message)
                        throws java.lang.Exception
Throws:
java.lang.Exception

checkNewmessage

public int checkNewmessage(javax.mail.Message message)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getMessageId

public java.lang.String getMessageId(javax.mail.Message message)

convertMessage

public java.lang.String convertMessage(java.lang.String msg)
                                throws java.lang.Exception
Throws:
java.lang.Exception

doCreatefolder

public void doCreatefolder(java.lang.String folder_name)
                    throws java.lang.Exception
Throws:
java.lang.Exception

allFolders

public java.util.Vector allFolders()

moveMessage

public void moveMessage(java.lang.String fromFolder,
                        java.lang.String toFolder,
                        java.lang.String[] checkboxes)

moveMessage

public void moveMessage(java.lang.String fromFolder,
                        java.lang.String toFolder,
                        int current_index)

openMyfolder

public java.util.Vector openMyfolder(java.lang.String foldername,
                                     java.lang.String protocol)
                              throws java.lang.Exception
Throws:
java.lang.Exception

folderDelete

public void folderDelete(java.lang.String folder_name)

getFolder

public javax.mail.Folder getFolder(java.lang.String folder_name)

getAttachmentsFolder

public java.lang.String getAttachmentsFolder()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.