| Constructor and Description |
|---|
SessionDraftDao(javax.servlet.http.HttpSession session) |
| Modifier and Type | Method and Description |
|---|---|
int |
countDrafts(String creatorName) |
List<Draft> |
findAll()
Returns all drafts stored in the data store.
|
List<Draft> |
findByCreatorName(String creatorName)
Returns the drafts stored against the given username.
|
List<Draft> |
getAllDraftsForSpace(String spaceKey)
Deprecated.
|
Draft |
getDraft(long draftId)
Returns the draft with the given ID, or null if no draft is found with that ID.
|
Draft |
getDraft(Long pageId,
String owner,
String type,
String spaceKey)
Deprecated.
|
Draft |
getDraft(String pageId,
ConfluenceUser owner,
String type,
String spaceKey)
Finds and returns a draft object with all the specified properties or null if none is found.
|
Draft |
getDraft(String pageId,
String owner,
String type,
String spaceKey)
Deprecated.
|
void |
remove(Draft draft)
Removes a draft based on its page ID, owner and type.
|
void |
remove(long id)
Deprecated.
|
void |
removeAll()
Deprecated.
|
void |
saveOrUpdate(Draft draft)
Saves the draft.
|
void |
updateSpaceKey(String newSpaceKey,
String oldSpaceKey)
Deprecated.
|
public void saveOrUpdate(Draft draft)
DraftDaosaveOrUpdate in interface DraftDaopublic Draft getDraft(String pageId, ConfluenceUser owner, String type, String spaceKey)
DraftDaogetDraft in interface DraftDaopageId - the id of the page which this draft is associated withowner - the owner of the drafttype - the type of draft, which is usually the result of calling ContentEntityObject.getType()spaceKey - space key, if relevant for the draft. This is used to enable NEW page drafts across multiple spaces@Deprecated public Draft getDraft(String pageId, String owner, String type, String spaceKey)
@Deprecated public Draft getDraft(Long pageId, String owner, String type, String spaceKey)
public Draft getDraft(long draftId)
DraftDaopublic void remove(Draft draft)
DraftDao@Deprecated public void remove(long id)
DraftDaopublic List<Draft> findByCreatorName(String creatorName)
DraftDaofindByCreatorName in interface DraftDao@Deprecated public void updateSpaceKey(String newSpaceKey, String oldSpaceKey)
DraftDaoupdateSpaceKey in interface DraftDaonewSpaceKey - the new space keyoldSpaceKey - the old space key@Deprecated public void removeAll()
DraftDaopublic List<Draft> findAll()
DraftDao@Deprecated public List<Draft> getAllDraftsForSpace(String spaceKey)
getAllDraftsForSpace in interface DraftDaopublic int countDrafts(String creatorName)
countDrafts in interface DraftDaoCopyright © 2003–2017 Atlassian. All rights reserved.