|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.mail.Folder | +--oracle.mail.sdk.esmail.OracleFolder
This class implements an Oracle folder.
When a folder is opened, a messageCache (Vector) and an uidMap (Hashtable) will be created. The messageCache contains a list of Message objects with only a small set of information filled in. The uidMap provides a quick access to Message object using message uid.
When information is needed from the store, a database connection is retrieved from the database pool (OracleDBPool) and then released back to the pool when the operation is complete.
NOTE: ...
Inner classes inherited from class javax.mail.UIDFolder |
javax.mail.UIDFolder.FetchProfileItem |
Fields inherited from class javax.mail.Folder |
HOLDS_FOLDERS, HOLDS_MESSAGES, READ_ONLY, READ_WRITE |
Fields inherited from interface javax.mail.UIDFolder |
LASTUID |
Method Summary | |
void |
addACI(java.lang.String aUser, java.lang.String aAci) addACI method takes in a user_address, aci string and calls ldap api to set the aci for the user User type defaults to mailuser(ESDSConstants.DS_MAILUSER) |
void |
addACI(java.lang.String aUserType, java.lang.String aUser, java.lang.String aAci) addACI method takes in a user type, user_address, aci string and calls ldap api to set the aci for the user |
void |
appendMessages(javax.mail.Message[] msgs) Append messages to this folder. |
void |
appendMessages(javax.mail.Message[] msgs, java.lang.String migrationID_header) Append messages to this folder. |
void |
close(boolean expunge) Close the folder; expunge if requested. |
void |
copyMessages(javax.mail.Message[] msgs, javax.mail.Folder folder) Copy the spcified messages from this folder, to the destination folder specified. |
boolean |
create(int type) If type doesn't have HOLDS_MESSAGES ==> /NOSELECT If type doesn't have HOLDS_FOLDER ==> /NOINFERIORS NOTE: The INBOX is case-sensitive, all caps. |
boolean |
delete(boolean recurse) Delete this folder. |
boolean |
exists() exists -- check if folder exists on store |
javax.mail.Message[] |
expunge() Expunge messages marked \DELETED. |
void |
fetch(javax.mail.Message[] msgs, javax.mail.FetchProfile fp) Prefetch the items specified in the FetchProfile for the given Messages. |
javax.mail.Folder |
getFolder(java.lang.String name) Returns the Folder object corresponding to the given name. |
long |
getFolderId() |
int |
getFolderSize() getFolderSize returns a the sum total of the sizes of all the messages in a folder. |
java.lang.String |
getFullName() Return current folder's fullName which DOES NOT contain the nameSpace |
java.lang.String |
getFullPath() OracleFolder specific methods go here |
java.util.Vector |
getGranteeACI() getGranteeACI returns a vector of OracleGranteeACI objects. |
javax.mail.Message |
getMessage(int msgnum) Get the Message object corresponding to the given message number. |
javax.mail.Message[] |
getMessageByType(int type) Get the Message object that corresponds to the given message type. |
javax.mail.Message |
getMessageByUID(long uid) Get the Message object that corresponds to the given message uid. |
int |
getMessageCount() Return total number of messages in folder. |
javax.mail.Message[] |
getMessagesByUID(long[] uids) Get the messages specified in the uids array. |
javax.mail.Message[] |
getMessagesByUID(long start, long end) Return the messages specified in the range (inclusively). |
java.lang.String |
getName() Return the cannonical name of the folder. |
int |
getNewMessageCount() Get the number of messages with \RECENT flag in this Folder. |
javax.mail.Folder |
getParent() Return a new Folder object that represent the parent of this folder. |
javax.mail.Flags |
getPermanentFlags() NOTE: returning a list of hard coded permanent flags |
char |
getSeparator() Return the folder delimiter character. |
int |
getType() Return the folder type which it HOLDS_FOLDER, HOLDS_MESSAGE. |
long |
getUID(javax.mail.Message message) Return the msg UID for the specified message |
long |
getUIDValidity() Return the folder uidvalidity info. |
int |
getUnreadMessageCount() Return the total number of unread messages in folder. |
javax.mail.URLName |
getURLName() Return the URLName reprensenting this folder |
boolean |
hasNewMessages() Check whether folder has message with \RECENT flag set. |
boolean |
isOpen() Return the opened flag |
boolean |
isShared() isShared checks if the folder is shared |
boolean |
isSubscribed() Return true if this Folder is subscribed |
javax.mail.Folder[] |
list(java.lang.String pattern) Return a list of folder objects that matches the pattern |
javax.mail.Folder[] |
listSubscribed(java.lang.String pattern) Return a list subscribed of folder objects that matches the pattern |
void |
modifyACI(java.lang.String aUser, java.lang.String aACI) modifyACI method takes in a user_address and aci string and calls ldap api to modify the aci for the user. |
void |
modifyACI(java.lang.String aUserType, java.lang.String aUser, java.lang.String aACI) modifyACI method takes in a user type, user_address and aci string and calls ldap api to modify the aci for the user |
void |
open(int mode) Open -- Get folder information and then get all the messages in the folder... |
void |
removeACI(java.lang.String aUser) removeACI method takes in a user_address and removes access for the user and calls ldap api to remove shared folder aci for the user. |
void |
removeACI(java.lang.String aUserType, java.lang.String aUser) removeACI method takes in a user type, user_address and removes access for the user and calls ldap api to remove shared folder aci for the user |
boolean |
renameTo(javax.mail.Folder f) Rename this folder; notify the RenameListeners |
javax.mail.Message[] |
search(javax.mail.search.SearchTerm term) Construct the IMAP4 search string and call PL/SQL search |
javax.mail.Message[] |
search(javax.mail.search.SearchTerm term, javax.mail.Message[] msgs) Construct the IMAP4 search string and call PL/SQL search |
void |
setFlags(int[] msgnums, javax.mail.Flags flag, boolean value) Set flags |
void |
setFlags(int start, int end, javax.mail.Flags flag, boolean value) Set flags |
void |
setFlags(javax.mail.Message[] msgs, javax.mail.Flags flag, boolean value) Set flags |
void |
setSubscribed(boolean subscribe) Subscribe or unsubscribe the folder |
long[] |
sortMessages(java.util.Vector aSortCriteriaVector) Sort the messages in the folder according to the specified order, returning a list of message uids. |
Methods inherited from class javax.mail.Folder |
addConnectionListener, addFolderListener, addMessageChangedListener, addMessageCountListener, getMessages, getMessages, getMessages, getMode, getStore, list, listSubscribed, removeConnectionListener, removeFolderListener, removeMessageChangedListener, removeMessageCountListener, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public void appendMessages(javax.mail.Message[] msgs) throws javax.mail.MessagingException
appendMessages
in class javax.mail.Folder
msgs
- Message objects to be append into this folderpublic void appendMessages(javax.mail.Message[] msgs, java.lang.String migrationID_header) throws javax.mail.MessagingException
msgs
- Message objects to be append into this foldermigrationID_header
- Message header where the migration ID is storepublic void close(boolean expunge) throws javax.mail.MessagingException
close
in class javax.mail.Folder
expunge
- Flag to indicate if expunge is requiredpublic void copyMessages(javax.mail.Message[] msgs, javax.mail.Folder folder) throws javax.mail.MessagingException
copyMessages
in class javax.mail.Folder
public boolean create(int type) throws javax.mail.MessagingException
create
in class javax.mail.Folder
public boolean delete(boolean recurse) throws javax.mail.MessagingException
delete
in class javax.mail.Folder
public boolean exists() throws javax.mail.MessagingException
exists
in class javax.mail.Folder
public javax.mail.Message[] expunge() throws javax.mail.MessagingException
expunge
in class javax.mail.Folder
public void fetch(javax.mail.Message[] msgs, javax.mail.FetchProfile fp) throws javax.mail.MessagingException
fetch
in class javax.mail.Folder
public javax.mail.Folder getFolder(java.lang.String name) throws javax.mail.MessagingException
getFolder
in class javax.mail.Folder
public java.lang.String getFullName()
getFullName
in class javax.mail.Folder
public javax.mail.Message getMessage(int msgnum) throws javax.mail.MessagingException
getMessage
in class javax.mail.Folder
public int getMessageCount() throws javax.mail.MessagingException
getMessageCount
in class javax.mail.Folder
public java.lang.String getName()
getName
in class javax.mail.Folder
public int getNewMessageCount() throws javax.mail.MessagingException
getNewMessageCount
in class javax.mail.Folder
public javax.mail.Folder getParent() throws javax.mail.MessagingException
getParent
in class javax.mail.Folder
public javax.mail.Flags getPermanentFlags()
getPermanentFlags
in class javax.mail.Folder
public char getSeparator()
getSeparator
in class javax.mail.Folder
public int getType() throws javax.mail.MessagingException
getType
in class javax.mail.Folder
public int getUnreadMessageCount() throws javax.mail.MessagingException
getUnreadMessageCount
in class javax.mail.Folder
public javax.mail.URLName getURLName() throws javax.mail.MessagingException
getURLName
in class javax.mail.Folder
public boolean hasNewMessages() throws javax.mail.MessagingException
hasNewMessages
in class javax.mail.Folder
public boolean isOpen()
isOpen
in class javax.mail.Folder
public boolean isSubscribed()
isSubscribed
in class javax.mail.Folder
public javax.mail.Folder[] list(java.lang.String pattern) throws javax.mail.MessagingException
list
in class javax.mail.Folder
public javax.mail.Folder[] listSubscribed(java.lang.String pattern) throws javax.mail.MessagingException
listSubscribed
in class javax.mail.Folder
public void open(int mode) throws javax.mail.MessagingException
open
in class javax.mail.Folder
public boolean renameTo(javax.mail.Folder f) throws javax.mail.MessagingException
renameTo
in class javax.mail.Folder
public javax.mail.Message[] search(javax.mail.search.SearchTerm term) throws javax.mail.MessagingException
search
in class javax.mail.Folder
public javax.mail.Message[] search(javax.mail.search.SearchTerm term, javax.mail.Message[] msgs) throws javax.mail.MessagingException
search
in class javax.mail.Folder
public void setFlags(int[] msgnums, javax.mail.Flags flag, boolean value) throws javax.mail.MessagingException
setFlags
in class javax.mail.Folder
public void setFlags(int start, int end, javax.mail.Flags flag, boolean value) throws javax.mail.MessagingException
setFlags
in class javax.mail.Folder
public void setFlags(javax.mail.Message[] msgs, javax.mail.Flags flag, boolean value) throws javax.mail.MessagingException
setFlags
in class javax.mail.Folder
public void setSubscribed(boolean subscribe) throws javax.mail.MessagingException
setSubscribed
in class javax.mail.Folder
public javax.mail.Message getMessageByUID(long uid) throws javax.mail.MessagingException
getMessageByUID
in interface javax.mail.UIDFolder
public javax.mail.Message[] getMessagesByUID(long[] uids) throws javax.mail.MessagingException
getMessagesByUID
in interface javax.mail.UIDFolder
public javax.mail.Message[] getMessagesByUID(long start, long end) throws javax.mail.MessagingException
getMessagesByUID
in interface javax.mail.UIDFolder
public long getUID(javax.mail.Message message) throws javax.mail.MessagingException
getUID
in interface javax.mail.UIDFolder
public long getUIDValidity() throws javax.mail.MessagingException
getUIDValidity
in interface javax.mail.UIDFolder
public java.lang.String getFullPath()
public long getFolderId() throws javax.mail.MessagingException
public void addACI(java.lang.String aUser, java.lang.String aAci) throws javax.mail.MessagingException
aUser
- user, dl, domain, etc to be granted access to shared folderaAci
- user's acijavax.mail.MessagingException
- IOExceptionpublic void addACI(java.lang.String aUserType, java.lang.String aUser, java.lang.String aAci) throws javax.mail.MessagingException
aUserType
- user - ESDSConstants.DS_MAILUSER, dl - ESDSConstants.DS_DISTRIBUTION_LIST, domain - ESDSConstants.DS_DOMAINaUser
- user, dl, domain, etc to be granted access to shared folderaAci
- user's acijavax.mail.MessagingException
- IOExceptionpublic void removeACI(java.lang.String aUser) throws javax.mail.MessagingException
aUser
- user, dl, domain, etc to be granted access to shared folderjavax.mail.MessagingException
- public void removeACI(java.lang.String aUserType, java.lang.String aUser) throws javax.mail.MessagingException
aUserType
- user - ESDSConstants.DS_MAILUSER, dl - ESDSConstants.DS_DISTRIBUTION_LIST, domain - ESDSConstants.DS_DOMAINaUser
- user, dl, domain, etc to be granted access to shared folderjavax.mail.MessagingException
- public void modifyACI(java.lang.String aUser, java.lang.String aACI) throws javax.mail.MessagingException
aUser
- user, dl, domain, etc to be granted access to shared folderaACI
- new aci for the userjavax.mail.MessagingException
- public void modifyACI(java.lang.String aUserType, java.lang.String aUser, java.lang.String aACI) throws javax.mail.MessagingException
aUserType
- user - ESDSConstants.DS_MAILUSER, dl - ESDSConstants.DS_DISTRIBUTION_LIST, domain - ESDSConstants.DS_DOMAINaUser
- user, dl, domain, etc to be granted access to shared folderaACI
- new aci for the userjavax.mail.MessagingException
- public java.util.Vector getGranteeACI() throws javax.mail.MessagingException
getGranteeACI returns a vector of OracleGranteeACI objects. The complete list of grantee aci(s) on shared folders can be obtained by using the OracleGranteeACI objects.
javax.mail.MessagingException
- public boolean isShared() throws javax.mail.MessagingException
public int getFolderSize() throws javax.mail.MessagingException
public long[] sortMessages(java.util.Vector aSortCriteriaVector)
aSortCriteriaVector
- Construct a vector with all the sort criteriapublic javax.mail.Message[] getMessageByType(int type) throws javax.mail.MessagingException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |