001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }