com.atlassian.confluence.pages.persistence.dao
Class SessionDraftDao
java.lang.Object
com.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionDraftDao
public SessionDraftDao(javax.servlet.http.HttpSession session)
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