Topic
  • 1 reply
  • Latest Post - ‏2010-04-05T15:40:18Z by kbauer
ClemmieMC
ClemmieMC
8 Posts

Pinned topic Publishing assets via API

‏2010-04-05T15:33:13Z |
I'm using RAM 7.2.0.1. 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
    kbauer
    22 Posts

    Re: Publishing assets via API

    ‏2010-04-05T15:40:18Z  
    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
    newAsset.setAction(action);
    session.put(newAsset, new NullProgressMonitor());