01: /* Copyright 2001 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;
07:
08: import org.xml.sax.ContentHandler;
09:
10: /**
11: * An interface for multithreaded channels.
12: * Multithreaded channels are trusted to keep their own state/session/user
13: * separation (instead of relying on the servlet engine to do so).
14: * The methods are exact analogs of those in {@link IChannel} interface,
15: * but means to identify the channel instance are passed along
16: * with each method.
17: * Please refer to {@link IChannel} interface for method descriptions.
18: * @author Peter Kharchenko {@link <a href="mailto:pkharchenko@interactivebusiness.com">pkharchenko@interactivebusiness.com</a>}
19: * @version $Revision: 36690 $
20: * @see IChannel
21: * @see IMultithreadedCacheable
22: *
23: * @deprecated Use the IChannel* interfaces instead or write a portlet. For more information see:
24: * http://www.ja-sig.org/wiki/display/UPC/Proposal+to+Deprecate+IMultithreaded+Interfaces
25: */
26:
27: public interface IMultithreadedChannel {
28:
29: /**
30: * @param uid a string uniqly identifying a channel "instance" in the system.
31: * For example, a combination of session id and channel instance id would fit the bill.
32: */
33: public void setStaticData(ChannelStaticData sd, String uid)
34: throws PortalException;
35:
36: public void setRuntimeData(ChannelRuntimeData rd, String uid)
37: throws PortalException;
38:
39: public void receiveEvent(PortalEvent ev, String uid);
40:
41: public ChannelRuntimeProperties getRuntimeProperties(String uid);
42:
43: public void renderXML(ContentHandler out, String uid)
44: throws PortalException;
45: }
|