Skip to content

Commit

Permalink
Add CND for AEMaaCS 2023.10.13804
Browse files Browse the repository at this point in the history
This closes #10
  • Loading branch information
kwin committed Oct 16, 2023
1 parent 514ecdf commit d177b09
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
![Java CI/CD](https://github.com/Netcentric/aem-nodetypes/workflows/Java%20CI/CD/badge.svg)

# Overview

Provides a [CND file][1] with all Node types and Namespaces defined in AEM. It can be used for the [FileVault Validation Module][2] and its `jackrabbit-nodetype` validator.

# Usage with Maven

You can use this module with the [FileVault Package Maven Plugin][3] in version 1.1.4 or higher like this

```
Expand All @@ -27,7 +29,7 @@ You can use this module with the [FileVault Package Maven Plugin][3] in version
<dependency>
<groupId>biz.netcentric.aem</groupId>
<artifactId>aem-nodetypes</artifactId>
<version>2022.10.0</version>
<version>2023.10.0</version>
</dependency>
</dependencies>
</plugin>
Expand All @@ -42,10 +44,15 @@ You can use this module with the [FileVault Package Maven Plugin][3] in version

| Version | Type | Description |
| --------- | ------- | ------------ |
| 2023.10.0 | Cloud | Exported from AEM SDK 2023.10.13804.20231005T183332Z-230902. |
| 2022.10.0 | Cloud | Exported from AEM SDK 2022.10.9398.20221020T071514Z. |
| 2020.11.0 | Cloud | Exported from AEM SDK 2020.11.4506.20201112T235200Z. |
| 2020.09.0 | Cloud | Exported from AEM SDK 2020.9.4194.20200909T200349Z-200827. Suffers from <https://github.com/Netcentric/aem-nodetypes/issues/2> |
| 6.5.7.0 | Classic | Exported from AEM 6.5.7 |
| 6.5.5.0 | Classic | Exported from AEM 6.5.5, has not changed for AEM 6.5.6. Suffers from <https://github.com/Netcentric/aem-nodetypes/issues/2> |

Pick the version which is closest to your AEM version. In general the node types are very stable (i.e. do not change for service packs in Classic and very rarely in Cloud aka AEMaaCS).

# Generation of CND

The CND exposed by this Maven artifact is exported from a running plain AEM version through the [JCR Web Console Plugin 1.1.0](https://issues.apache.org/jira/browse/SLING-9945) via the endpoint `/system/console/status-JCR%20CND.txt`.
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>biz.netcentric.aem</groupId>
<artifactId>aem-nodetypes</artifactId>
<version>2022.10.1-SNAPSHOT</version>
<version>2023.10.0-SNAPSHOT</version>

<packaging>jar</packaging>
<name>AEM Node Types and Namespaces</name>
Expand Down Expand Up @@ -37,7 +37,6 @@
<connection>scm:git:ssh://git@github.com/Netcentric/aem-nodetypes.git</connection>
<developerConnection>scm:git:ssh://git@github.com/Netcentric/aem-nodetypes.git</developerConnection>
<url>https://github.com/Netcentric/aem-nodetypes.git</url>
<tag>2020.11.0</tag>
</scm>

<distributionManagement>
Expand Down
22 changes: 21 additions & 1 deletion src/main/resources/aem.cnd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* #%L
* AEM Nodetypes
* %%
* Copyright (C) 2022 Cognizant Netcentric
* Copyright (C) 2023 Cognizant Netcentric
* %%
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
Expand Down Expand Up @@ -200,6 +200,16 @@
[cq:Dialog] > cq:Widget
orderable

[cq:ReplicationStatus2]
mixin
- cq:lastReplicated_publish (date) ignore
- cq:lastReplicatedBy_publish (string) ignore
- cq:lastReplicationAction_publish (string) ignore
- cq:lastReplicated_preview (date) ignore
- cq:lastReplicatedBy_preview (string) ignore
- cq:lastReplicationAction_preview (string) ignore
- cq:isDelivered (boolean) ignore

[cq:WorkflowModel] > mix:versionable
orderable
- description (string)
Expand Down Expand Up @@ -424,6 +434,13 @@
- cq:trigger (string) mandatory
+ * (cq:LiveSyncAction) mandatory

[sling:ResourceMerger]
mixin
- sling:hideProperties (string) multiple
- sling:hideChildren (string) multiple
- sling:hideResource (boolean)
- sling:orderBefore (string)

[sling:MessageEntry] > nt:hierarchyNode, sling:Message

[rep:Authorizable] > mix:referenceable, nt:hierarchyNode
Expand Down Expand Up @@ -1056,6 +1073,9 @@

[rep:GrantACE] > rep:ACE

[dam:IndexedFragmentData] > mix:referenceable
mixin

[rep:ChildNodeDefinitions]
+ * (rep:ChildNodeDefinition) = rep:ChildNodeDefinition protected

Expand Down

0 comments on commit d177b09

Please sign in to comment.