1
14
15 package com.liferay.portal.model;
16
17 import com.liferay.portal.ModelListenerException;
18
19
24 public class BaseModelListener<T extends BaseModel<T>>
25 implements ModelListener<T> {
26
27
30 public void onAfterAddAssociation(
31 Object classPK, String associationClassName,
32 Object associationClassPK)
33 throws ModelListenerException {
34 }
35
36
39 public void onAfterCreate(T model) throws ModelListenerException {
40 }
41
42
45 public void onAfterRemove(T model) throws ModelListenerException {
46 }
47
48
51 public void onAfterRemoveAssociation(
52 Object classPK, String associationClassName,
53 Object associationClassPK)
54 throws ModelListenerException {
55 }
56
57
60 public void onAfterUpdate(T model) throws ModelListenerException {
61 }
62
63
66 public void onBeforeAddAssociation(
67 Object classPK, String associationClassName,
68 Object associationClassPK)
69 throws ModelListenerException {
70 }
71
72
75 public void onBeforeCreate(T model) throws ModelListenerException {
76 }
77
78
81 public void onBeforeRemove(T model) throws ModelListenerException {
82 }
83
84
87 public void onBeforeRemoveAssociation(
88 Object classPK, String associationClassName,
89 Object associationClassPK)
90 throws ModelListenerException {
91 }
92
93
96 public void onBeforeUpdate(T model) throws ModelListenerException {
97 }
98
99 }