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 Draft
DraftResourceIdentifierResolver. 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 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 Draft Modifier and Type Method Description Draft
DefaultDraftService. createNewContentDraft(String spaceKey, DraftService.DraftType type)
Draft
DraftService. createNewContentDraft(String spaceKey, DraftService.DraftType type)
Draft
DefaultDraftService. findDraftForEditor(long contentId, DraftService.DraftType type, String spaceKey)
Draft
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.Draft
DefaultDraftService. getDraft(long draftId)
Draft
DraftService. getDraft(long draftId)
gets the draft by id for the authenticated userDraft
DefaultDraftService. saveDraftFromEditor(Long draftId, Long parentPageId, String title, DraftService.DraftType type, String content, Long contentId, String spaceKey, int pageVersion)
Draft
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.Draft
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 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 ServiceCommand
BlogPostService. newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
ServiceCommand
DefaultBlogPostService. newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
Deprecated.ServiceCommand
DefaultPageService. newCreatePageCommand(PageProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
ServiceCommand
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.ServiceCommand
DefaultPageService. newCreatePageCommandFromExisting(PageProvider provider, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider)
ServiceCommand
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 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 Draft
ViewDiffOfDraftAction. 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 Draft
DefaultDraftManager. create(String username, DraftService.DraftType draftType, String spaceKey)
Draft
DefaultDraftManager. create(String username, DraftService.DraftType draftType, String spaceKey, long parentPageId)
Draft
DraftManager. 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 Draft
DraftManager. 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.Draft
DefaultDraftManager. findDraft(Long pageId, String owner, String type, String spaceKey)
Draft
DraftManager. findDraft(Long pageId, String owner, String type, String spaceKey)
Finds the draft with the given page ID, owner and type.Draft
DefaultDraftManager. getDraft(long draftId)
Draft
DraftManager. getDraft(long draftId)
Finds the draft given a specific draft id.Draft
DefaultDraftManager. getOrCreate(String username, String draftType, String spaceKey)
Deprecated.Draft
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 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 boolean
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.MergeResult
DefaultDraftManager. mergeContent(Draft draft)
Merges the draft with the original version compared to the latest version of the page.MergeResult
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
DefaultDraftManager. saveDraft(Draft draft)
void
DraftManager. saveDraft(Draft draft)
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 Draft Modifier and Type Method Description protected Draft
AbstractCreateAndEditPageAction. createDraft()
Deprecated.since 5.10protected Draft
CreatePageAction. createDraft()
Draft
AbstractCreateAndEditPageAction. getDraft()
Deprecated.since 5.10 useAbstractCreateAndEditPageAction.getDraftAsCEO()
Draft
AbstractCreateAndEditPageAction. 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 Draft
DraftDao. getDraft(long draftId)
Returns the draft with the given ID, or null if no draft is found with that ID.Draft
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.Draft
SessionDraftDao. getDraft(long draftId)
Draft
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 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 void
DraftDao. remove(Draft draft)
Removes a draft based on its page ID, owner and type.void
SessionDraftDao. remove(Draft draft)
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 Draft Modifier and Type Method Description protected Draft
HibernateDraftDao. getByClassId(long id)
Draft
HibernateDraftDao. getDraft(long draftId)
Draft
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 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 void
HibernateDraftDao. remove(Draft draft)
void
HibernateDraftDao. 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 Draft
DefaultWebInterfaceContext. getDraft()
Deprecated.since 5.9.@Nullable Draft
WebInterfaceContext. 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 boolean
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 Modifier and Type Method Description static DraftData
DraftData. 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.
-