Message Boards

How to track page/layout level changes in liferay

avasek atok, modified 9 Years ago.

How to track page/layout level changes in liferay

Junior Member Posts: 41 Join Date: 1/9/15 Recent Posts
How to track changes in a page/layout in liferay for auditing. I came to know there is a component in market place which is built for the same kind of purpose, but however need some guidance in how to use it for
1)To track the user who has changed theme of a page/layout
2)To track the user who has changed permissions of a page/layout
avasek atok, modified 9 Years ago.

RE: How to track page/layout level changes in liferay

Junior Member Posts: 41 Join Date: 1/9/15 Recent Posts
Can anyone help me here
thumbnail
David H Nebinger, modified 9 Years ago.

RE: How to track page/layout level changes in liferay

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
Well first it's kind of a nonsense question. Admins are typically the only ones changing pages (themes or permissions), so you're trying to audit what your admins are doing. If you can't trust your admins, well then I think you have bigger issues. Users can change their own pages themes and permissions, but as it's their own pages auditing that information is pretty darn pointless.

Now auditing in general is not all that difficult. In fact, when you use the audit plugin from the marketplace, you can see that they use ModelListeners to intercept calls for the Users table. Using that model, you can create model listeners for the various classes in order to add auditing information.
Scott Lawrence, modified 6 Years ago.

RE: How to track page/layout level changes in liferay

New Member Posts: 2 Join Date: 9/8/15 Recent Posts
David H Nebinger:
Well first it's kind of a nonsense question.


Wow Dave. Glad Liferay doesn't agree with you. https://dev.liferay.com/discover/portal/-/knowledge_base/6-2/audit-trails#installing-and-configuring-the-audit-plugins
thumbnail
David H Nebinger, modified 6 Years ago.

RE: How to track page/layout level changes in liferay

Liferay Legend Posts: 14919 Join Date: 9/2/06 Recent Posts
You totally missed the context of my reply.

Auditing is important. I have some of the oldest wiki articles out there describing how the Liferay audit mechanism works and I show how to add support for it in custom portlets.

The reason this particular case is nonsense is because, like I said, you are trying to audit activities of your administrators. As an admin, you have a certain level of trust well beyond that of an average user. When giving out the administrator role, you are inherently granting your trust to that person to do the right thing.