1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.wiki.plugin;
18
19 import org.exoplatform.container.component.BaseComponentPlugin;
20 import org.exoplatform.container.xml.InitParams;
21 import org.exoplatform.container.xml.ObjectParameter;
22 import org.exoplatform.container.xml.ValuesParam;
23 import org.exoplatform.wiki.mow.api.EmotionIcon;
24
25 import java.util.ArrayList;
26 import java.util.Iterator;
27 import java.util.List;
28
29 public class WikiEmotionIconsPlugin extends BaseComponentPlugin {
30 List<EmotionIcon> emotionIcons = new ArrayList<EmotionIcon>();
31
32 @SuppressWarnings("unchecked")
33 public WikiEmotionIconsPlugin(InitParams params) throws Exception {
34 emotionIcons.addAll(params.getObjectParamValues(EmotionIcon.class));
35 }
36
37 public List<EmotionIcon> getEmotionIcons() {
38 return this.emotionIcons;
39 }
40 }