01: /**
02: * $Id: UserContextManager.java,v 1.4 2004/01/20 19:29:27 mjain Exp $
03: * Copyright 2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.wsrp.consumer.markup;
14:
15: import com.sun.portal.container.ContainerRequest;
16: import com.sun.portal.container.ContentException;
17: import com.sun.portal.container.ContainerException;
18: import com.sun.portal.wsrp.common.stubs.UserContext;
19:
20: /**
21: * This manager is responsible for
22: * building a UserContext defined by
23: * WSRP spec.
24: */
25: public interface UserContextManager {
26:
27: /**
28: * Returns true if new user related information
29: * in the request that was used by the implementation
30: * to construct UserContext still the same as last time.
31: * Else return false. If there is no data from last request,
32: * returns false.
33: * @param config markup configuration information object.
34: * @param request container request object
35: * @return true/false
36: * @exception com.sun.portal.container.ContainerException
37: * @exception com.sun.portal.container.ContentException
38: */
39:
40: public boolean isUserContextCacheValid(MarkupConfig markupConfig,
41: ContainerRequest request) throws ContainerException,
42: ContentException;
43:
44: /**
45: * This method must return a populated instance
46: * if UserContext.
47: *
48: * @param config markup configuration information object.
49: * @param request container request object
50: * @return Populated UserContext object.
51: * @exception com.sun.portal.container.ContainerException
52: * @exception com.sun.portal.container.ContentException
53: */
54:
55: public UserContext getUserContext(MarkupConfig config,
56: ContainerRequest request) throws ContainerException,
57: ContentException;
58:
59: }
|