cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Type and Mime Type After Load

jono
Champ in-the-making
Champ in-the-making
Hi,

With the Javascript API is is possible to

1. Change a type of an object to a custom type?
2- Update the mime type of the object ?

AN example of both would be great is possible.

Thanks,
Jono
4 REPLIES 4

kevinr
Star Contributor
Star Contributor
Hi Jono, hope everything is well with you Smiley Happy

Neither of those features are present in the JavaScript API for 1.3. I'll add them to the list for 1.4.

Thanks,

Kevin

jono
Champ in-the-making
Champ in-the-making
Hi Kev,

Great actually, you too?

Thanks for the info. What is the strategy with the javascript API?
Is the intention to have a complete API set available for those too lazy to write java like myself.

Cheers,
Jono

kevinr
Star Contributor
Star Contributor
Hi,

All is very well here thanks Jono.

Yes the intention is to expand the JavaScript API to include access to all the appropriate services in the Repository. So we envisage future enhancements to support checkin, checkout, transform documents, set permissions, start workflow, execute template etc.etc.

For the 1.4 timeframe, support for setting of permissions and basic document actions will be added. Hopefully there will also be time to add support for promote and setMimetype as you mentioned previously.

In addition the ability to execute JavaScript files via Path using URLs is part of 1.4 HEAD code now - so you no longer need the fiddly NodeRef to a script/template to execute it. This makes writing external apps that use the URL support easier and more portable.

Cheers,

Kevin

kevinr
Star Contributor
Star Contributor
The two items you noted, plus several other exciting new features have been added to the Alfresco 1.4 JavaScript engine:
http://wiki.alfresco.com/wiki/JavaScript_API
including an enhanced security API, checkin/checkout functions and document/image transformations.

Thanks,

Kevin