1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.model.impl;
16  
17  import com.liferay.portal.model.PortletApp;
18  import com.liferay.portal.model.PortletFilter;
19  
20  import java.util.Map;
21  import java.util.Set;
22  
23  /**
24   * <a href="PortletFilterImpl.java.html"><b><i>View Source</i></b></a>
25   *
26   * @author Brian Wing Shun Chan
27   */
28  public class PortletFilterImpl implements PortletFilter {
29  
30      public PortletFilterImpl(
31          String filterName, String filterClass, Set<String> lifecycles,
32          Map<String, String> initParams, PortletApp portletApp) {
33  
34          _filterName = filterName;
35          _filterClass = filterClass;
36          _lifecycles = lifecycles;
37          _initParams = initParams;
38          _portletApp = portletApp;
39      }
40  
41      public String getFilterName() {
42          return _filterName;
43      }
44  
45      public void setFilterName(String filterName) {
46          _filterName = filterName;
47      }
48  
49      public String getFilterClass() {
50          return _filterClass;
51      }
52  
53      public void setFilterClass(String filterClass) {
54          _filterClass = filterClass;
55      }
56  
57      public Set<String> getLifecycles() {
58          return _lifecycles;
59      }
60  
61      public void setLifecycles(Set<String> lifecycles) {
62          _lifecycles = lifecycles;
63      }
64  
65      public Map<String, String> getInitParams() {
66          return _initParams;
67      }
68  
69      public void setInitParams(Map<String, String> initParams) {
70          _initParams = initParams;
71      }
72  
73      public PortletApp getPortletApp() {
74          return _portletApp;
75      }
76  
77      public void setPortletApp(PortletApp portletApp) {
78          _portletApp = portletApp;
79      }
80  
81      private String _filterName;
82      private String _filterClass;
83      private Set<String> _lifecycles;
84      private Map<String, String> _initParams;
85      private PortletApp _portletApp;
86  
87  }