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.portal.model.impl;
016    
017    import com.liferay.portal.model.PortletApp;
018    import com.liferay.portal.model.PortletFilter;
019    
020    import java.util.Map;
021    import java.util.Set;
022    
023    /**
024     * @author Brian Wing Shun Chan
025     */
026    public class PortletFilterImpl implements PortletFilter {
027    
028            public PortletFilterImpl(
029                    String filterName, String filterClass, Set<String> lifecycles,
030                    Map<String, String> initParams, PortletApp portletApp) {
031    
032                    _filterName = filterName;
033                    _filterClass = filterClass;
034                    _lifecycles = lifecycles;
035                    _initParams = initParams;
036                    _portletApp = portletApp;
037            }
038    
039            public String getFilterName() {
040                    return _filterName;
041            }
042    
043            public void setFilterName(String filterName) {
044                    _filterName = filterName;
045            }
046    
047            public String getFilterClass() {
048                    return _filterClass;
049            }
050    
051            public void setFilterClass(String filterClass) {
052                    _filterClass = filterClass;
053            }
054    
055            public Set<String> getLifecycles() {
056                    return _lifecycles;
057            }
058    
059            public void setLifecycles(Set<String> lifecycles) {
060                    _lifecycles = lifecycles;
061            }
062    
063            public Map<String, String> getInitParams() {
064                    return _initParams;
065            }
066    
067            public void setInitParams(Map<String, String> initParams) {
068                    _initParams = initParams;
069            }
070    
071            public PortletApp getPortletApp() {
072                    return _portletApp;
073            }
074    
075            public void setPortletApp(PortletApp portletApp) {
076                    _portletApp = portletApp;
077            }
078    
079            private String _filterName;
080            private String _filterClass;
081            private Set<String> _lifecycles;
082            private Map<String, String> _initParams;
083            private PortletApp _portletApp;
084    
085    }