001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }