1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
31
32
33
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 }