Class DraftAttributesCopier
- java.lang.Object
-
- com.atlassian.confluence.content.apisupport.DraftAttributesCopier
-
public class DraftAttributesCopier extends Object
-
-
Constructor Summary
Constructors Constructor Description DraftAttributesCopier(AttachmentManager attachmentManager, LabelManager labelManager, ContentPermissionManager contentPermissionManager, ContentPropertyManager contentPropertyManager, ContentPropertyService contentPropertyService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends ContentEntityObject>
TcopyDraftAttributes(T entity, Draft draft)
Transfers all metadata from draft to the entity.
-
-
-
Constructor Detail
-
DraftAttributesCopier
public DraftAttributesCopier(AttachmentManager attachmentManager, LabelManager labelManager, ContentPermissionManager contentPermissionManager, ContentPropertyManager contentPropertyManager, ContentPropertyService contentPropertyService)
-
-
Method Detail
-
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
-
-