Uses of Class
com.atlassian.confluence.pages.Draft
-
-
Uses of Draft in com.atlassian.confluence.content.apisupport
Methods in com.atlassian.confluence.content.apisupport with parameters of type Draft Modifier and Type Method Description <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)Save a newly created content entity objectMethod parameters in com.atlassian.confluence.content.apisupport with type arguments of type Draft Modifier and Type Method Description <T extends ContentEntityObject>
TContentCreator. saveForCreate(T entity, @Nullable Version version, com.atlassian.fugue.Option<Draft> draft)Deprecated.since 7.0.1.<T extends ContentEntityObject>
TContentCreator. saveForCreate(T entity, com.atlassian.fugue.Option<Draft> draft)Deprecated.since 6.13.0, useContentCreator.saveNewContent(ContentEntityObject, Version, Draft) -
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 Draft Modifier and Type Method Description DraftDraftResourceIdentifierResolver. resolve(DraftResourceIdentifier resourceIdentifier, ConversionContext conversionContext)Methods in com.atlassian.confluence.content.render.xhtml.model.resource.identifiers with parameters of type Draft Modifier and Type Method Description protected booleanDefaultResourceIdentifierMatcher. matches(Draft draft, ResourceIdentifier ri) -
Uses of Draft in com.atlassian.confluence.content.service
Methods in com.atlassian.confluence.content.service that return Draft Modifier and Type Method Description DraftDefaultDraftService. createNewContentDraft(String spaceKey, DraftService.DraftType type)DraftDraftService. createNewContentDraft(String spaceKey, DraftService.DraftType type)DraftDefaultDraftService. findDraftForEditor(long contentId, DraftService.DraftType type, String spaceKey)DraftDraftService. findDraftForEditor(long contentId, DraftService.DraftType type, String spaceKey)Find and return a draft of the specified content Id and type for the current user.DraftDefaultDraftService. getDraft(long draftId)DraftDraftService. getDraft(long draftId)gets the draft by id for the authenticated userDraftDefaultDraftService. saveDraftFromEditor(Long draftId, Long parentPageId, String title, DraftService.DraftType type, String content, Long contentId, String spaceKey, int pageVersion)DraftDefaultDraftService. 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.DraftDraftService. 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 Draft Modifier and Type Method Description List<Draft>DefaultDraftService. findDrafts(int limit, int offset)List<Draft>DraftService. findDrafts(int limit, int offset)Finds the users drafts.Methods in com.atlassian.confluence.content.service with parameters of type Draft Modifier and Type Method Description ServiceCommandBlogPostService. newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)ServiceCommandDefaultBlogPostService. newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)Deprecated.ServiceCommandDefaultPageService. newCreatePageCommand(PageProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)ServiceCommandPageService. 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.ServiceCommandDefaultPageService. newCreatePageCommandFromExisting(PageProvider provider, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider)ServiceCommandPageService. 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 Draft Constructor Description CreateBlogPostCommandImpl(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 Draft Constructor Description 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 Draft Modifier and Type Method Description default List<Draft>ContentEntityObjectDao. 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 Modifier and Type Method Description DraftViewDiffOfDraftAction. getDraft() -
Uses of Draft in com.atlassian.confluence.diff.beans
Constructors in com.atlassian.confluence.diff.beans with parameters of type Draft Constructor Description ConfluenceDiffDraftBean(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 Draft Modifier and Type Method Description List<Draft>AbstractContentEntityObjectHibernateDao. findAllLegacyDraftsFor(long contentId) -
Uses of Draft in com.atlassian.confluence.links
Constructors in com.atlassian.confluence.links with parameters of type Draft Constructor Description DraftAttachmentLink(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 Draft Modifier and Type Method Description DraftDefaultDraftManager. create(String username, DraftService.DraftType draftType, String spaceKey)DraftDefaultDraftManager. create(String username, DraftService.DraftType draftType, String spaceKey, long parentPageId)DraftDraftManager. create(String 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(String username, DraftService.DraftType draftType, String spaceKey, long parentPageId)Creates a new persistent draft of the specified draft type in the space for the user.DraftDefaultDraftManager. findDraft(Long pageId, String owner, String type, String spaceKey)DraftDraftManager. findDraft(Long pageId, String owner, String type, String spaceKey)Finds the draft with the given page ID, owner and type.DraftDefaultDraftManager. getDraft(long draftId)DraftDraftManager. getDraft(long draftId)Finds the draft given a specific draft id.DraftDefaultDraftManager. getOrCreate(String username, String draftType, String spaceKey)Deprecated.DraftDraftManager. getOrCreate(String username, String draftType, String spaceKey)Deprecated.since 5.7.Methods in com.atlassian.confluence.pages that return types with arguments of type Draft Modifier and Type Method Description List<Draft>DefaultDraftManager. findDraftsForUser(com.atlassian.user.User user)List<Draft>DraftManager. findDraftsForUser(com.atlassian.user.User 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 Draft Modifier and Type Method Description booleanDefaultDraftManager. isMergeRequired(Draft draft)booleanDraftManager. isMergeRequired(Draft draft)Returns true if the draft version of a page is different to the current version of a page, otherwise false.MergeResultDefaultDraftManager. mergeContent(Draft draft)Merges the draft with the original version compared to the latest version of the page.MergeResultDraftManager. mergeContent(Draft draft)Attempts the merge the changes done by this draft with the latest version of the content.voidDefaultDraftManager. removeDraft(Draft draft)voidDraftManager. removeDraft(Draft draft)Removes the draft specified.voidDefaultDraftManager. saveDraft(Draft draft)voidDraftManager. saveDraft(Draft draft)Saves the provided draft to the data store.voidAbstractPage. setContentPropertiesFromDraft(Draft draft)Deprecated. -
Uses of Draft in com.atlassian.confluence.pages.actions
Methods in com.atlassian.confluence.pages.actions that return Draft Modifier and Type Method Description protected DraftAbstractCreateAndEditPageAction. createDraft()Deprecated.since 5.10protected DraftCreatePageAction. createDraft()DraftAbstractCreateAndEditPageAction. getDraft()Deprecated.since 5.10 useAbstractCreateAndEditPageAction.getDraftAsCEO()DraftAbstractCreateAndEditPageAction. getExistingDraft() -
Uses of Draft in com.atlassian.confluence.pages.persistence.dao
Methods in com.atlassian.confluence.pages.persistence.dao that return Draft Modifier and Type Method Description DraftDraftDao. getDraft(long draftId)Returns the draft with the given ID, or null if no draft is found with that ID.DraftDraftDao. 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.DraftSessionDraftDao. getDraft(long draftId)DraftSessionDraftDao. getDraft(String pageId, ConfluenceUser owner, String type, String spaceKey)Methods in com.atlassian.confluence.pages.persistence.dao that return types with arguments of type Draft Modifier and Type Method Description List<Draft>DraftDao. findAll()Returns all drafts stored in the data store.List<Draft>SessionDraftDao. findAll()List<Draft>DelegatingPageDao. findAllLegacyDraftsFor(long contentId)List<Draft>DraftDao. findByCreatorName(String creatorName)Returns the drafts stored against the given username.List<Draft>SessionDraftDao. findByCreatorName(String creatorName)Methods in com.atlassian.confluence.pages.persistence.dao with parameters of type Draft Modifier and Type Method Description voidDraftDao. remove(Draft draft)Removes a draft based on its page ID, owner and type.voidSessionDraftDao. remove(Draft draft)voidDraftDao. saveOrUpdate(Draft draft)Saves the draft.voidSessionDraftDao. 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 Draft Modifier and Type Method Description protected DraftHibernateDraftDao. getByClassId(long id)DraftHibernateDraftDao. getDraft(long draftId)DraftHibernateDraftDao. 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 Draft Modifier and Type Method Description List<Draft>HibernateDraftDao. findByCreatorName(String creatorName)Methods in com.atlassian.confluence.pages.persistence.dao.hibernate with parameters of type Draft Modifier and Type Method Description voidHibernateDraftDao. remove(Draft draft)voidHibernateDraftDao. saveOrUpdate(Draft draft) -
Uses of Draft in com.atlassian.confluence.plugin.descriptor.web
Methods in com.atlassian.confluence.plugin.descriptor.web that return Draft Modifier and Type Method Description @Nullable DraftDefaultWebInterfaceContext. getDraft()Deprecated.since 5.9.@Nullable DraftWebInterfaceContext. getDraft()Deprecated.since 5.9. -
Uses of Draft in com.atlassian.confluence.security.delegate
Methods in com.atlassian.confluence.security.delegate with parameters of type Draft Modifier and Type Method Description booleanDraftPermissionsDelegate. canAdminister(com.atlassian.user.User user, Draft target)booleanDraftPermissionsDelegate. canEdit(com.atlassian.user.User user, Draft target)booleanDraftPermissionsDelegate. canExport(com.atlassian.user.User user, Draft target)booleanDraftPermissionsDelegate. canRemove(com.atlassian.user.User user, Draft target)booleanDraftPermissionsDelegate. canSetPermissions(com.atlassian.user.User user, Draft target)booleanDraftPermissionsDelegate. canView(com.atlassian.user.User 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 Modifier and Type Method Description static DraftDataDraftData. create(Draft draft)Creates a DraftData without the content filled in. -
Uses of Draft in com.atlassian.confluence.user.actions
Methods in com.atlassian.confluence.user.actions that return types with arguments of type Draft Modifier and Type Method Description List<Draft>ViewMyDraftsAction. getDrafts()Deprecated.since 5.10.
-