| BaseModelListener.java |
1 /**
2 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3 *
4 * The contents of this file are subject to the terms of the Liferay Enterprise
5 * Subscription License ("License"). You may not use this file except in
6 * compliance with the License. You can obtain a copy of the License by
7 * contacting Liferay, Inc. See the License for the specific language governing
8 * permissions and limitations under the License, including but not limited to
9 * distribution rights of the Software.
10 *
11 *
12 *
13 */
14
15 package com.liferay.portal.model;
16
17 import com.liferay.portal.ModelListenerException;
18
19 /**
20 * <a href="BaseModelListener.java.html"><b><i>View Source</i></b></a>
21 *
22 * @author Brian Wing Shun Chan
23 */
24 public class BaseModelListener<T extends BaseModel<T>>
25 implements ModelListener<T> {
26
27 /**
28 * @throws ModelListenerException
29 */
30 public void onAfterAddAssociation(
31 Object classPK, String associationClassName,
32 Object associationClassPK)
33 throws ModelListenerException {
34 }
35
36 /**
37 * @throws ModelListenerException
38 */
39 public void onAfterCreate(T model) throws ModelListenerException {
40 }
41
42 /**
43 * @throws ModelListenerException
44 */
45 public void onAfterRemove(T model) throws ModelListenerException {
46 }
47
48 /**
49 * @throws ModelListenerException
50 */
51 public void onAfterRemoveAssociation(
52 Object classPK, String associationClassName,
53 Object associationClassPK)
54 throws ModelListenerException {
55 }
56
57 /**
58 * @throws ModelListenerException
59 */
60 public void onAfterUpdate(T model) throws ModelListenerException {
61 }
62
63 /**
64 * @throws ModelListenerException
65 */
66 public void onBeforeAddAssociation(
67 Object classPK, String associationClassName,
68 Object associationClassPK)
69 throws ModelListenerException {
70 }
71
72 /**
73 * @throws ModelListenerException
74 */
75 public void onBeforeCreate(T model) throws ModelListenerException {
76 }
77
78 /**
79 * @throws ModelListenerException
80 */
81 public void onBeforeRemove(T model) throws ModelListenerException {
82 }
83
84 /**
85 * @throws ModelListenerException
86 */
87 public void onBeforeRemoveAssociation(
88 Object classPK, String associationClassName,
89 Object associationClassPK)
90 throws ModelListenerException {
91 }
92
93 /**
94 * @throws ModelListenerException
95 */
96 public void onBeforeUpdate(T model) throws ModelListenerException {
97 }
98
99 }