jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "ExamplesPage" by amallogia
Date Tue, 15 Feb 2011 19:58:29 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The "ExamplesPage" page has been changed by amallogia.
http://wiki.apache.org/jackrabbit/ExamplesPage?action=diff&rev1=38&rev2=39

--------------------------------------------------

  {{{
  /* Retrieve node type manager from the session */
  NodeTypeManager nodeTypeManager = session.workspace.nodeTypeManager
+ 
  /* Create node type */
  NodeTypeTemplate nodeType = nodeTypeManager.createNodeTypeTemplate()
  nodeType.name = "my_custom_node_type"
+ 
  /* Create a new property */
  PropertyDefinitionTemplate customProperty = nodeTypeManager.createPropertyDefinitionTemplate()
  customProperty.name = "my_custom_property"

Mime
View raw message