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

Provide utility method to create a new asset

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD