Skip to content

Instantly share code, notes, and snippets.

@jpotts
Created April 28, 2014 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpotts/11385135 to your computer and use it in GitHub Desktop.
Save jpotts/11385135 to your computer and use it in GitHub Desktop.
Create an instance of a custom type in Alfresco that extends sys:base using cmis:item support in CMIS 1.1
clientName = "Some Client"
folder = session.getObjectByPath('/test/testfolder1')
props = new HashMap<String, Object>()
props["cmis:objectTypeId"] = "I:sc:client"
props["sc:clientId"] = "56789"
props["sc:clientName"] = clientName
props["cmis:name"] = clientName
clientObj = folder.createItem(props)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment