Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-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

Constructor Summary
OracleUtility()

Method Summary
static void auth_sendMessage(javax.mail.Store store, javax.mail.Message message)
static void auth_sendMessage(javax.mail.Store store, javax.mail.Message message, javax.mail.Address[] addresses)
static java.lang.String combineACL(java.lang.String oldACL, java.lang.String newACL, boolean combine)
static java.lang.String convertACL(java.lang.String aACLString)
Convert V1 style ACLs to V2 style.
static java.sql.Timestamp convertFromGMT(java.sql.Timestamp dateIn)
This utility method converts a timestamp from GMT to the local timezone.
static java.sql.Timestamp convertToGMT(java.sql.Timestamp dateIn)
This utility method converts a timestamp to GMT.
static java.lang.String getBaseSubject(java.lang.String sbj)
Returns the normalized version of a subject using the base subject rules described in IMAP sort and thread extensions.
static int[] getInboxCounts(java.lang.String aUsername, 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(javax.mail.Store store,
                                    javax.mail.Message message)
                             throws javax.mail.MessagingException

auth_sendMessage

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

getInboxCounts

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

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 javax.mail.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

convertFromGMT

public static java.sql.Timestamp convertFromGMT(java.sql.Timestamp dateIn)

This utility method converts a timestamp from GMT to the local timezone.


Parameters:
Timestamp - date to be converted from GMT to local TZ
Returns:
Timestamp converted representation

convertToGMT

public static java.sql.Timestamp convertToGMT(java.sql.Timestamp dateIn)

This utility method converts a timestamp to GMT.


Parameters:
Timestamp - date to be converted to GMT
Returns:
Timestamp converted GMT representation

getBaseSubject

public static java.lang.String getBaseSubject(java.lang.String sbj)
Returns the normalized version of a subject using the base subject rules described in IMAP sort and thread extensions.

combineACL

public static java.lang.String combineACL(java.lang.String oldACL,
                                          java.lang.String newACL,
                                          boolean combine)

Oracle® Mail Java API Reference
10g Release 1 (10.1.1)

B14492-01

Copyright © 1988, 2005, Oracle. All rights reserved.