com.atlassian.confluence.plugins.emailgateway.service
Interface StagedEmailThreadAdminService

All Known Implementing Classes:
DefaultEmailThreadConverterService

public interface StagedEmailThreadAdminService

Describes operations for managing existing StagedEmailThread objects.

Since:
v5.0

Method Summary
 int clearExpiredEmailThreads(org.joda.time.DateTime expiry)
          Deletes old email threads from the staging area.
 ContentEntityObject convertAndPublishStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey, MessageHolder messageHolder)
          Converts an existing StagedEmailThread into a Confluence Page and publishes it.
 void deleteStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey)
          Delete an existing StagedEmailThread from the store.
 

Method Detail

convertAndPublishStagedEmailThread

ContentEntityObject convertAndPublishStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey,
                                                       MessageHolder messageHolder)
Converts an existing StagedEmailThread into a Confluence Page and publishes it.

Parameters:
stagedEmailThreadKey - The key used to locate the StagedEmailThread
Returns:
A representation of the newly published page
Throws:
IllegalArgumentException - If no StagedEmailThread can be found for the given StagedEmailThreadKey

deleteStagedEmailThread

void deleteStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey)
Delete an existing StagedEmailThread from the store.

Parameters:
stagedEmailThreadKey - The key used to locate the StagedEmailThread

clearExpiredEmailThreads

int clearExpiredEmailThreads(org.joda.time.DateTime expiry)
Deletes old email threads from the staging area.

Parameters:
expiry - the cut-off date for which any threads older will be deleted
Returns:
the number of threads removed


Copyright © 2003-2013 Atlassian. All Rights Reserved.