001    /**
002     * Copyright (c) 2000-2013 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            @Override
026            @SuppressWarnings("unused")
027            public void onAfterAddAssociation(
028                            Object classPK, String associationClassName,
029                            Object associationClassPK)
030                    throws ModelListenerException {
031            }
032    
033            @Override
034            @SuppressWarnings("unused")
035            public void onAfterCreate(T model) throws ModelListenerException {
036            }
037    
038            @Override
039            @SuppressWarnings("unused")
040            public void onAfterRemove(T model) throws ModelListenerException {
041            }
042    
043            @Override
044            @SuppressWarnings("unused")
045            public void onAfterRemoveAssociation(
046                            Object classPK, String associationClassName,
047                            Object associationClassPK)
048                    throws ModelListenerException {
049            }
050    
051            @Override
052            @SuppressWarnings("unused")
053            public void onAfterUpdate(T model) throws ModelListenerException {
054            }
055    
056            @Override
057            @SuppressWarnings("unused")
058            public void onBeforeAddAssociation(
059                            Object classPK, String associationClassName,
060                            Object associationClassPK)
061                    throws ModelListenerException {
062            }
063    
064            @Override
065            @SuppressWarnings("unused")
066            public void onBeforeCreate(T model) throws ModelListenerException {
067            }
068    
069            @Override
070            @SuppressWarnings("unused")
071            public void onBeforeRemove(T model) throws ModelListenerException {
072            }
073    
074            @Override
075            @SuppressWarnings("unused")
076            public void onBeforeRemoveAssociation(
077                            Object classPK, String associationClassName,
078                            Object associationClassPK)
079                    throws ModelListenerException {
080            }
081    
082            @Override
083            @SuppressWarnings("unused")
084            public void onBeforeUpdate(T model) throws ModelListenerException {
085            }
086    
087    }