Pinned topic Publishing assets via API
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
I'm using RAM 184.108.40.206. Is it possible to publish an asset that has already been submitted using the API? The documentation for RAMAsset.getAction() and setAction() doesn't list "publish" as one of the supported actions. Is this correct? I've tried to publish the asset, but with no luck. Is there another way of publishing a submitted asset?
Updated on 2010-04-05T15:40:18Z at 2010-04-05T15:40:18Z by kbauer
kbauer 1100008S9A22 Posts
Re: Publishing assets via API2010-04-05T15:40:18ZThis is the accepted answer. This is the accepted answer.From the same API doc posted above...
//Get the available lifecycle actions
RAMAction actions = newAsset.getAvailableActions();
list available actions.
You can then set actions returned from this list and set it as...
//Set the lifecycle action
session.put(newAsset, new NullProgressMonitor());