blob: bd7c5afcc2b540ec1ed02fbae2ec770003e8f24e [file] [log] [blame]
CreateServiceUser user1
CreateServiceUser u-ser_2
SetAclPaths on /libs /apps
AclLine REMOVE_ALL {principals=[user1, u-ser_2]}
AclLine ALLOW {principals=[user1, u-ser_2], privileges=[jcr:read]}
AclLine DENY {principals=[u-ser_2], privileges=[jcr:write]}
AclLine DENY {principals=[user1], privileges=[jcr:lockManagement]}
AclLine REMOVE {principals=[u3], privileges=[jcr:understand, some:other]}
CreateServiceUser bob_the_service
CreateServiceUser zoo_the_keeper with path relative/zoo
CreateServiceUser zoo_the_keeper with path /absolute/zoo
SetAclPaths on /tmp
AclLine ALLOW {principals=[bob_the_service], privileges=[some:otherPrivilege]}
CreatePath [content, example.com(sling:Folder)]
CreatePath [var(nt:unstructured)]
SetAclPrincipals for alice bob fred
AclLine REMOVE_ALL {paths=[/]}
AclLine ALLOW {paths=[/content, /var], privileges=[jcr:read]}
AclLine DENY {paths=[/content/example.com], privileges=[jcr:write]}
AclLine DENY {nodetypes=[example:Page], paths=[/], privileges=[jcr:all]}
SetAclPrincipals for restrictions_examples
AclLine DENY {nodetypes=[sling:Folder, nt:unstructured], paths=[/apps, /content], privileges=[jcr:modifyProperties]} restrictions=[rep:itemNames=[prop1, prop2]]
AclLine ALLOW {paths=[/apps], privileges=[jcr:addChildNodes]} restrictions=[rep:ntNames=[sling:Folder, nt:unstructured]]
AclLine ALLOW {paths=[/apps], privileges=[jcr:modifyProperties]} restrictions=[rep:ntNames=[sling:Folder, nt:unstructured], rep:itemNames=[prop1, prop2]]
AclLine ALLOW {paths=[/apps, /content], privileges=[jcr:addChildNodes]} restrictions=[rep:glob=[/cat/*, */cat, *cat/*]]
AclLine ALLOW {paths=[/], privileges=[jcr:something]} restrictions=[rep:glob=[]]
RegisterNamespace (NSprefix) uri:someURI/v1.42
RegisterNodetypes:
<slingevent='http://sling.apache.org/jcr/event/1.0'>
[slingevent:Event] > nt:unstructured, nt:hierarchyNode
- slingevent:topic (string)
- slingevent:properties (binary)
register privilege crx:replicate
register privilege priv
register abstract privilege abstract_priv
register privilege priv with declared_aggregate_priv
register privilege priv with declared_aggregate_priv1,declared_aggregate_priv2
CreateUser userE (with encoded password), password=afdgwdsdf, passwordEncoding=someEncoding
CreateUser one_with-more-chars.ok:/123456 (with encoded password), password=pw-with.ok-:/13456, passwordEncoding=encoding_with.ok-:/12345
CreateUser userF with path /for/userF
CreateUser userG with path /for/userG (with password), password=ggg
CreateUser userH with path for/userH
CreateUser userJ with path for/userJ (with password), password=jjj
CreateServiceUser the-last-one
DisableServiceUser svc1 : This is the message
CreateGroup since124_A
CreateGroup since124_B with path /path_B
DeleteGroup since124_C
SetAclPaths on :home:alice#
AclLine ALLOW {principals=[alice, bob, carol], privileges=[jcr:one]}
SetAclPrincipals for bob
AclLine ALLOW {paths=[:home:alice#, /another/path, :home:larry#], privileges=[jcr:two]}
SetAclPaths on :home:alice#/sub/folder/of/their/homes
AclLine ALLOW {principals=[fred], privileges=[jcr:three]}
AddGroupMembers user1 user2 in group grpA
RemoveGroupMembers user3 user5 in group grpB
SetProperties on /pathA /path/B
PropertyLine sling:ResourceType{String}=[{String}/x/y/z]
PropertyLine default someInteger{Long}=[{Long}42]
PropertyLine someFlag{Boolean}=[{Boolean}true]
PropertyLine default someDate{Date}=[{GregorianCalendar}2020-03-19T11:39:33.437+05:30]
PropertyLine quotedMix{String}=[{String}quoted, {String}non-quoted, {String}the last " one]