That appears to need to reference a file though.
Asset is created by AssetManager
and can be retrieved either via AssetManager
or by adapting a asset Resource
to an Asset
.
eg: // to create an asset AssetManager assetManager = resolver.adaptTo(AssetManager.class); Asset newAsset = assetManager.createAsset("/path/to/asset/document.pdf");
I'm thinking the system can't create an asset record without a file object to refer to. I can accomplish what I need to do by creating a small file with the known final asset filename and ingest beforehand, then update with the real asset when ready.
Is that not correct?
Thanks!
Jim P