1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.fatwire.gst.foundation.taglib;
17
18 import java.io.IOException;
19 import javax.servlet.jsp.JspException;
20
21 import com.fatwire.gst.foundation.properties.AssetApiPropertyDao;
22 import com.fatwire.gst.foundation.properties.PropertyDao;
23
24
25
26
27
28
29
30 public final class SetPropertyTag extends GsfSimpleTag {
31
32 private String description;
33 private String value;
34 private String property;
35 private String publist = null;
36
37 @Override
38 public void doTag() throws JspException, IOException {
39 PropertyDao dao = AssetApiPropertyDao.getInstance(getICS());
40 dao.setProperty(property, description, value);
41 if (publist != null) dao.addToSite(property, publist.split(","));
42 super.doTag();
43 }
44
45 public void setDescription(String description) {
46 this.description = description;
47 }
48
49 public void setValue(String value) {
50 this.value = value;
51 }
52
53 public void setProperty(String property) {
54 this.property = property;
55 }
56
57 public void setPublist(String s) {
58 this.publist = s;
59 }
60 }