[MGNLDAM-326] Provide utility method to create a new asset Created: 23/Oct/13  Updated: 11/Dec/13  Resolved: 10/Dec/13

Status: Closed
Project: Magnolia DAM Module
Component/s: None
Affects Version/s: 1.1
Fix Version/s: 1.2.1

Type: Improvement Priority: Major
Reporter: Vincent Gombert Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
causality
is causing MGNLDAM-359 Revise implementation of AssetUtil.cr... Open
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Support

 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.



 Comments   
Comment by Roman Kovařík [ 10/Dec/13 ]

Mark this method as deprecated with a comment saying that this is a tmp solution and a more complete solution will be provided in DAM 1.3.

Generated at Mon Feb 12 04:58:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.