Class DraftAttributesCopier

  • public class DraftAttributesCopier
    extends Object
    • 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.
        entity - : the entity to which metadata will be transferred.
        draft - : the draft object contains metadata.
        the entity with all needed metadata inside. Does nothing if the draft is null