Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

oracle.mail.sdk.esmail
Class OracleUtility

java.lang.Object
  |
  +--oracle.mail.sdk.esmail.OracleUtility

public class OracleUtility
extends java.lang.Object

An utility class that provides a number of mail utility functionality, such as portlet functionality and auth send

Since:
06/25/2002
Version:
1.0

Constructor Summary
OracleUtility()
           

 

Method Summary
static void auth_sendMessage(oracle.mail.sdk.esmail.Store store, javax.mail.Message message)
           
static void auth_sendMessage(oracle.mail.sdk.esmail.Store store, javax.mail.Message message, oracle.mail.sdk.esmail.Address[] addresses)
           
static java.lang.String convertACL(java.lang.String aACLString)
          Convert V1 style ACLs to V2 style.
static int[] getInboxCounts(java.lang.String aUsername, oracle.mail.DBConnectInfo aConnectInfo)
           
static javax.mail.search.SearchTerm parse(java.lang.String command)
          Utility method to parse an IMAP search command string and return a SearchTerm object.
static java.lang.String serialize(javax.mail.search.SearchTerm st)
          Convert a SearchTerm object into IMAP style search command

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

OracleUtility

public OracleUtility()
Method Detail

auth_sendMessage

public static void auth_sendMessage(oracle.mail.sdk.esmail.Store store,
                                    javax.mail.Message message)
                             throws oracle.mail.sdk.esmail.MessagingException

auth_sendMessage

public static void auth_sendMessage(oracle.mail.sdk.esmail.Store store,
                                    javax.mail.Message message,
                                    oracle.mail.sdk.esmail.Address[] addresses)
                             throws oracle.mail.sdk.esmail.MessagingException

getInboxCounts

public static int[] getInboxCounts(java.lang.String aUsername,
                                   oracle.mail.DBConnectInfo aConnectInfo)

parse

public static javax.mail.search.SearchTerm parse(java.lang.String command)
                                          throws java.lang.Exception
Utility method to parse an IMAP search command string and return a SearchTerm object.
Parameters:
command - The IMAP search command
Returns:
The SearchTerm object representing the command

serialize

public static java.lang.String serialize(javax.mail.search.SearchTerm st)
                                  throws oracle.mail.sdk.esmail.MessagingException,
                                         java.io.IOException
Convert a SearchTerm object into IMAP style search command
Parameters:
st - The SearchTerm object to be serialized
Returns:
The IMAP search string corresponding to the SearchTerm object

convertACL

public static java.lang.String convertACL(java.lang.String aACLString)
Convert V1 style ACLs to V2 style.

In OCS v1, no grouping of acis was done. The only supported acis were i(write) and r(read). If you had r, you also got the privilige to list(l) and set seen flag(s). If you had i, you also got the privilige to set other flags(w), list(l) and delete/expunge(d). This method takes in a V1 style acl string and returns a V2 style ACL string.



Parameters:
aACLString - V1-style ACL string
Returns:
String Corresponding V2-style ACL string

Oracle Email Java API Reference
Release 2(9.0.4)

B10724-01

Copyright © 1988, 2003 Oracle Corporation. All Rights Reserved.