Class DraftAttributesCopier

java.lang.Object
com.atlassian.confluence.content.apisupport.DraftAttributesCopier

public class DraftAttributesCopier extends Object
  • Constructor Details

  • Method Details

    • copyDraftAttributes

      public <T extends ContentEntityObject> T copyDraftAttributes(T entity, Draft draft)
      Transfers all metadata from draft to the entity. Metadata can be attachments, labels, restriction, content properties.
      Parameters:
      entity - : the entity to which metadata will be transferred.
      draft - : the draft object contains metadata.
      Returns:
      the entity with all needed metadata inside. Does nothing if the draft is null