Uses of Class
com.atlassian.confluence.pages.Draft
Packages that use Draft
Package
Description
-
Uses of Draft in com.atlassian.confluence.content.apisupport
Methods in com.atlassian.confluence.content.apisupport with parameters of type DraftModifier and TypeMethodDescription<T extends ContentEntityObject>
TDraftAttributesCopier.copyDraftAttributes
(T entity, Draft draft) Transfers all metadata from draft to the entity.<T extends ContentEntityObject>
TContentCreator.saveNewContent
(T entity, @Nullable Version version, @Nullable Draft draft) <T extends ContentEntityObject>
TDefaultContentCreator.saveNewContent
(T entity, @Nullable Version version, @Nullable Draft draft) Save a newly created content entity objectMethod parameters in com.atlassian.confluence.content.apisupport with type arguments of type DraftModifier and TypeMethodDescription<T extends ContentEntityObject>
TContentCreator.saveForCreate
(T entity, @Nullable Version version, com.atlassian.fugue.Option<Draft> draft) Deprecated.<T extends ContentEntityObject>
TContentCreator.saveForCreate
(T entity, com.atlassian.fugue.Option<Draft> draft) Deprecated.<T extends ContentEntityObject>
TDefaultContentCreator.saveForCreate
(T entity, @Nullable Version version, com.atlassian.fugue.Option<Draft> draft) Deprecated.since 7.0.1.<T extends ContentEntityObject>
TDefaultContentCreator.saveForCreate
(T entity, com.atlassian.fugue.Option<Draft> draft) Deprecated. -
Uses of Draft in com.atlassian.confluence.content.render.xhtml.model.resource.identifiers
Methods in com.atlassian.confluence.content.render.xhtml.model.resource.identifiers that return DraftModifier and TypeMethodDescriptionDraftResourceIdentifierResolver.resolve
(DraftResourceIdentifier resourceIdentifier, ConversionContext conversionContext) Methods in com.atlassian.confluence.content.render.xhtml.model.resource.identifiers with parameters of type DraftModifier and TypeMethodDescriptionprotected boolean
DefaultResourceIdentifierMatcher.matches
(Draft draft, ResourceIdentifier ri) -
Uses of Draft in com.atlassian.confluence.content.service
Methods in com.atlassian.confluence.content.service that return DraftModifier and TypeMethodDescriptionDefaultDraftService.createNewContentDraft
(String spaceKey, DraftService.DraftType type) DraftService.createNewContentDraft
(String spaceKey, DraftService.DraftType type) DefaultDraftService.findDraftForEditor
(long contentId, DraftService.DraftType type, String spaceKey) DraftService.findDraftForEditor
(long contentId, DraftService.DraftType type, String spaceKey) Find and return a draft of the specified content Id and type for the current user.DefaultDraftService.getDraft
(long draftId) DraftService.getDraft
(long draftId) gets the draft by id for the authenticated userDefaultDraftService.saveDraftFromEditor
(Long draftId, Long parentPageId, String title, DraftService.DraftType type, String content, Long contentId, String spaceKey, int pageVersion) DefaultDraftService.saveDraftFromEditor
(Long draftId, String title, DraftService.DraftType type, String content, Long contentId, String spaceKey, int pageVersion) Deprecated.default Draft
DraftService.saveDraftFromEditor
(Long draftId, Long parentPageId, String title, DraftService.DraftType type, String content, Long contentId, String spaceKey, int pageVersion) Create and store a draft for the current user with the supplied details.DraftService.saveDraftFromEditor
(Long draftId, String title, DraftService.DraftType type, String content, Long contentId, String spaceKey, int pageVersion) Deprecated.Methods in com.atlassian.confluence.content.service that return types with arguments of type DraftModifier and TypeMethodDescriptionDefaultDraftService.findDrafts
(int limit, int offset) DraftService.findDrafts
(int limit, int offset) Finds the users drafts.Methods in com.atlassian.confluence.content.service with parameters of type DraftModifier and TypeMethodDescriptionBlogPostService.newCreateBlogPostCommand
(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf) DefaultBlogPostService.newCreateBlogPostCommand
(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf) Deprecated.DefaultPageService.newCreatePageCommand
(PageProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf) PageService.newCreatePageCommand
(PageProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf) Retrieve a command for creating a new page for the specified user.DefaultPageService.newCreatePageCommandFromExisting
(PageProvider provider, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider) PageService.newCreatePageCommandFromExisting
(PageProvider provider, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider) This is not a public API method! Creating a page from an existing page has different authorisation and validation logic from creating a brand new page. -
Uses of Draft in com.atlassian.confluence.content.service.blogpost
Constructors in com.atlassian.confluence.content.service.blogpost with parameters of type DraftModifierConstructorDescriptionCreateBlogPostCommandImpl
(PageManager pageManager, SpacePermissionManager spacePermissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, BlogPostProvider blogPostProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10 -
Uses of Draft in com.atlassian.confluence.content.service.page
Constructors in com.atlassian.confluence.content.service.page with parameters of type DraftModifierConstructorDescriptionprotected
CreateAbstractPageCommandImpl
(PageManager pageManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10CreatePageCommandImpl
(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10CreatePageFromExistingCommandImpl
(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10 -
Uses of Draft in com.atlassian.confluence.core.persistence
Methods in com.atlassian.confluence.core.persistence that return types with arguments of type DraftModifier and TypeMethodDescriptionContentEntityObjectDao.findAllLegacyDraftsFor
(long contentId) Retrieves a list of Legacy drafts for the given content if any exist. -
Uses of Draft in com.atlassian.confluence.diff.actions
Methods in com.atlassian.confluence.diff.actions that return Draft -
Uses of Draft in com.atlassian.confluence.diff.beans
Constructors in com.atlassian.confluence.diff.beans with parameters of type DraftModifierConstructorDescriptionConfluenceDiffDraftBean
(ContentEntityObject original, Draft latest, Differ differ) -
Uses of Draft in com.atlassian.confluence.internal.persistence.hibernate
Methods in com.atlassian.confluence.internal.persistence.hibernate that return types with arguments of type DraftModifier and TypeMethodDescriptionContentEntityObjectHibernateDao.findAllLegacyDraftsFor
(long contentId) -
Uses of Draft in com.atlassian.confluence.links
Constructors in com.atlassian.confluence.links with parameters of type DraftModifierConstructorDescriptionDraftAttachmentLink
(com.atlassian.renderer.links.GenericLinkParser parser, Draft draft, AttachmentManager attachmentManager) -
Uses of Draft in com.atlassian.confluence.pages
Methods in com.atlassian.confluence.pages that return DraftModifier and TypeMethodDescriptionDefaultDraftManager.create
(String username, DraftService.DraftType draftType, String spaceKey) DefaultDraftManager.create
(String username, DraftService.DraftType draftType, String spaceKey, long parentPageId) default Draft
DraftManager.create
(ConfluenceUser user, DraftService.DraftType draftType, String spaceKey) Creates a new persistent draft of the specified draft type in the space for the user.default Draft
DraftManager.create
(ConfluenceUser user, DraftService.DraftType draftType, String spaceKey, long parentPageId) Creates a new persistent draft of the specified draft type in the space for the user.DraftManager.create
(String username, DraftService.DraftType draftType, String spaceKey) Deprecated, for removal: This API element is subject to removal in a future version.since 9.5 useDraftManager.create(ConfluenceUser, DraftType, String)
default Draft
DraftManager.create
(String username, DraftService.DraftType draftType, String spaceKey, long parentPageId) Deprecated, for removal: This API element is subject to removal in a future version.default Draft
DraftManager.findDraft
(Long pageId, ConfluenceUser owner, String type, String spaceKey) Finds the draft with the given page ID, owner and type.Deprecated, for removal: This API element is subject to removal in a future version.DefaultDraftManager.getDraft
(long draftId) DraftManager.getDraft
(long draftId) Finds the draft given a specific draft id.DefaultDraftManager.getOrCreate
(String username, String draftType, String spaceKey) Deprecated.DraftManager.getOrCreate
(String username, String draftType, String spaceKey) Deprecated.since 5.7.Methods in com.atlassian.confluence.pages that return types with arguments of type DraftModifier and TypeMethodDescriptionDefaultDraftManager.findDraftsForUser
(com.atlassian.user.User user) DraftManager.findDraftsForUser
(ConfluenceUser user) Returns the drafts for the user provided or an empty list if the user has no drafts.DraftManager.findDraftsForUser
(com.atlassian.user.User user) Deprecated, for removal: This API element is subject to removal in a future version.Methods in com.atlassian.confluence.pages with parameters of type DraftModifier and TypeMethodDescriptionboolean
DefaultDraftManager.isMergeRequired
(Draft draft) boolean
DraftManager.isMergeRequired
(Draft draft) Returns true if the draft version of a page is different to the current version of a page, otherwise false.DefaultDraftManager.mergeContent
(Draft draft) Merges the draft with the original version compared to the latest version of the page.DraftManager.mergeContent
(Draft draft) Attempts the merge the changes done by this draft with the latest version of the content.void
DefaultDraftManager.removeDraft
(Draft draft) void
DraftManager.removeDraft
(Draft draft) Removes the draft specified.void
void
Saves the provided draft to the data store.void
AbstractPage.setContentPropertiesFromDraft
(Draft draft) Deprecated. -
Uses of Draft in com.atlassian.confluence.pages.actions
Methods in com.atlassian.confluence.pages.actions that return DraftModifier and TypeMethodDescriptionprotected Draft
AbstractCreateAndEditPageAction.createDraft()
Deprecated.since 5.10protected Draft
CreatePageAction.createDraft()
AbstractCreateAndEditPageAction.getDraft()
Deprecated.since 5.10 useAbstractCreateAndEditPageAction.getDraftAsCEO()
AbstractCreateAndEditPageAction.getExistingDraft()
-
Uses of Draft in com.atlassian.confluence.pages.persistence.dao
Methods in com.atlassian.confluence.pages.persistence.dao that return DraftModifier and TypeMethodDescriptionDraftDao.getDraft
(long draftId) Returns the draft with the given ID, or null if no draft is found with that ID.DraftDao.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.SessionDraftDao.getDraft
(long draftId) SessionDraftDao.getDraft
(String pageId, ConfluenceUser owner, String type, String spaceKey) Methods in com.atlassian.confluence.pages.persistence.dao that return types with arguments of type DraftModifier and TypeMethodDescriptionDraftDao.findAll()
Returns all drafts stored in the data store.SessionDraftDao.findAll()
DraftDao.findByCreatorName
(String creatorName) Returns the drafts stored against the given username.SessionDraftDao.findByCreatorName
(String creatorName) Methods in com.atlassian.confluence.pages.persistence.dao with parameters of type DraftModifier and TypeMethodDescriptionvoid
Removes a draft based on its page ID, owner and type.void
void
DraftDao.saveOrUpdate
(Draft draft) Saves the draft.void
SessionDraftDao.saveOrUpdate
(Draft draft) -
Uses of Draft in com.atlassian.confluence.pages.persistence.dao.hibernate
Methods in com.atlassian.confluence.pages.persistence.dao.hibernate that return DraftModifier and TypeMethodDescriptionprotected Draft
HibernateDraftDao.getByClassId
(long id) HibernateDraftDao.getDraft
(long draftId) HibernateDraftDao.getDraft
(String pageId, ConfluenceUser creator, String draftType, String spaceKey) Methods in com.atlassian.confluence.pages.persistence.dao.hibernate that return types with arguments of type DraftMethods in com.atlassian.confluence.pages.persistence.dao.hibernate with parameters of type Draft -
Uses of Draft in com.atlassian.confluence.plugin.descriptor.web
Methods in com.atlassian.confluence.plugin.descriptor.web that return Draft -
Uses of Draft in com.atlassian.confluence.security.delegate
Methods in com.atlassian.confluence.security.delegate with parameters of type DraftModifier and TypeMethodDescriptionboolean
DraftPermissionsDelegate.canAdminister
(ConfluenceUser user, Draft target) boolean
DraftPermissionsDelegate.canEdit
(ConfluenceUser user, Draft target) boolean
DraftPermissionsDelegate.canExport
(ConfluenceUser user, Draft target) boolean
DraftPermissionsDelegate.canRemove
(ConfluenceUser user, Draft target) boolean
DraftPermissionsDelegate.canSetPermissions
(ConfluenceUser user, Draft target) boolean
DraftPermissionsDelegate.canView
(ConfluenceUser user, Draft target) -
Uses of Draft in com.atlassian.confluence.tinymceplugin.rest.entities
Methods in com.atlassian.confluence.tinymceplugin.rest.entities with parameters of type Draft -
Uses of Draft in com.atlassian.confluence.user.actions
Methods in com.atlassian.confluence.user.actions that return types with arguments of type Draft