001    /**
002     * Copyright (c) 2000-2013 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 Map<String, CustomUserAttributes> getCustomUserAttributes() {
033                    return _customUserAttributes;
034            }
035    
036            public Map<String, PortletFilter> getPortletFilters() {
037                    return _portletFilters;
038            }
039    
040            public Map<String, PortletURLGenerationListener> getPortletURLListeners() {
041                    return _urlListeners;
042            }
043    
044            public String getServletContextName() {
045                    return _servletContextName;
046            }
047    
048            private Map<String, CustomUserAttributes> _customUserAttributes =
049                    new HashMap<String, CustomUserAttributes>();
050            private Map<String, PortletFilter> _portletFilters =
051                    new HashMap<String, PortletFilter>();
052            private String _servletContextName;
053            private Map<String, PortletURLGenerationListener> _urlListeners =
054                    new HashMap<String, PortletURLGenerationListener>();
055    
056    }