001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    import com.liferay.portal.ModelListenerException;
018    
019    /**
020     * @author Brian Wing Shun Chan
021     */
022    public class BaseModelListener<T extends BaseModel<T>>
023            implements ModelListener<T> {
024    
025            @SuppressWarnings("unused")
026            public void onAfterAddAssociation(
027                            Object classPK, String associationClassName,
028                            Object associationClassPK)
029                    throws ModelListenerException {
030            }
031    
032            @SuppressWarnings("unused")
033            public void onAfterCreate(T model) throws ModelListenerException {
034            }
035    
036            @SuppressWarnings("unused")
037            public void onAfterRemove(T model) throws ModelListenerException {
038            }
039    
040            @SuppressWarnings("unused")
041            public void onAfterRemoveAssociation(
042                            Object classPK, String associationClassName,
043                            Object associationClassPK)
044                    throws ModelListenerException {
045            }
046    
047            @SuppressWarnings("unused")
048            public void onAfterUpdate(T model) throws ModelListenerException {
049            }
050    
051            @SuppressWarnings("unused")
052            public void onBeforeAddAssociation(
053                            Object classPK, String associationClassName,
054                            Object associationClassPK)
055                    throws ModelListenerException {
056            }
057    
058            @SuppressWarnings("unused")
059            public void onBeforeCreate(T model) throws ModelListenerException {
060            }
061    
062            @SuppressWarnings("unused")
063            public void onBeforeRemove(T model) throws ModelListenerException {
064            }
065    
066            @SuppressWarnings("unused")
067            public void onBeforeRemoveAssociation(
068                            Object classPK, String associationClassName,
069                            Object associationClassPK)
070                    throws ModelListenerException {
071            }
072    
073            @SuppressWarnings("unused")
074            public void onBeforeUpdate(T model) throws ModelListenerException {
075            }
076    
077    }