Class DraftAttributesCopier
java.lang.Object
com.atlassian.confluence.content.apisupport.DraftAttributesCopier
-
Constructor Summary
ConstructorsConstructorDescriptionDraftAttributesCopier
(AttachmentManager attachmentManager, LabelManager labelManager, ContentPermissionManager contentPermissionManager, ContentPropertyManager contentPropertyManager, ContentPropertyService contentPropertyService) -
Method Summary
Modifier and TypeMethodDescription<T extends ContentEntityObject>
TcopyDraftAttributes
(T entity, Draft draft) Transfers all metadata from draft to the entity.
-
Constructor Details
-
DraftAttributesCopier
public DraftAttributesCopier(AttachmentManager attachmentManager, LabelManager labelManager, ContentPermissionManager contentPermissionManager, ContentPropertyManager contentPropertyManager, ContentPropertyService contentPropertyService)
-
-
Method Details
-
copyDraftAttributes
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
-