Message Boards

Help with model listener for configuration_ table.

Nancy Cooler, modified 3 Years ago.

Help with model listener for configuration_ table.

New Member Post: 1 Join Date: 4/9/20 Recent Posts
I need to create a model listener for the configuration_ table, but I'm not sure how to go about it.   The methodology I'm using extends the BaseModelListener class   that has the following signature:public class BseModelListener<T extends BaseModel<T>> implements  ModelListener<T>My issue is as follows:All of the other db tables/entity classes for which I've successfully added listeners utilize extend the BaseModel class, yet the configuration_ table/entity does not fall into that hierarchy.   I need some advice on how to implement a listener on this table.  I do see a ConfigurationModelListener  interface (in com.liferay.portal.configuration.peristence.api-1.0.4.jar) that provides similar methods such as onAfterSave(), etc, but I haven't been able to get that to work.  Not sure if I need to use the ConfigurationModelListenerProvider class somehow (com.liferay.portal.configuration.persistence.impl-1.0.13.jar)  
Any advice on this would be much appreciated.(using Liferay 7.1)