01: /* Copyright 2002 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.services.stats;
07:
08: import org.jasig.portal.UserProfile;
09: import org.jasig.portal.layout.node.IUserLayoutChannelDescription;
10: import org.jasig.portal.security.IPerson;
11:
12: /**
13: * Records the updating of a channel in a user's layout
14: * in a separate thread.
15: * @author Ken Weiner, kweiner@unicon.net
16: * @version $Revision: 36546 $
17: *
18: * @deprecated IStatsRecorder implementation is replaced with a much more flexible system
19: * based on the Spring ApplicationEventPublisher and Event Listeners.
20: * For more information see:
21: * http://www.ja-sig.org/wiki/display/UPC/Proposal+to+Deprecate+IStatsRecorder
22: */
23: public class RecordChannelUpdatedInLayoutWorkerTask extends
24: StatsRecorderWorkerTask {
25:
26: IPerson person;
27: UserProfile profile;
28: IUserLayoutChannelDescription channelDesc;
29:
30: public RecordChannelUpdatedInLayoutWorkerTask(IPerson person,
31: UserProfile profile,
32: IUserLayoutChannelDescription channelDesc) {
33: this .person = person;
34: this .profile = profile;
35: this .channelDesc = channelDesc;
36: }
37:
38: public void execute() throws Exception {
39: this.statsRecorder.recordChannelUpdatedInLayout(this.person,
40: this.profile, this.channelDesc);
41: }
42: }
|