com.atlassian.confluence.pages.persistence.dao
Class SessionDraftDao

java.lang.Object
  extended bycom.atlassian.confluence.pages.persistence.dao.SessionDraftDao
All Implemented Interfaces:
DraftDao

public class SessionDraftDao
extends Object
implements DraftDao


Constructor Summary
SessionDraftDao(javax.servlet.http.HttpSession session)
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionDraftDao

public SessionDraftDao(javax.servlet.http.HttpSession session)
Method Detail

saveOrUpdate

public void saveOrUpdate(Draft draft)
Specified by:
saveOrUpdate in interface DraftDao

getDraft

public Draft getDraft(String pageId,
                      String owner,
                      String type)
Specified by:
getDraft in interface DraftDao

remove

public void remove(Draft draft)
Description copied from interface: DraftDao
remove a draft by matching its key (pageId, owner and type)

Specified by:
remove in interface DraftDao
Parameters:
draft -

remove

public void remove(long id)
Description copied from interface: DraftDao
remove a draft by its id.

Specified by:
remove in interface DraftDao
Parameters:
id -

findByOwner

public List findByOwner(String owner)
Specified by:
findByOwner in interface DraftDao

updateSpaceKey

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


Confluence is developed by Atlassian.