001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.ModelListenerException;
018
019
022 public class BaseModelListener<T extends BaseModel<T>>
023 implements ModelListener<T> {
024
025
028 public void onAfterAddAssociation(
029 Object classPK, String associationClassName,
030 Object associationClassPK)
031 throws ModelListenerException {
032 }
033
034
037 public void onAfterCreate(T model) throws ModelListenerException {
038 }
039
040
043 public void onAfterRemove(T model) throws ModelListenerException {
044 }
045
046
049 public void onAfterRemoveAssociation(
050 Object classPK, String associationClassName,
051 Object associationClassPK)
052 throws ModelListenerException {
053 }
054
055
058 public void onAfterUpdate(T model) throws ModelListenerException {
059 }
060
061
064 public void onBeforeAddAssociation(
065 Object classPK, String associationClassName,
066 Object associationClassPK)
067 throws ModelListenerException {
068 }
069
070
073 public void onBeforeCreate(T model) throws ModelListenerException {
074 }
075
076
079 public void onBeforeRemove(T model) throws ModelListenerException {
080 }
081
082
085 public void onBeforeRemoveAssociation(
086 Object classPK, String associationClassName,
087 Object associationClassPK)
088 throws ModelListenerException {
089 }
090
091
094 public void onBeforeUpdate(T model) throws ModelListenerException {
095 }
096
097 }