Alfresco with a Clojure taste
Lambdalf is a Clojure adapter around the Alfresco Foundation API. Currently the following features are supported:
onAddAspect
events(defn set-meta
"Sets some metadata properties on the node"
[node]
(n/set-properties! node "cm:title" "foobar" "my:property" "value"))
(defn add-aspect
"Executes fun upon qname aspect application"
[qname fun]
(b/on-add-aspect! qname fun))
lambdalf-lib -- a JAR project, contains all the real code provided in lambdalf. Use this as a dependency to leverage lambdalf code.
lambdalf
-- an AMP project, built from the Maven AMP plugin. It
ships lambdalf-lib
plus an AMP structure to easily install
lambdalf
on your Alfresco instance, plus some goodies like a web
script to start a swank server to open a REPL from Emacs to a
running Alfresco instane.
In order to build this projects yourself, you need a working Maven installation (tested with v3.0).
By default, the project uses the latest artifacts provided in the official Alfresco maven repository. As Alfresco doesn't always ship artifacts in a timely fashion, you can download the alfresco.war file and extract and install artifacts from it following this guide.
More of a show and tell than real products, some samples are provided to verify and explain the features of lambdalf.