com.atlassian.confluence.pages.persistence.dao
Interface DraftDao

All Known Implementing Classes:
HibernateDraftDao, SessionDraftDao

public interface DraftDao


Method Summary
 List findByOwner(String owner)
           
 Draft getDraft(String pageId, String owner, String type)
           
 void remove(Draft draft)
          remove a draft by matching its key (pageId, owner and type)
 void remove(long id)
          remove a draft by its id.
 void saveOrUpdate(Draft draft)
           
 void updateSpaceKey(String newSpaceKey, String oldSpaceKey)
           
 

Method Detail

saveOrUpdate

public void saveOrUpdate(Draft draft)

getDraft

public Draft getDraft(String pageId,
                      String owner,
                      String type)

remove

public void remove(Draft draft)
remove a draft by matching its key (pageId, owner and type)

Parameters:
draft -

remove

public void remove(long id)
remove a draft by its id.

Parameters:
id -

findByOwner

public List findByOwner(String owner)

updateSpaceKey

public void updateSpaceKey(String newSpaceKey,
                           String oldSpaceKey)


Confluence is developed by Atlassian.