Skip to content

Support for cq_jcr property types #56

Description

@jwadolowski

Please added property type support to cq_jcr resource.

Concept:

cq_jcr '/content/test_node' do
  username node['cq']['author']['credentials']['login']
  password node['cq']['author']['credentials']['password']
  instance "http://localhost:#{node['cq']['author']['port']}"
  properties(
    'property_one' => true,
    'property_two' => 'second',
    'property_three' => ['item1', 'item2', 'item3']
  )
  property_types(
    'property_one' => 'Boolean',
    'property_two' => 'String',
    'property_three' => 'String[]'
  )

  action :create
end

Details: https://sling.apache.org/documentation/bundles/manipulating-content-the-slingpostservlet-servlets-post.html#typehint

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions