001: /* Copyright 2002 The JA-SIG Collaborative. All rights reserved.
002: * See license distributed with this file and
003: * available online at http://www.uportal.org/license.html
004: */
005:
006: package org.jasig.portal.services.stats;
007:
008: import org.apache.commons.logging.Log;
009: import org.apache.commons.logging.LogFactory;
010: import org.jasig.portal.ChannelDefinition;
011: import org.jasig.portal.UserProfile;
012: import org.jasig.portal.layout.node.IUserLayoutChannelDescription;
013: import org.jasig.portal.layout.node.IUserLayoutFolderDescription;
014: import org.jasig.portal.security.IPerson;
015:
016: /**
017: * <p>This class can optionally be used as a base class for
018: * any custom stats recorders. It does absolutely nothing
019: * with the recorded statistics.</p>
020: * <p>If you extend this class,
021: * you can override any of the <code>IStatsRecorder</code>
022: * methods that you are interested in and ignore the rest.
023: * Extending this class will also shield you from having to
024: * implement any newly added methods to
025: * <code>IStatsRecorder</code> in the future.</p>
026: * @author Ken Weiner, kweiner@unicon.net
027: * @version $Revision: 36546 $
028: * @deprecated IStatsRecorder implementation is replaced with a much more flexible system based on the Spring ApplicationEventPublisher
029: * and Event Listeners. For more information see:
030: * http://www.ja-sig.org/wiki/display/UPC/Proposal+to+Deprecate+IStatsRecorder
031: */
032: public class BaseStatsRecorder implements IStatsRecorder {
033:
034: protected Log log = LogFactory.getLog(getClass());
035:
036: public void recordLogin(IPerson person) {
037: }
038:
039: public void recordLogout(IPerson person) {
040: }
041:
042: public void recordSessionCreated(IPerson person) {
043: }
044:
045: public void recordSessionDestroyed(IPerson person) {
046: }
047:
048: public void recordChannelDefinitionPublished(IPerson person,
049: ChannelDefinition channelDef) {
050: }
051:
052: public void recordChannelDefinitionModified(IPerson person,
053: ChannelDefinition channelDef) {
054: }
055:
056: public void recordChannelDefinitionRemoved(IPerson person,
057: ChannelDefinition channelDef) {
058: }
059:
060: public void recordChannelAddedToLayout(IPerson person,
061: UserProfile profile,
062: IUserLayoutChannelDescription channelDesc) {
063: }
064:
065: public void recordChannelUpdatedInLayout(IPerson person,
066: UserProfile profile,
067: IUserLayoutChannelDescription channelDesc) {
068: }
069:
070: public void recordChannelMovedInLayout(IPerson person,
071: UserProfile profile,
072: IUserLayoutChannelDescription channelDesc) {
073: }
074:
075: public void recordChannelRemovedFromLayout(IPerson person,
076: UserProfile profile,
077: IUserLayoutChannelDescription channelDesc) {
078: }
079:
080: public void recordFolderAddedToLayout(IPerson person,
081: UserProfile profile, IUserLayoutFolderDescription folderDesc) {
082: }
083:
084: public void recordFolderUpdatedInLayout(IPerson person,
085: UserProfile profile, IUserLayoutFolderDescription folderDesc) {
086: }
087:
088: public void recordFolderMovedInLayout(IPerson person,
089: UserProfile profile, IUserLayoutFolderDescription folderDesc) {
090: }
091:
092: public void recordFolderRemovedFromLayout(IPerson person,
093: UserProfile profile, IUserLayoutFolderDescription folderDesc) {
094: }
095:
096: public void recordChannelInstantiated(IPerson person,
097: UserProfile profile,
098: IUserLayoutChannelDescription channelDesc) {
099: }
100:
101: public void recordChannelRendered(IPerson person,
102: UserProfile profile,
103: IUserLayoutChannelDescription channelDesc) {
104: }
105:
106: public void recordChannelTargeted(IPerson person,
107: UserProfile profile,
108: IUserLayoutChannelDescription channelDesc) {
109: }
110: }
|