# Set properties
set properties on /pathA, /path/B
  set sling:ResourceType{String} to /x/y/z
  set cq:allowedTemplates to /d/e/f/*, m/n/*
  default someInteger{Long} to 42
  set aDouble{Double} to 3.14
  set someFlag{Boolean} to true
  default someDate{Date} to "2020-03-19T11:39:33.437+05:30"
  set customSingleValueStringProp to test
  set customSingleValueQuotedStringProp to "hello, you!"
  set customMultiValueStringProp to test1, test2
  default threeValues to test1, test2, test3
  set quotedA to "Here's a \"double quoted string\" with suffix"
  set quotedMix to "quoted", non-quoted, "the last \" one"
end

set properties on /single/path
  set someString to "some string"
end

set properties on /test/curly/brackets
  set curlyBracketsAndDoubleQuotes{String} to "{\"one, two\":\"three, four\"}"
  set curlyBracketsAndSingleQuotes{String} to "{'five, six':'seven,eight'}"
end

set properties on /endkeyword
  # using "end" instead of "endS" below causes parsing to fail
  set endS to one
  set two to endS
end

set properties on /forcedMultiValue
  set singleMultiValue{String[]} to "single"
  set emptyMultiValue{String[]} to
  set singleLongMultiValue{Long[]} to 1243
  set emptyLongMultiValue{Long[]} to
end

set properties on /blankLinesInList
  set one to two

  set two to four


  set three to five
end

# SLING-10252: set properties on the user or group profile
set properties on authorizable(bob)
  set stringProp to "hello, you!"
end
set properties on authorizable(bob)/nested
  set stringProp to "hello, you nested!"
end

set properties on authorizable(bob), authorizable(alice)
  set stringProp to "hello, you again!"
end
set properties on authorizable(bob)/nested, authorizable(alice)/nested
  set stringProp to "hello, you nested again!"
end
