01: /**
02: * $Id: CommonRequestParams.java,v 1.3 2004/01/07 23:54:18 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.impl;
14:
15: import com.sun.portal.wsrp.common.stubs.RegistrationContext;
16: import com.sun.portal.wsrp.common.stubs.PortletContext;
17: import com.sun.portal.wsrp.common.stubs.RuntimeContext;
18: import com.sun.portal.wsrp.common.stubs.UserContext;
19:
20: /**
21: * This is an internal class that is collection or place holder
22: * for all the input parameters that are common to call getMarkup and
23: * performBlockingAction and need same logic to polulate.
24: *
25: * @see MarkupManagerImpl
26: */
27: public class CommonRequestParams {
28:
29: private RegistrationContext _registrationContext;
30: private PortletContext _portletContext;
31: private RuntimeContext _runtimeContext;
32: private UserContext _userContext;
33:
34: public CommonRequestParams(RegistrationContext registrationContext,
35: PortletContext portletContext,
36: RuntimeContext runtimeContext, UserContext userContext) {
37:
38: _registrationContext = registrationContext;
39: _portletContext = portletContext;
40: _runtimeContext = runtimeContext;
41: _userContext = userContext;
42: }
43:
44: public RuntimeContext getRuntimeContext() {
45: return _runtimeContext;
46: }
47:
48: public UserContext getUserContext() {
49: return _userContext;
50: }
51:
52: public RegistrationContext getRegistrationContext() {
53: return _registrationContext;
54: }
55:
56: public PortletContext getPortletContext() {
57: return _portletContext;
58: }
59: }
|