Table of contents generated with markdown-toc
AEMAdmin is tool built to automate boring JCR/CRX.DE operations, such as delete a node, updating a property of a node, ...
It also contains AEM specific commands such as queries and page creation.
The list below is a high-level overview, much more details can be found in the Javadocs of each class.
These commands perform operations on node level, such as
- Create node
- Delete node
- Copy node
- Get a node
These commands perform operations on the properties of a node, such as
- add/update a property
- delete a property
- get a property
Often you want to perform a sequence of tasks in a specific order. In this case, you can use the CompositeCommand to define this sequence and execute it in one go.
In some cases you need to process the outcome of a command. That is exactly what
the PostProcessCommand class tackles.
A specific PostProcessCommand is already implemented for handling query results, QueryPostProcessCommand.
When running your command, you sometimes need to provide information on the instance you want to run the command on. You can provide properties on the commandline.
- userName: defaults to
adminif missing - password: defaults to
adminif missing - baseUrl: defaults to
http://localhostif missing. This is the host running your AEM instance - port: defaults to
4502if missing
If you want to run your command on a machine and do not want to download the whole codebase, you can create a standalone uberjar.
Just make sure to update the mainClass value in the maven assembly plugin section in the pom.xml file.
By default the name is just a concatenation of the artifactid, version and jar-with-dependencies. If you want
to replace the first2 parts, update the uberjar.prefix property in the pom file.
My collegue Joeri asked me to give a last-minute presentation on "that tool you're working on". More information on the meetup page itself.
Talk @ AEM meetup hosted by Emakina Amsterdam from Pieter-Jan Drouillon
This software is available for free and can be modified in any way. However, when you do so, please add the following small text to your webpage, blogpost, paper, ...
Original idea and implementation by Pieter-Jan Drouillon