View Javadoc
1   /*
2    * Copyright (C) 2003-2011 eXo Platform SAS.
3    *
4    * This program is free software; you can redistribute it and/or
5    * modify it under the terms of the GNU Affero General Public License
6    * as published by the Free Software Foundation; either version 3
7    * of the License, or (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program; if not, see<http://www.gnu.org/licenses/>.
16   */
17  package org.exoplatform.services.wcm.portal.artifacts;
18  
19  import org.exoplatform.container.component.ComponentPlugin;
20  import org.exoplatform.container.xml.InitParams;
21  import org.exoplatform.container.xml.ValuesParam;
22  
23  import java.util.ArrayList;
24  import java.util.List;
25  
26  
27  
28  
29  /**
30   * Created by The eXo Platform SAS
31   * Author : Dang Viet Ha
32   *          hadv@exoplatform.com
33   * Nov 22, 2011  
34   */
35  public class IgnorePortalPlugin implements ComponentPlugin {
36  
37    private String name;
38  
39    private String desciption;
40    
41    private List<String> ignorePortals = new ArrayList<String>();
42  
43    public IgnorePortalPlugin(InitParams initParams) {
44      ValuesParam valuesParam = initParams.getValuesParam("ignored.portals");
45      if(valuesParam != null) {
46        ignorePortals = valuesParam.getValues();
47      }    
48    }
49  
50    @Override
51    public String getName() {
52      return name;
53    }
54  
55    @Override
56    public void setName(String s) {
57      this.name = s;
58    }
59  
60    @Override
61    public String getDescription() {
62      return desciption;
63    }
64  
65    @Override
66    public void setDescription(String s) {
67      this.desciption = s;
68  
69    }
70    
71    public List<String> getIgnorePortals() {
72      return ignorePortals;
73    }
74  
75  }