1 | package edu.iu.uis.sit.portal.portlet.publishing.domain; |
2 | |
3 | import java.io.Serializable; |
4 | import java.sql.Timestamp; |
5 | import java.util.ArrayList; |
6 | import java.util.Collection; |
7 | |
8 | public class Fragment implements Serializable { |
9 | |
10 | private Long fragmentId; |
11 | private Long type; // portlet types: rss, xml, and iframe |
12 | private Long height; // iframe only |
13 | private Long detachHeight; // iframe only |
14 | private Long detachWidth; // iframe only |
15 | private String title; |
16 | private String url; // iframe/rss only |
17 | private String description; |
18 | private String contactEmail; |
19 | private String contactUrl; |
20 | private Timestamp createDate; |
21 | private Timestamp lastUpdateDate; |
22 | private boolean active; |
23 | private boolean detachOnly; // iframe only |
24 | private Long lockingNumber; |
25 | |
26 | private Long fragmentTextId; |
27 | private FragmentText fragmentText; |
28 | |
29 | private Long aclExpressionId; |
30 | private AclExpression aclExpression; |
31 | |
32 | private Long aclExpressionHtmlId; |
33 | private AclExpressionHtml aclExpressionHtml; |
34 | |
35 | private Collection acls; |
36 | |
37 | public Fragment() { |
38 | fragmentText = new FragmentText(); |
39 | acls = new ArrayList(); |
40 | aclExpression = new AclExpression(); |
41 | aclExpressionHtml = new AclExpressionHtml(); |
42 | } |
43 | |
44 | public boolean isActive() { |
45 | return active; |
46 | } |
47 | |
48 | public void setActive(boolean active) { |
49 | this.active = active; |
50 | } |
51 | |
52 | public String getContactEmail() { |
53 | return contactEmail; |
54 | } |
55 | |
56 | public void setContactEmail(String contactEmail) { |
57 | this.contactEmail = contactEmail; |
58 | } |
59 | |
60 | public Timestamp getCreateDate() { |
61 | return createDate; |
62 | } |
63 | |
64 | public void setCreateDate(Timestamp createDate) { |
65 | this.createDate = createDate; |
66 | } |
67 | |
68 | public String getDescription() { |
69 | return description; |
70 | } |
71 | |
72 | public void setDescription(String description) { |
73 | this.description = description; |
74 | } |
75 | |
76 | public Long getDetachHeight() { |
77 | return detachHeight; |
78 | } |
79 | |
80 | public void setDetachHeight(Long detachHeight) { |
81 | this.detachHeight = detachHeight; |
82 | } |
83 | |
84 | public boolean isDetachOnly() { |
85 | return detachOnly; |
86 | } |
87 | |
88 | public void setDetachOnly(boolean detachOnly) { |
89 | this.detachOnly = detachOnly; |
90 | } |
91 | |
92 | public Long getDetachWidth() { |
93 | return detachWidth; |
94 | } |
95 | |
96 | public void setDetachWidth(Long detachWidth) { |
97 | this.detachWidth = detachWidth; |
98 | } |
99 | |
100 | public Long getFragmentId() { |
101 | return fragmentId; |
102 | } |
103 | |
104 | public void setFragmentId(Long fragmentId) { |
105 | this.fragmentId = fragmentId; |
106 | } |
107 | |
108 | public Long getHeight() { |
109 | return height; |
110 | } |
111 | |
112 | public void setHeight(Long height) { |
113 | this.height = height; |
114 | } |
115 | |
116 | public Timestamp getLastUpdateDate() { |
117 | return lastUpdateDate; |
118 | } |
119 | |
120 | public void setLastUpdateDate(Timestamp lastUpdateDate) { |
121 | this.lastUpdateDate = lastUpdateDate; |
122 | } |
123 | |
124 | public Long getLockingNumber() { |
125 | return lockingNumber; |
126 | } |
127 | |
128 | public void setLockingNumber(Long lockingNumber) { |
129 | this.lockingNumber = lockingNumber; |
130 | } |
131 | |
132 | public String getTitle() { |
133 | return title; |
134 | } |
135 | |
136 | public void setTitle(String title) { |
137 | this.title = title; |
138 | } |
139 | |
140 | public Long getType() { |
141 | return type; |
142 | } |
143 | |
144 | public void setType(Long type) { |
145 | this.type = type; |
146 | } |
147 | |
148 | public String getUrl() { |
149 | return url; |
150 | } |
151 | |
152 | public void setUrl(String url) { |
153 | this.url = url; |
154 | } |
155 | |
156 | public FragmentText getFragmentText() { |
157 | return fragmentText; |
158 | } |
159 | |
160 | public void setFragmentText(FragmentText fragmentText) { |
161 | this.fragmentText = fragmentText; |
162 | } |
163 | |
164 | public Long getFragmentTextId() { |
165 | return fragmentTextId; |
166 | } |
167 | |
168 | public void setFragmentTextId(Long fragmentTextId) { |
169 | this.fragmentTextId = fragmentTextId; |
170 | } |
171 | |
172 | public Collection getAcls() { |
173 | return acls; |
174 | } |
175 | |
176 | public void setAcls(Collection acls) { |
177 | this.acls = acls; |
178 | } |
179 | |
180 | public AclExpression getAclExpression() { |
181 | return aclExpression; |
182 | } |
183 | |
184 | public void setAclExpression(AclExpression aclExpression) { |
185 | this.aclExpression = aclExpression; |
186 | } |
187 | |
188 | public Long getAclExpressionId() { |
189 | return aclExpressionId; |
190 | } |
191 | |
192 | public void setAclExpressionId(Long aclExpressionId) { |
193 | this.aclExpressionId = aclExpressionId; |
194 | } |
195 | |
196 | public AclExpressionHtml getAclExpressionHtml() { |
197 | return aclExpressionHtml; |
198 | } |
199 | |
200 | public void setAclExpressionHtml(AclExpressionHtml aclExpressionHtml) { |
201 | this.aclExpressionHtml = aclExpressionHtml; |
202 | } |
203 | |
204 | public Long getAclExpressionHtmlId() { |
205 | return aclExpressionHtmlId; |
206 | } |
207 | |
208 | public void setAclExpressionHtmlId(Long aclExpressionHtmlId) { |
209 | this.aclExpressionHtmlId = aclExpressionHtmlId; |
210 | } |
211 | |
212 | public String getContactUrl() { |
213 | return contactUrl; |
214 | } |
215 | |
216 | public void setContactUrl(String contactUrl) { |
217 | this.contactUrl = contactUrl; |
218 | } |
219 | |
220 | } |