001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet;
016    
017    import java.util.HashMap;
018    import java.util.Map;
019    
020    import javax.portlet.PortletURLGenerationListener;
021    import javax.portlet.filter.PortletFilter;
022    
023    /**
024     * @author Brian Wing Shun Chan
025     */
026    public class PortletContextBag {
027    
028            public PortletContextBag(String servletContextName) {
029                    _servletContextName = servletContextName;
030            }
031    
032            public String getServletContextName() {
033                    return _servletContextName;
034            }
035    
036            public Map<String, CustomUserAttributes> getCustomUserAttributes() {
037                    return _customUserAttributes;
038            }
039    
040            public Map<String, PortletFilter> getPortletFilters() {
041                    return _portletFilters;
042            }
043    
044            public Map<String, PortletURLGenerationListener> getPortletURLListeners() {
045                    return _urlListeners;
046            }
047    
048            private String _servletContextName;
049            private Map<String, CustomUserAttributes> _customUserAttributes =
050                    new HashMap<String, CustomUserAttributes>();
051            private Map<String, PortletFilter> _portletFilters =
052                    new HashMap<String, PortletFilter>();
053            private Map<String, PortletURLGenerationListener> _urlListeners =
054                    new HashMap<String, PortletURLGenerationListener>();
055    
056    }