java.lang.Object | ||||
↳ | org.springframework.dao.support.DaoSupport | |||
↳ | org.springframework.orm.hibernate.support.HibernateDaoSupport | |||
↳ | com.atlassian.hibernate.HibernateObjectDao | |||
↳ | com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateDraftDao |
Database storage for drafts. Does not permit anonymous drafts (i.e. those with a null username), which should be stored in non-permanent storage like the HTTP session.
[Expand]
Inherited Fields | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.hibernate.HibernateObjectDao
| ||||||||||||||
From class
org.springframework.dao.support.DaoSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the drafts stored against the given username.
| |||||||||||
Finds and returns a draft object with all the specified properties or null if none is found.
| |||||||||||
Returns the draft with the given ID, or null if no draft is found with that ID.
| |||||||||||
Removes a draft based on its page ID, owner and type.
| |||||||||||
Remove a draft based on its ID.
| |||||||||||
Removes all drafts in the data store.
| |||||||||||
Saves the draft.
| |||||||||||
Changes all drafts with a space key of oldSpaceKey to have newSpaceKey.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.hibernate.HibernateObjectDao
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From class
org.springframework.orm.hibernate.support.HibernateDaoSupport
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From class
org.springframework.dao.support.DaoSupport
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From class java.lang.Object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
bucket.core.persistence.ObjectDao
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
com.atlassian.confluence.pages.persistence.dao.DraftDao
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Returns the drafts stored against the given username.
Finds and returns a draft object with all the specified properties or null if none is found.
pageId | the id of the page which this draft is associated with |
---|---|
creatorName | the owner of the draft |
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 |
Returns the draft with the given ID, or null if no draft is found with that ID.
Removes a draft based on its page ID, owner and type. Does nothing if such a draft is not found in the data store.
Remove a draft based on its ID. Does nothing if such a draft is not found in the data store.
Removes all drafts in the data store.
Changes all drafts with a space key of oldSpaceKey to have newSpaceKey.
newSpaceKey | the new space key |
---|---|
oldSpaceKey | the old space key |