|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.plugins.emailgateway.service.DefaultEmailThreadConverterService
public class DefaultEmailThreadConverterService
Constructor Summary | |
---|---|
DefaultEmailThreadConverterService(StagedEmailThreadManager stagedEmailThreadManager,
UsersByEmailService usersByEmailService,
EmailToPageConverter emailToPageConverter,
com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator,
EmailToPageConfirmationEmailSender confirmationEmailSender,
com.atlassian.event.api.EventPublisher eventPublisher,
Blacklist blacklist)
|
Method Summary | |
---|---|
int |
clearExpiredEmailThreads(org.joda.time.DateTime expiry)
Deletes old email threads from the staging area. |
AbstractPage |
convertAndPublishStagedEmailThread(StagedEmailThreadKey key,
MessageHolder messageHolder)
Converts an existing StagedEmailThread into a Confluence Page and publishes it. |
void |
deleteStagedEmailThread(StagedEmailThreadKey key)
Delete an existing StagedEmailThread from the store. |
StagedEmailThreadKey |
stageEmailThread(ReceivedEmail receivedEmail)
Stage the given received email. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEmailThreadConverterService(StagedEmailThreadManager stagedEmailThreadManager, UsersByEmailService usersByEmailService, EmailToPageConverter emailToPageConverter, com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator, EmailToPageConfirmationEmailSender confirmationEmailSender, com.atlassian.event.api.EventPublisher eventPublisher, Blacklist blacklist)
Method Detail |
---|
public StagedEmailThreadKey stageEmailThread(ReceivedEmail receivedEmail) throws EmailStagingException
EmailStagingService
stageEmailThread
in interface EmailStagingService
receivedEmail
- The received email to be staged.
EmailStagingException
- If the received email cannot be staged.public int clearExpiredEmailThreads(org.joda.time.DateTime expiry)
StagedEmailThreadAdminService
clearExpiredEmailThreads
in interface StagedEmailThreadAdminService
expiry
- the cut-off date for which any threads older will be deleted
public AbstractPage convertAndPublishStagedEmailThread(StagedEmailThreadKey key, MessageHolder messageHolder)
StagedEmailThreadAdminService
convertAndPublishStagedEmailThread
in interface StagedEmailThreadAdminService
key
- The key used to locate the StagedEmailThread
public void deleteStagedEmailThread(StagedEmailThreadKey key)
StagedEmailThreadAdminService
deleteStagedEmailThread
in interface StagedEmailThreadAdminService
key
- The key used to locate the StagedEmailThread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |