|
|||||||||
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. |
Nested classes/interfaces inherited from interface org.alfresco.repo.imap.ImapService |
---|
ImapService.EmailBodyType |
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 |
getDefaultEmailBodyTemplate(ImapService.EmailBodyType type)
Returns a template for email body. |
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)
Get Folder |
org.alfresco.service.cmr.repository.NodeRef |
getMailboxRootRef(java.lang.String mailboxName,
java.lang.String userName)
Get root reference for the specified mailbox |
org.alfresco.service.cmr.repository.NodeService |
getNodeService()
|
org.alfresco.service.cmr.security.PermissionService |
getPermissionService()
|
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 |
searchMails(org.alfresco.service.cmr.repository.NodeRef contextNodeRef,
AlfrescoImapConst.ImapViewMode viewMode)
Search for emails in specified folder depending 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(org.alfresco.service.cmr.repository.NodeService nodeService)
|
void |
setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
|
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 org.alfresco.service.cmr.repository.NodeService getNodeService()
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public org.alfresco.service.cmr.security.PermissionService getPermissionService()
public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
public ServiceRegistry getServiceRegistry()
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setImapHome(RepositoryFolderConfigBean imapHomeConfigBean)
public java.lang.String getDefaultFromAddress()
getDefaultFromAddress
in interface ImapService
public void setDefaultFromAddress(java.lang.String defaultFromAddress)
public java.lang.String getWebApplicationContextUrl()
getWebApplicationContextUrl
in interface ImapService
public java.lang.String getRepositoryTemplatePath()
getRepositoryTemplatePath
in interface ImapService
public 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 ImapService
user
- 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 ImapService
user
- 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 ImapService
user
- User making the request.mailboxName
- String name of the target
public void deleteMailbox(AlfrescoImapUser user, java.lang.String mailboxName)
ImapService
deleteMailbox
in interface ImapService
user
- User making the request.mailboxName
- String name of the targetpublic void renameMailbox(AlfrescoImapUser user, java.lang.String oldMailboxName, java.lang.String newMailboxName)
ImapService
renameMailbox
in interface ImapService
user
- User making the request.oldMailboxName
- String name of the existing foldernewMailboxName
- String target new namepublic AlfrescoImapFolder getFolder(AlfrescoImapUser user, java.lang.String mailboxName)
getFolder
in interface ImapService
user
- mailboxName
-
public java.util.List searchMails(org.alfresco.service.cmr.repository.NodeRef contextNodeRef, AlfrescoImapConst.ImapViewMode viewMode)
searchMails
in interface ImapService
contextNodeRef
- context folder for searchviewMode
- context folder view mode
public void subscribe(AlfrescoImapUser user, java.lang.String mailbox)
ImapService
subscribe
in interface ImapService
user
- User making the requestmailbox
- String representation of a mailbox name.public void unsubscribe(AlfrescoImapUser user, java.lang.String mailbox)
ImapService
unsubscribe
in interface ImapService
user
- User making the requestmailbox
- String representation of a mailbox name.public javax.mail.Flags getFlags(FileInfo messageInfo)
getFlags
in interface ImapService
messageInfo
- imap folder info.
public void setFlags(FileInfo messageInfo, javax.mail.Flags flags, boolean value)
setFlags
in interface ImapService
messageInfo
- 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 ImapService
messageInfo
- FileInfo of imap Folderflag
- flag to set.value
- value value to set.public org.alfresco.service.cmr.repository.NodeRef getMailboxRootRef(java.lang.String mailboxName, java.lang.String userName)
getMailboxRootRef
in interface ImapService
mailboxName
- mailbox name in IMAP client.userName
-
public java.lang.String getDefaultEmailBodyTemplate(ImapService.EmailBodyType type)
ImapService
"Data Dictionary > IMAP Templates >"
. This path should be set as the property of the "imapHelper" bean.
In this case it returns NodeRef.toString()
of the template. If there are no template in the repository it
returns a default template on the classpath.
getDefaultEmailBodyTemplate
in interface ImapService
public java.lang.String getAlfrescoServerUID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |