Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
norsasaki committed Oct 17, 2023
1 parent cd28ea6 commit 20dbc76
Show file tree
Hide file tree
Showing 12 changed files with 682 additions and 0 deletions.
5 changes: 5 additions & 0 deletions actool-example/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Manifest-Version: 1.0
Content-Package-Id: my_packages:actool-example
Content-Package-Roots: /apps/actool-example
Content-Package-Type: application

93 changes: 93 additions & 0 deletions actool-example/META-INF/vault/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vaultfs version="1.1">
<!--
Defines the content aggregation. The order of the defined aggregates
is important for finding the correct aggregator.
-->
<aggregates>
<!--
Defines an aggregate that handles nt:file and nt:resource nodes.
-->
<aggregate type="file" title="File Aggregate"/>

<!--
Defines an aggregate that handles file/folder like nodes. It matches
all nt:hierarchyNode nodes that have or define a jcr:content
child node and excludes child nodes that are nt:hierarchyNodes.
-->
<aggregate type="filefolder" title="File/Folder Aggregate"/>

<!--
Defines an aggregate that handles nt:nodeType nodes and serializes
them into .cnd notation.
-->
<aggregate type="nodetype" title="Node Type Aggregate" />

<!--
Defines an aggregate that defines full coverage for certain node
types that cannot be covered by the default aggregator.
-->
<aggregate type="full" title="Full Coverage Aggregate">
<matches>
<include nodeType="rep:AccessControl" respectSupertype="true" />
<include nodeType="rep:Policy" respectSupertype="true" />
<include nodeType="cq:Widget" respectSupertype="true" />
<include nodeType="cq:EditConfig" respectSupertype="true" />
<include nodeType="cq:WorkflowModel" respectSupertype="true" />
<include nodeType="vlt:FullCoverage" respectSupertype="true" />
<include nodeType="mix:language" respectSupertype="true" />
<include nodeType="sling:OsgiConfig" respectSupertype="true" />
</matches>
</aggregate>

<!--
Defines an aggregate that handles nt:folder like nodes.
-->
<aggregate type="generic" title="Folder Aggregate">
<matches>
<include nodeType="nt:folder" respectSupertype="true" />
</matches>
<contains>
<exclude isNode="true" />
</contains>
</aggregate>

<!--
Defines the default aggregate
-->
<aggregate type="generic" title="Default Aggregator" isDefault="true">
<matches>
<!-- all -->
</matches>
<contains>
<exclude nodeType="nt:hierarchyNode" respectSupertype="true" />
</contains>
</aggregate>

</aggregates>

<!--
defines the input handlers
-->
<handlers>
<handler type="folder"/>
<handler type="file"/>
<handler type="nodetype"/>
<handler type="generic"/>
</handlers>
</vaultfs>
25 changes: 25 additions & 0 deletions actool-example/META-INF/vault/definition/.content.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:vlt="http://www.day.com/jcr/vault/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:created="{Date}2023-10-17T14:05:32.908+09:00"
jcr:createdBy="admin"
jcr:description=""
jcr:lastModified="{Date}2023-10-17T14:05:32.908+09:00"
jcr:lastModifiedBy="admin"
jcr:primaryType="vlt:PackageDefinition"
buildCount="1"
builtWith="Adobe Experience Manager-6.5.17.0"
group="my_packages"
lastUnwrapped="{Date}2023-10-17T14:05:32.908+09:00"
lastUnwrappedBy="admin"
lastWrapped="{Date}2023-10-17T14:05:32.908+09:00"
lastWrappedBy="admin"
name="actool-example"
version="">
<filter jcr:primaryType="nt:unstructured">
<f0
jcr:primaryType="nt:unstructured"
mode="replace"
root="/apps/actool-example"
rules="[]"/>
</filter>
</jcr:root>
4 changes: 4 additions & 0 deletions actool-example/META-INF/vault/filter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/apps/actool-example"/>
</workspaceFilter>
13 changes: 13 additions & 0 deletions actool-example/META-INF/vault/nodetypes.cnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<'sling'='http://sling.apache.org/jcr/sling/1.0'>
<'nt'='http://www.jcp.org/jcr/nt/1.0'>
<'rep'='internal'>

[sling:Folder] > nt:folder
- * (undefined) multiple
- * (undefined)
+ * (nt:base) = sling:Folder version

[rep:RepoAccessControllable]
mixin
+ rep:repoPolicy (rep:Policy) protected ignore

19 changes: 19 additions & 0 deletions actool-example/META-INF/vault/properties.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>FileVault Package Properties</comment>
<entry key="description"></entry>
<entry key="packageType">application</entry>
<entry key="lastWrappedBy">admin</entry>
<entry key="packageFormatVersion">2</entry>
<entry key="group">my_packages</entry>
<entry key="created">2023-10-17T14:05:32.916+09:00</entry>
<entry key="lastModifiedBy">admin</entry>
<entry key="buildCount">1</entry>
<entry key="lastWrapped">2023-10-17T14:05:32.908+09:00</entry>
<entry key="version"></entry>
<entry key="dependencies"></entry>
<entry key="createdBy">admin</entry>
<entry key="name">actool-example</entry>
<entry key="lastModified">2023-10-17T14:05:32.908+09:00</entry>
</properties>
6 changes: 6 additions & 0 deletions actool-example/jcr_root/.content.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable,rep:RepoAccessControllable]"
jcr:primaryType="rep:root"
sling:resourceType="sling:redirect"
sling:target="/index.html"/>
4 changes: 4 additions & 0 deletions actool-example/jcr_root/apps/.content.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:mixinTypes="[rep:AccessControllable]"
jcr:primaryType="sling:Folder"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
# System configuration (all global fragments)

- group_config:

- fragment-basic-allow:

- name:
memberOf:
path: f

- fragment-restrict-for-everyone:

- name:
memberOf:
path: f




- ace_config:


- fragment-basic-allow:

- path: /
permission: allow
actions: read
privileges:
repGlob:

## allows access to nodes that are readable for all users
### /content
- path: /content
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /content
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


### /content/experience-fragments
- path: /content/experience-fragments
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /content/experience-fragments
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


### /content/dam
- path: /content/dam
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /content/dam
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


### /content/dam/projects
- path: /content/dam/projects
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /content/dam/projects
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


### /content/dam/collections
- path: /content/dam/collections
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /content/dam/collections
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


### /content/projects
- path: /content/projects
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /content/projects
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


### /content/cq:tags
- path: /content/cq:tags
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /content/cq:tags
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


### /conf
- path: /conf
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: ""

- path: /conf
permission: allow
actions:
privileges: jcr:read,jcr:readAccessControl
repGlob: /jcr:*


- fragment-restrict-for-everyone:

# reset acls of the user contents for the built-in groups
- path: /content
permission: deny
actions:
privileges: jcr:all
repGlob:


- path: /content/experience-fragments
permission: deny
actions:
privileges: jcr:all
repGlob:


- path: /content/dam
permission: deny
actions:
privileges: jcr:all
repGlob:


- path: /content/dam/projects
permission: deny
actions:
privileges: jcr:all
repGlob:


- path: /content/dam/collections
permission: deny
actions:
privileges: jcr:all
repGlob:


- path: /content/projects
permission: deny
actions:
privileges: jcr:all
repGlob:


- path: /content/cq:tags
permission: deny
actions:
privileges: jcr:all
repGlob:


- path: /conf
permission: deny
actions:
privileges: jcr:all
repGlob:






Loading

0 comments on commit 20dbc76

Please sign in to comment.