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.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    }