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 object -
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 booleanDefaultResourceIdentifierMatcher.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 DraftDraftService.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, CreateContextProvider contextProvider, Draft draft, ConfluenceUser user) DefaultBlogPostService.newCreateBlogPostCommand(BlogPostProvider provider, CreateContextProvider contextProvider, Draft draft, ConfluenceUser user) Deprecated.DefaultPageService.newCreatePageCommand(PageProvider provider, CreateContextProvider contextProvider, Draft draft, ConfluenceUser user) PageService.newCreatePageCommand(PageProvider provider, CreateContextProvider contextProvider, Draft draft, ConfluenceUser user) Retrieve a command for creating a new page for the specified user.DefaultPageService.newCreatePageCommandFromExisting(PageProvider provider, Draft draft, ConfluenceUser user, SpaceProvider spaceProvider) PageService.newCreatePageCommandFromExisting(PageProvider provider, Draft draft, ConfluenceUser user, 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.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.impl.pages.persistence.dao
Methods in com.atlassian.confluence.impl.pages.persistence.dao that return DraftModifier and TypeMethodDescriptionprotected DraftHibernateDraftDao.getByClassId(long id) DraftDao.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.HibernateDraftDao.getDraft(long draftId) HibernateDraftDao.getDraft(String pageId, ConfluenceUser creator, String draftType, String spaceKey) SessionDraftDao.getDraft(long draftId) SessionDraftDao.getDraft(String pageId, ConfluenceUser owner, String type, String spaceKey) Methods in com.atlassian.confluence.impl.pages.persistence.dao that return types with arguments of type DraftModifier and TypeMethodDescriptionDraftDao.findAll()Returns all drafts stored in the data store.HibernateDraftDao.findAll()SessionDraftDao.findAll()DraftDao.findByCreator(ConfluenceUser creator) Returns the drafts stored against the given username.HibernateDraftDao.findByCreator(ConfluenceUser creator) SessionDraftDao.findByCreator(ConfluenceUser creator) HibernateDraftDao.getPersistentClass()Methods in com.atlassian.confluence.impl.pages.persistence.dao with parameters of type DraftModifier and TypeMethodDescriptionvoidRemoves a draft based on its page ID, owner and type.voidvoidvoidDraftDao.saveOrUpdate(Draft draft) Saves the draft.voidHibernateDraftDao.saveOrUpdate(Draft draft) voidSessionDraftDao.saveOrUpdate(Draft draft) -
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 TypeMethodDescriptionDraftManager.create(ConfluenceUser username, DraftService.DraftType draftType, String spaceKey) Creates a new persistent draft of the specified draft type in the space for the user.default DraftDraftManager.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.findDraft(Long pageId, ConfluenceUser owner, String type, String spaceKey) Finds the draft with the given page ID, owner and type.DraftManager.getDraft(long draftId) Finds the draft given a specific draft id.DraftManager.getOrCreate(ConfluenceUser username, String draftType, String spaceKey) Deprecated.since 5.7.Methods in com.atlassian.confluence.pages that return types with arguments of type DraftModifier and TypeMethodDescriptionDraftManager.findDraftsForUser(ConfluenceUser user) Returns the drafts for the user provided or an empty list if the user has no drafts.Methods in com.atlassian.confluence.pages with parameters of type DraftModifier and TypeMethodDescriptionbooleanDraftManager.isMergeRequired(Draft draft) Returns true if the draft version of a page is different to the current version of a page, otherwise false.DraftManager.mergeContent(Draft draft) Attempts the merge the changes done by this draft with the latest version of the content.voidDraftManager.removeDraft(Draft draft) Removes the draft specified.voidSaves the provided draft to the data store. -
Uses of Draft in com.atlassian.confluence.pages.actions
Methods in com.atlassian.confluence.pages.actions that return DraftModifier and TypeMethodDescriptionprotected DraftAbstractCreateAndEditPageAction.createDraft()Deprecated.since 5.10protected DraftCreatePageAction.createDraft()AbstractCreateAndEditPageAction.getDraft()Deprecated.since 5.10 useAbstractCreateAndEditPageAction.getDraftAsCEO()AbstractCreateAndEditPageAction.getExistingDraft() -
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 TypeMethodDescriptionbooleanDraftPermissionsDelegate.canAdminister(ConfluenceUser user, Draft target) booleanDraftPermissionsDelegate.canEdit(ConfluenceUser user, Draft target) booleanDraftPermissionsDelegate.canExport(ConfluenceUser user, Draft target) booleanDraftPermissionsDelegate.canRemove(ConfluenceUser user, Draft target) booleanDraftPermissionsDelegate.canSetPermissions(ConfluenceUser user, Draft target) booleanDraftPermissionsDelegate.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
DraftService.saveDraftFromEditor(Long, Long, String, DraftType, String, Long, String, int)