since ‎01-12-2020
‎17-02-2021
infinityskyline
Level 1
Re: Audit log with extra information
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
@Sanket_Kumbharkhane I have created eventlistener class to achieve event handling at the JCR level. Everything is working as given in the example. But how can I achieve value of the property on PROPERTY_CHANGED or PROPERTY_ADDED event?

Views

83

Likes

0

Replies

0
Re: Audit log with extra information
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
Yes true, but audit log doesn't log what content changes has been made. For example, if value of a property is changed from "Hello World" to "Hello Earth" I want to log both old and new values, if not both at least the new value. I am trying out other suggestions.

Views

123

Likes

0

Replies

0
Re: Audit log with extra information
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
But this is to search audit log, which I am not bothered right now. I am bothered about the nature of log audit log has.

Views

157

Likes

0

Replies

0
Audit log with extra information
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
My project has requirement to log all user activities.. i.e., what all is happening in the environment and by whom. I have enabled audit logging feature in AEM by going to http://localhost:4502/system/console/slinglog -> change the log level of logs/audit.log to DEBUG. This solves my purpose and logs all the user activities but it doesn't log what content changes has been made. For example, if value of a property is changed from "Hello World" to "Hello Earth" I want to log both old and new value...

Views

281

Likes

0

Replies

10
Re: AEM : Access to global values from dialog-clientlib
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
@BrianKasingliyes I did create a servlet with "sling.servlet.paths=" + "/bin/mycustomservlet" . And your second opinion is something which I was doing previously but unfortunately for a certain resolution when a cq dialog open full screen page content is not there in the DOM and just the dialog html is there so not able to access the DOM to which these values are attached.But it worked atlast.. There was some build problem, got it sorted. Thanks

Views

129

Likes

0

Replies

0
Re: AEM : Access to global values from dialog-clientlib
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
@BrianKasinglihttp://localhost:4502/bin/mycustomservlet?_=1610179346273 is not accessible throwing 404. Checked config manager /bin/ is there in the execution path. But the servlet is not present in the project bundle.

Views

145

Likes

0

Replies

0
AEM : Access to global values from dialog-clientlib
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
Currently, I am storing certain value as in data-attributes in customheaderlibs.htmland were reading these values byconst iframeContents = document.querySelector('iframe').contentWindow.document.body; const configElement = iframeContents.querySelector('div[data-score]'); This works fine for certain resolution of a screen. But in smaller viewport such as in iPad where cq dialog opens as a full screen and not as a dialog box, customheaderlibs.html seems to be absent from the DOM. Hence, these data...

Views

222

Likes

0

Replies

7
Re: AEM - Predicate to list only immediate children
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
@shelly I am getting "'Granite' is not defined"

Views

166

Likes

0

Replies

0
AEM - Predicate to list only immediate children
Avatar

infinityskyline

infinityskyline
- Adobe Experience Manager
I am using aem-commons's contextualPathBrowser (similar to pathfiled component) with a predicate property. The java predicate class will evaluate the nodes and only return children pages(cq:Page) in the path picker for user to select from. Predicate class given below: @Component( service = Predicate.class, property = { "predicate.name=pagePathPredicate" } ) public class PagePathPredicate extends AbstractNodePredicate { @Override public boolean evaluate(final Node node) throws RepositoryException...

Views

232

Likes

0

Replies

3