|
Oracle® Mail Java API Reference 10g Release 1 (10.1.1) B14492-01 |
||||||
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 | +--oracle.mail.sdk.esmail.OracleSharedFolder
This class implements an Oracle Shared folder. Shared folder functionality is an extension to the standard Javamail functionality and is based on the RFC 2086 IMAP4 ACL extension. All shared folders are owned by a user. Only the owner can delete and rename shared folders. Only an owner can add and remove acis for a shared folder. The list acl - l is implied with other acls. For increased usability and compatibility with v1, list aci is implicit.
Inner classes inherited from class oracle.mail.sdk.esmail.OracleFolder |
OracleFolder.OracleFlag |
Fields inherited from class javax.mail.Folder |
HOLDS_FOLDERS, HOLDS_MESSAGES, READ_ONLY, READ_WRITE |
Method Summary | |
void |
_setFlags(int[] msgnums, int len, javax.mail.Flags flag, boolean value) Set flags only when SETSEENFLAG or SETALLFLAGS acis are present. |
void |
appendMessages(javax.mail.Message[] msgs) appendMessages - append only if shared folder writable |
void |
copyMessages(javax.mail.Message[] msgs, javax.mail.Folder folder) Copy messages only when COPYFROM aci is present. |
boolean |
create(int type) Create - override the create method in the OracleFolder class. |
boolean |
delete(boolean recurse) Delete this folder. |
boolean |
exists() Check if this folder exists in the database |
javax.mail.Message[] |
expunge() Expunge permitted only if allowed i.e., shared folder is writable. |
void |
fetch(javax.mail.Message[] msgs, javax.mail.FetchProfile fp) Get the messages if FETCH aci is present. |
javax.mail.Message |
getMessage(int msgnum) Get the message if FETCH aci is present. |
java.lang.String |
getNamespace() Retrieve shared namespace. |
javax.mail.Folder |
getParent() Return the parent of this folder as an instance of OracleSharedFolder. |
boolean |
hasDigitPermission(int aDigit) Check if shared folder has digit permissions. |
boolean |
hasRead() Check if shared folder has read permissions. |
boolean |
hasWrite() Check if shared folder has write permissions. |
boolean |
isSubscribed() Check if the shared folder is subscribed. |
javax.mail.Folder[] |
list(java.lang.String pattern) List subtree of shared folders using *(recursive) or %(top level) |
javax.mail.Folder[] |
listSubscribed(java.lang.String pattern) List subtree of subscribed shared folders using *(recursive) or %(top level) |
void |
moveMessages(javax.mail.Message[] msgs, javax.mail.Folder folder) Checks for permissions and moves messages to/from shared folders. |
void |
open(int mode) Open -- Get folder information and then get all the messages in the folder... |
boolean |
renameTo(javax.mail.Folder f) Rename this folder; notify the RenameListeners |
javax.mail.Message[] |
search(javax.mail.search.SearchTerm term) Search on the messages is permitted only if SEARCH aci is present. |
void |
setFlags(int[] msgnums, javax.mail.Flags flag, boolean value) Set flags only when SETSEENFLAG or SETALLFLAGS acis are present. |
void |
setFlags(int start, int end, javax.mail.Flags flag, boolean value) Set flags only when SETSEENFLAG or SETALLFLAGS acis are present. |
void |
setFlags(javax.mail.Message[] msgs, javax.mail.Flags flag, boolean value) Set flags only when SETSEENFLAG or SETALLFLAGS acis are present. |
void |
setSubscribed(boolean subscribe) Check the shared folder to be subscribed. |
Methods inherited from class oracle.mail.sdk.esmail.OracleFolder |
_doSearch, addACI, addACI, addACI, addACI, addACI, addACI, appendMessages, appendMessages, close, convertFlag, convertFlag, convertUsrFlag, getCounts, getFilteredHeaders, getFolder, getFolderExpiry, getFolderId, getFolderSize, getFolderSize, getFullName, getFullPath, getGranteeACI, getMessageByType, getMessageByUID, getMessageCount, getMessagesByUID, getMessagesByUID, getName, getNewMessageCount, getPermanentFlags, getSeparator, getType, getUID, getUIDValidity, getUnreadMessageCount, getURLName, hasNewMessages, isInheritedACI, isOpen, isShared, modifyACI, modifyACI, openInternal, removeACI, removeACI, removeACI, removeACI, search, setFolderExpiry, sortMessages |
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 boolean delete(boolean recurse) throws javax.mail.MessagingException
Delete this folder. If recurse is true, delete all the sub-folders as well. Notify listeners of the DELETE event.
public boolean create(int type) throws javax.mail.MessagingException
Create - override the create method in the OracleFolder class.
public void appendMessages(javax.mail.Message[] msgs) throws javax.mail.MessagingException
appendMessages - append only if shared folder writable
msgs
- Message objects to append into this folderpublic void open(int mode) throws javax.mail.MessagingException
public javax.mail.Message[] expunge() throws javax.mail.MessagingException
public boolean renameTo(javax.mail.Folder f) throws javax.mail.MessagingException
public boolean exists() throws javax.mail.MessagingException
public javax.mail.Message getMessage(int msgnum) throws javax.mail.MessagingException
public void fetch(javax.mail.Message[] msgs, javax.mail.FetchProfile fp) throws javax.mail.MessagingException
public javax.mail.Message[] search(javax.mail.search.SearchTerm term) throws javax.mail.MessagingException
public void setFlags(int[] msgnums, javax.mail.Flags flag, boolean value) throws javax.mail.MessagingException
public void _setFlags(int[] msgnums, int len, javax.mail.Flags flag, boolean value) throws javax.mail.MessagingException
public void setFlags(javax.mail.Message[] msgs, javax.mail.Flags flag, boolean value) throws javax.mail.MessagingException
public void setFlags(int start, int end, javax.mail.Flags flag, boolean value) throws javax.mail.MessagingException
public void copyMessages(javax.mail.Message[] msgs, javax.mail.Folder folder) throws javax.mail.MessagingException
public javax.mail.Folder getParent() throws javax.mail.MessagingException
public boolean isSubscribed()
public void setSubscribed(boolean subscribe) throws javax.mail.MessagingException
public javax.mail.Folder[] listSubscribed(java.lang.String pattern) throws javax.mail.MessagingException
public javax.mail.Folder[] list(java.lang.String pattern) throws javax.mail.MessagingException
public boolean hasRead()
public boolean hasWrite()
public boolean hasDigitPermission(int aDigit) throws javax.mail.MessagingException
int
- permission to check forpublic java.lang.String getNamespace()
public void moveMessages(javax.mail.Message[] msgs, javax.mail.Folder folder) throws javax.mail.MessagingException
Checks for permissions and moves messages to/from shared folders. You must have read, delete and expunge permissions on the from shared folder. You must have insert permission on the to folder.
|
Oracle® Mail Java API Reference 10g Release 1 (10.1.1) B14492-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |