com.atlassian.confluence.pages
Class DefaultDraftManager

java.lang.Object
  extended bycom.atlassian.confluence.pages.DefaultDraftManager
All Implemented Interfaces:
DraftManager

public class DefaultDraftManager
extends Object
implements DraftManager


Field Summary
static org.apache.log4j.Category log
           
 
Constructor Summary
DefaultDraftManager()
           
 
Method Summary
 Draft findDraft(String pageId, String owner, String type)
           
 List findDraftsForUser(User user)
           
 int getDraftSaveInterval()
           
 String getMergedContent(Draft draft)
           
 boolean isMergeRequired(Draft draft)
           
 void removeDraft(String pageId, String owner, String type)
           
 void removeDraftById(long id)
           
 void saveDraft(Draft draft)
           
 void setDraftDao(DraftDao draftDao)
           
 void setPageManager(PageManager pageManager)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 void updateSpaceKey(String newSpaceKey, String oldSpaceKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Category log
Constructor Detail

DefaultDraftManager

public DefaultDraftManager()
Method Detail

saveDraft

public void saveDraft(Draft draft)
Specified by:
saveDraft in interface DraftManager

findDraft

public Draft findDraft(String pageId,
                       String owner,
                       String type)
Specified by:
findDraft in interface DraftManager

removeDraft

public void removeDraft(String pageId,
                        String owner,
                        String type)
Specified by:
removeDraft in interface DraftManager

removeDraftById

public void removeDraftById(long id)
Specified by:
removeDraftById in interface DraftManager

getDraftSaveInterval

public int getDraftSaveInterval()
Specified by:
getDraftSaveInterval in interface DraftManager

findDraftsForUser

public List findDraftsForUser(User user)
Specified by:
findDraftsForUser in interface DraftManager

isMergeRequired

public boolean isMergeRequired(Draft draft)
Specified by:
isMergeRequired in interface DraftManager

getMergedContent

public String getMergedContent(Draft draft)
Specified by:
getMergedContent in interface DraftManager

updateSpaceKey

public void updateSpaceKey(String newSpaceKey,
                           String oldSpaceKey)
Specified by:
updateSpaceKey in interface DraftManager

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setDraftDao

public void setDraftDao(DraftDao draftDao)

setPageManager

public void setPageManager(PageManager pageManager)


Confluence is developed by Atlassian.