|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.imap.ImapServiceImpl
public class ImapServiceImpl
| Nested Class Summary | |
|---|---|
static class |
ImapServiceImpl.ImapServiceBootstrap
Bootstrap initialization bean for the service implementation. |
| Constructor Summary | |
|---|---|
ImapServiceImpl()
|
|
| Method Summary | |
|---|---|
AlfrescoImapFolder |
createMailbox(AlfrescoImapUser user,
java.lang.String mailboxName)
Returns a reference to a newly created mailbox. |
void |
deleteMailbox(AlfrescoImapUser user,
java.lang.String mailboxName)
Deletes an existing MailBox. |
java.lang.String |
getAlfrescoServerUID()
This method should returns a unique identifier of Alfresco server. |
java.lang.String |
getDefaultFromAddress()
|
FileFolderService |
getFileFolderService()
|
javax.mail.Flags |
getFlags(FileInfo messageInfo)
Return flags that belong to the specified imap folder. |
AlfrescoImapFolder |
getFolder(AlfrescoImapUser user,
java.lang.String mailboxName)
Returns a reference to an existing Mailbox. |
NodeRef |
getMailboxRootRef(java.lang.String mailboxName,
java.lang.String userName)
Get root reference for the specified mailbox |
NodeService |
getNodeService()
|
java.lang.String |
getRepositoryTemplatePath()
|
ServiceRegistry |
getServiceRegistry()
|
java.lang.String |
getWebApplicationContextUrl()
|
void |
init()
|
java.util.List |
listMailboxes(AlfrescoImapUser user,
java.lang.String mailboxPattern)
Returns an collection of mailboxes. |
java.util.List |
listSubscribedMailboxes(AlfrescoImapUser user,
java.lang.String mailboxPattern)
Returns an collection of subscribed mailboxes. |
void |
renameMailbox(AlfrescoImapUser user,
java.lang.String oldMailboxName,
java.lang.String newMailboxName)
Renames an existing mailbox. |
java.util.List |
searchFiles(NodeRef contextNodeRef,
java.lang.String namePattern,
boolean includeSubFolders)
Search for files in specified context |
java.util.List |
searchFolders(NodeRef contextNodeRef,
java.lang.String namePattern,
boolean includeSubFolders,
AlfrescoImapConst.ImapViewMode viewMode)
Search for mailboxes in specified context |
java.util.List |
searchMails(NodeRef contextNodeRef,
java.lang.String namePattern,
AlfrescoImapConst.ImapViewMode viewMode,
boolean includeSubFolders)
Search for emails in specified folder depend on view mode. |
void |
setDefaultFromAddress(java.lang.String defaultFromAddress)
|
void |
setExtractAttachmentsEnabled(boolean extractAttachmentsEnabled)
|
void |
setFileFolderService(FileFolderService fileFolderService)
|
void |
setFlag(FileInfo messageInfo,
javax.mail.Flags.Flag flag,
boolean value)
Set flags to the specified imapFolder. |
void |
setFlags(FileInfo messageInfo,
javax.mail.Flags flags,
boolean value)
Set flags to the specified imapFolder. |
void |
setIgnoreExtractionFolders(RepositoryFolderConfigBean[] ignoreExtractionFolders)
|
void |
setImapConfigMountPoints(ImapConfigMountPointsBean[] imapConfigMountPointsBeans)
|
void |
setImapHome(RepositoryFolderConfigBean imapHomeConfigBean)
|
void |
setNodeService(NodeService nodeService)
|
void |
setRepositoryTemplatePath(java.lang.String repositoryTemplatePath)
|
void |
setServiceRegistry(ServiceRegistry serviceRegistry)
|
void |
setSysAdminParams(SysAdminParams sysAdminParams)
|
void |
shutdown()
|
void |
startup()
|
void |
subscribe(AlfrescoImapUser user,
java.lang.String mailbox)
Subscribes a user to a mailbox. |
void |
unsubscribe(AlfrescoImapUser user,
java.lang.String mailbox)
Unsubscribes from a given mailbox. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImapServiceImpl()
| Method Detail |
|---|
public void setSysAdminParams(SysAdminParams sysAdminParams)
public FileFolderService getFileFolderService()
public void setFileFolderService(FileFolderService fileFolderService)
public NodeService getNodeService()
public void setNodeService(NodeService nodeService)
public ServiceRegistry getServiceRegistry()
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setImapHome(RepositoryFolderConfigBean imapHomeConfigBean)
public java.lang.String getDefaultFromAddress()
getDefaultFromAddress in interface ImapServicepublic void setDefaultFromAddress(java.lang.String defaultFromAddress)
public java.lang.String getWebApplicationContextUrl()
getWebApplicationContextUrl in interface ImapServicepublic java.lang.String getRepositoryTemplatePath()
getRepositoryTemplatePath in interface ImapServicepublic void setRepositoryTemplatePath(java.lang.String repositoryTemplatePath)
public void setImapConfigMountPoints(ImapConfigMountPointsBean[] imapConfigMountPointsBeans)
public void setIgnoreExtractionFolders(RepositoryFolderConfigBean[] ignoreExtractionFolders)
public void setExtractAttachmentsEnabled(boolean extractAttachmentsEnabled)
public void init()
public void startup()
public void shutdown()
public java.util.List listSubscribedMailboxes(AlfrescoImapUser user,
java.lang.String mailboxPattern)
ImapService
listSubscribedMailboxes in interface ImapServiceuser - User making the requestmailboxPattern - String name of a mailbox possible including a wildcard.
public java.util.List listMailboxes(AlfrescoImapUser user,
java.lang.String mailboxPattern)
ImapService
listMailboxes in interface ImapServiceuser - User making the requestmailboxPattern - String name of a mailbox possible including a wildcard.
public AlfrescoImapFolder createMailbox(AlfrescoImapUser user,
java.lang.String mailboxName)
ImapService
createMailbox in interface ImapServiceuser - User making the request.mailboxName - String name of the target
public void deleteMailbox(AlfrescoImapUser user,
java.lang.String mailboxName)
ImapService
deleteMailbox in interface ImapServiceuser - User making the request.mailboxName - String name of the target
public void renameMailbox(AlfrescoImapUser user,
java.lang.String oldMailboxName,
java.lang.String newMailboxName)
ImapService
renameMailbox in interface ImapServiceuser - User making the request.oldMailboxName - String name of the existing foldernewMailboxName - String target new name
public AlfrescoImapFolder getFolder(AlfrescoImapUser user,
java.lang.String mailboxName)
ImapService
getFolder in interface ImapServiceuser - User making the request.mailboxName - String name of the target.
public java.util.List searchFolders(NodeRef contextNodeRef,
java.lang.String namePattern,
boolean includeSubFolders,
AlfrescoImapConst.ImapViewMode viewMode)
searchFolders in interface ImapServicecontextNodeRef - context folder for searchnamePattern - name pattern for searchincludeSubFolders - include SubFoldersisVirtualView - is folder in "Virtual" View
public java.util.List searchFiles(NodeRef contextNodeRef,
java.lang.String namePattern,
boolean includeSubFolders)
searchFiles in interface ImapServicecontextNodeRef - context folder for searchnamePattern - name pattern for searchsearchType - type for searchincludeSubFolders - include SubFolders
public java.util.List searchMails(NodeRef contextNodeRef,
java.lang.String namePattern,
AlfrescoImapConst.ImapViewMode viewMode,
boolean includeSubFolders)
searchMails in interface ImapServicecontextNodeRef - context folder for searchnamePattern - name pattern for searchviewMode - context folder view modeincludeSubFolders - includeSubFolders
public void subscribe(AlfrescoImapUser user,
java.lang.String mailbox)
ImapService
subscribe in interface ImapServiceuser - User making the requestmailbox - String representation of a mailbox name.
public void unsubscribe(AlfrescoImapUser user,
java.lang.String mailbox)
ImapService
unsubscribe in interface ImapServiceuser - User making the requestmailbox - String representation of a mailbox name.public javax.mail.Flags getFlags(FileInfo messageInfo)
getFlags in interface ImapServicemessageInfo - imap folder info.
public void setFlags(FileInfo messageInfo,
javax.mail.Flags flags,
boolean value)
setFlags in interface ImapServicemessageInfo - FileInfo of imap Folder.flags - flags to set.value - value to set.
public void setFlag(FileInfo messageInfo,
javax.mail.Flags.Flag flag,
boolean value)
setFlag in interface ImapServicemessageInfo - FileInfo of imap Folderflag - flag to set.value - value value to set.
public NodeRef getMailboxRootRef(java.lang.String mailboxName,
java.lang.String userName)
getMailboxRootRef in interface ImapServicemailboxName - mailbox name in IMAP client.userName -
public java.lang.String getAlfrescoServerUID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||