|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.plugins.emailgateway.service.DefaultEmailThreadConverterService
public class DefaultEmailThreadConverterService
Constructor Summary | |
---|---|
DefaultEmailThreadConverterService(StagedEmailThreadManager stagedEmailThreadManager,
UsersByEmailService usersByEmailService,
com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator,
com.atlassian.event.api.EventPublisher eventPublisher,
Blacklist<com.atlassian.user.User> blacklist)
|
Method Summary | ||
---|---|---|
int |
clearExpiredEmailThreads(org.joda.time.DateTime expiry)
Deletes old email threads from the staging area. |
|
|
convertAndPublishStagedEmailThread(StagedEmailThreadKey key,
MessageHolder messageHolder,
EmailToContentConverter<C> emailToContentConverter)
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,
ConfirmationNotificationSender confirmationNotificationSender)
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, com.atlassian.security.random.SecureTokenGenerator secureTokenGenerator, com.atlassian.event.api.EventPublisher eventPublisher, Blacklist<com.atlassian.user.User> blacklist)
Method Detail |
---|
public StagedEmailThreadKey stageEmailThread(ReceivedEmail receivedEmail, ConfirmationNotificationSender confirmationNotificationSender) throws EmailStagingException
EmailStagingService
stageEmailThread
in interface EmailStagingService
receivedEmail
- The received email to be staged.confirmationNotificationSender
- The sender for the relevant confirmation email.
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 <C extends ContentEntityObject> C convertAndPublishStagedEmailThread(StagedEmailThreadKey key, MessageHolder messageHolder, EmailToContentConverter<C> emailToContentConverter)
StagedEmailThreadAdminService
convertAndPublishStagedEmailThread
in interface StagedEmailThreadAdminService
key
- The key used to locate the StagedEmailThreadmessageHolder
- The collector for any status messages that should be shown to the useremailToContentConverter
- The converter to use in publishing the staged email
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 |