In a game-changing move aimed at increasing adoption among young, hip, Internet-native developers, Alfresco today released a CMIS client library for the popular brogramming language LOLCODE.
'Everyone who follows me on Twitter knows that I spend most of my waking moments searching for the best lolcats on teh internetz.' said Peter Monks, Alfresco's Director of Hirsute Affairs. “But when I stumbled across LOLCODE and saw the enormous adoption it’s now enjoying, I realised that we needed to ensure that Alfresco’s leading content management services were fully leveragable in lulz critical applications.”
</code></pre><br><br><p dir="ltr">These additions to the LOLCODE language are already garnering critical acclaim from hipsters and humans alike, with powerful new constructs including:</p><br><br><br><br><div dir="ltr"><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><div class="j-rte-table"><table><col width="407"><col width="217"><tbody><tr><td><br><br><p dir="ltr"><strong>Language Construct</strong></p></td><td><br><br><p dir="ltr"><strong>CMIS Operation</strong></p></td></tr><tr><td><br><br><p dir="ltr">CAN HAZ LOLCIMS?</p></td><td><br><br><p dir="ltr">Enable the LOLCMIS capabilities</p></td></tr><tr><td><br><br><p dir="ltr">PLZ OPEN <serverVar> '<CMIS service document URL>'? [PRETTY PLZ WIV '<username>' ['<password>']??]</p></td><td><br><br><p dir="ltr">Connect to a CMIS compliant repository (optionally with a user name and/or password) and retrieve the CMIS service document</p></td></tr><tr><td><br><br><p dir="ltr">IM IN YR <serverVar> LISTING YR <repoVar></p></td><td><br><br><p dir="ltr">List the repos within a CMIS Server</p></td></tr><tr><td><br><br><p dir="ltr">IM IN YR [<repoVar>|<folderVar>] LISTING YR <contentVar></p></td><td><br><br><p dir="ltr">List the contents of a repo’s root folder or folder</p></td></tr><tr><td><br><br><p dir="ltr">GIMMEH TEH CONTNT OF <fileVar></p></td><td><br><br><p dir="ltr">Download content</p></td></tr><tr><td><br><br><p dir="ltr">MAEK [FIEL|FODLR] <contentVar> IN <folderVar> WIV <properties> [AN <contentLength>:<content>]</p></td><td><br><br><p dir="ltr">Create a new file or folder using the properties and (optional) content</p></td></tr><tr><td><br><br><p dir="ltr">OOPS! FIX <contentVar> WIV <properties> [AN <contentLength>:<contentData>]</p></td><td><br><br><p dir="ltr">Update an existing file or folder using the properties and (optional) content</p></td></tr><tr><td><br><br><p dir="ltr">DO NOT WANT [<folderVar>|<contentVar>]</p></td><td><br><br><p dir="ltr">Deletion</p></td></tr><tr><td><br><br><p dir="ltr">IM IN YR <folderVar> KILLING YR CONTNT</p></td><td><br><br><p dir="ltr">Bulk deletion</p></td></tr><tr><td><br><br><p dir="ltr">ALL YR CONTNT ARE BELONG TO US</p></td><td><br><br><p dir="ltr">Policy management</p></td></tr></tbody></table></div><br><br></div><br><br><p dir="ltr">Here is a sample program that lists the contents of the default repository in a CMIS server, demonstrating just how idiomatic these new capabilities are:</p><br><br><br><br><pre><code>HAI 1.2
CAN HAZ STDIO?
BTW Load the new CMIS library
CAN HAZ LOLCIMS?
BTW Attempt to connect to the CMIS server
PLZ OPEN SERVR 'https://alfresco.kittehz.com/cmis/1.0/atom'? PRETTY PLZ WIV 'admin' 'admin'??
AWSUM THX
BTW Find the default repo
IM IN YR SERVR LISTING YR REPO
BOTH SAEM REPO['default'] AN WIN, O RLY?
YA RLY
BTW List all contents of the default repo
IM IN YR REPO LISTING YR STUFF
VISIBLE 'U HAS A ' STUFF['cm:title']
IM OUTTA YR REPO
NO WAI
VISIBLE 'U HAZ NO STUFF'
IM OUTTA YR SERVR
O NOES
VISIBLE 'TEH INTERNETZ IZ BORKED!!!1'
KTHXBYE
Alfresco is currently in discussions to contribute the code to the Apache Chemistry project - stay tuned for further announcements.