Uploaded image for project: 'Magnolia DAM Module'
  1. Magnolia DAM Module
  2. MGNLDAM-326

Provide utility method to create a new asset

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.2.1
    • 1.1
    • None

    Description

      There is no straightforward way to create a new asset programatically, one needs to create a JCR node, wrap it to become an Asset via #createAsset and open an InputStream from this on, eventually provide the metadatas for it. It'd be helpful to provide some utility methods for that, same way as DMSUtil#addDocument and Document#setFile did in Mgnl 4.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                vgombert Vincent Gombert
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD