001    /**
002     * Copyright (c) 2000-2013 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            @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    }