%line | %branch | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
org.apache.jetspeed.aggregator.impl.PortletAggregatorFragmentImpl |
|
|
1 | /* |
|
2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
|
3 | * contributor license agreements. See the NOTICE file distributed with |
|
4 | * this work for additional information regarding copyright ownership. |
|
5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
|
6 | * (the "License"); you may not use this file except in compliance with |
|
7 | * the License. You may obtain a copy of the License at |
|
8 | * |
|
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
|
10 | * |
|
11 | * Unless required by applicable law or agreed to in writing, software |
|
12 | * distributed under the License is distributed on an "AS IS" BASIS, |
|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
14 | * See the License for the specific language governing permissions and |
|
15 | * limitations under the License. |
|
16 | */ |
|
17 | package org.apache.jetspeed.aggregator.impl; |
|
18 | ||
19 | import java.util.ArrayList; |
|
20 | import java.util.HashMap; |
|
21 | import java.util.List; |
|
22 | import java.util.Map; |
|
23 | ||
24 | import org.apache.jetspeed.om.common.SecurityConstraint; |
|
25 | import org.apache.jetspeed.om.common.SecurityConstraints; |
|
26 | import org.apache.jetspeed.om.page.Fragment; |
|
27 | ||
28 | /** |
|
29 | * PortletAggregator Fragment implementation for rendering. |
|
30 | * |
|
31 | * @author <a href="mailto:rwatler@apache.org">Randy Watler</a> |
|
32 | * @version $Id$ |
|
33 | */ |
|
34 | public class PortletAggregatorFragmentImpl implements Fragment |
|
35 | { |
|
36 | private String id; |
|
37 | private String name; |
|
38 | private String type; |
|
39 | private String decorator; |
|
40 | private String state; |
|
41 | private String mode; |
|
42 | ||
43 | public PortletAggregatorFragmentImpl(String id) |
|
44 | 0 | { |
45 | 0 | this.id = id; |
46 | 0 | } |
47 | ||
48 | /* (non-Javadoc) |
|
49 | * @see org.apache.jetspeed.om.common.SecuredResource#getConstraintsEnabled() |
|
50 | */ |
|
51 | public boolean getConstraintsEnabled() |
|
52 | { |
|
53 | 0 | return false; |
54 | } |
|
55 | ||
56 | /* (non-Javadoc) |
|
57 | * @see org.apache.jetspeed.om.common.SecuredResource#getSecurityConstraints() |
|
58 | */ |
|
59 | public SecurityConstraints getSecurityConstraints() |
|
60 | { |
|
61 | 0 | return null; |
62 | } |
|
63 | ||
64 | /* (non-Javadoc) |
|
65 | * @see org.apache.jetspeed.om.common.SecuredResource#setSecurityConstraints(org.apache.jetspeed.om.common.SecurityConstraints) |
|
66 | */ |
|
67 | public void setSecurityConstraints(SecurityConstraints constraints) |
|
68 | { |
|
69 | 0 | } |
70 | ||
71 | /* (non-Javadoc) |
|
72 | * @see org.apache.jetspeed.om.common.SecuredResource#newSecurityConstraints() |
|
73 | */ |
|
74 | public SecurityConstraints newSecurityConstraints() |
|
75 | { |
|
76 | 0 | return null; |
77 | } |
|
78 | ||
79 | /* (non-Javadoc) |
|
80 | * @see org.apache.jetspeed.om.common.SecuredResource#newSecurityConstraint() |
|
81 | */ |
|
82 | public SecurityConstraint newSecurityConstraint() |
|
83 | { |
|
84 | 0 | return null; |
85 | } |
|
86 | ||
87 | /* (non-Javadoc) |
|
88 | * @see org.apache.jetspeed.om.common.SecuredResource#checkConstraints(java.lang.String) |
|
89 | */ |
|
90 | public void checkConstraints(String actions) throws SecurityException |
|
91 | { |
|
92 | 0 | } |
93 | ||
94 | /* (non-Javadoc) |
|
95 | * @see org.apache.jetspeed.om.common.SecuredResource#getPermissionsEnabled() |
|
96 | */ |
|
97 | public boolean getPermissionsEnabled() |
|
98 | { |
|
99 | 0 | return false; |
100 | } |
|
101 | ||
102 | /* (non-Javadoc) |
|
103 | * @see org.apache.jetspeed.om.common.SecuredResource#checkPermissions(int) |
|
104 | */ |
|
105 | public void checkPermissions(int mask) throws SecurityException |
|
106 | { |
|
107 | 0 | } |
108 | ||
109 | /* (non-Javadoc) |
|
110 | * @see org.apache.jetspeed.om.common.SecuredResource#checkAccess(java.lang.String) |
|
111 | */ |
|
112 | public void checkAccess(String actions) throws SecurityException |
|
113 | { |
|
114 | 0 | } |
115 | ||
116 | /* (non-Javadoc) |
|
117 | * @see org.apache.jetspeed.om.page.BaseElement#getId() |
|
118 | */ |
|
119 | public String getId() |
|
120 | { |
|
121 | 0 | return id; |
122 | } |
|
123 | ||
124 | /* (non-Javadoc) |
|
125 | * @see org.apache.jetspeed.om.page.BaseElement#getTitle() |
|
126 | */ |
|
127 | public String getTitle() |
|
128 | { |
|
129 | 0 | return null; |
130 | } |
|
131 | ||
132 | /* (non-Javadoc) |
|
133 | * @see org.apache.jetspeed.om.page.BaseElement#setTitle(java.lang.String) |
|
134 | */ |
|
135 | public void setTitle(String title) |
|
136 | { |
|
137 | 0 | } |
138 | ||
139 | /* (non-Javadoc) |
|
140 | * @see org.apache.jetspeed.om.page.BaseElement#getShortTitle() |
|
141 | */ |
|
142 | public String getShortTitle() |
|
143 | { |
|
144 | 0 | return null; |
145 | } |
|
146 | ||
147 | /* (non-Javadoc) |
|
148 | * @see org.apache.jetspeed.om.page.BaseElement#setShortTitle(java.lang.String) |
|
149 | */ |
|
150 | public void setShortTitle(String title) |
|
151 | { |
|
152 | 0 | } |
153 | ||
154 | /* (non-Javadoc) |
|
155 | * @see org.apache.jetspeed.om.page.Fragment#getName() |
|
156 | */ |
|
157 | public String getName() |
|
158 | { |
|
159 | 0 | return name; |
160 | } |
|
161 | ||
162 | /* (non-Javadoc) |
|
163 | * @see org.apache.jetspeed.om.page.Fragment#setName(java.lang.String) |
|
164 | */ |
|
165 | public void setName( String name ) |
|
166 | { |
|
167 | 0 | this.name = name; |
168 | 0 | } |
169 | ||
170 | /* (non-Javadoc) |
|
171 | * @see org.apache.jetspeed.om.page.Fragment#getType() |
|
172 | */ |
|
173 | public String getType() |
|
174 | { |
|
175 | 0 | return type; |
176 | } |
|
177 | ||
178 | /* (non-Javadoc) |
|
179 | * @see org.apache.jetspeed.om.page.Fragment#setType(java.lang.String) |
|
180 | */ |
|
181 | public void setType(String type) |
|
182 | { |
|
183 | 0 | this.type = type; |
184 | 0 | } |
185 | ||
186 | /* (non-Javadoc) |
|
187 | * @see org.apache.jetspeed.om.page.Fragment#getSkin() |
|
188 | */ |
|
189 | public String getSkin() |
|
190 | { |
|
191 | 0 | return null; |
192 | } |
|
193 | ||
194 | /* (non-Javadoc) |
|
195 | * @see org.apache.jetspeed.om.page.Fragment#setSkin(java.lang.String) |
|
196 | */ |
|
197 | public void setSkin(String skinName) |
|
198 | { |
|
199 | 0 | } |
200 | ||
201 | /* (non-Javadoc) |
|
202 | * @see org.apache.jetspeed.om.page.Fragment#getDecorator() |
|
203 | */ |
|
204 | public String getDecorator() |
|
205 | { |
|
206 | 0 | return decorator; |
207 | } |
|
208 | ||
209 | /* (non-Javadoc) |
|
210 | * @see org.apache.jetspeed.om.page.Fragment#setDecorator(java.lang.String) |
|
211 | */ |
|
212 | public void setDecorator(String decoratorName) |
|
213 | { |
|
214 | 0 | this.decorator = decoratorName; |
215 | 0 | } |
216 | ||
217 | /* (non-Javadoc) |
|
218 | * @see org.apache.jetspeed.om.page.Fragment#getState() |
|
219 | */ |
|
220 | public String getState() |
|
221 | { |
|
222 | 0 | return state; |
223 | } |
|
224 | ||
225 | /* (non-Javadoc) |
|
226 | * @see org.apache.jetspeed.om.page.Fragment#setState(java.lang.String) |
|
227 | */ |
|
228 | public void setState(String state) |
|
229 | { |
|
230 | 0 | this.state = state; |
231 | 0 | } |
232 | ||
233 | /* (non-Javadoc) |
|
234 | * @see org.apache.jetspeed.om.page.Fragment#getMode() |
|
235 | */ |
|
236 | public String getMode() |
|
237 | { |
|
238 | 0 | return mode; |
239 | } |
|
240 | ||
241 | /* (non-Javadoc) |
|
242 | * @see org.apache.jetspeed.om.page.Fragment#setMode(java.lang.String) |
|
243 | */ |
|
244 | public void setMode(String mode) |
|
245 | { |
|
246 | 0 | this.mode = mode; |
247 | 0 | } |
248 | ||
249 | /* (non-Javadoc) |
|
250 | * @see org.apache.jetspeed.om.page.Fragment#getFragments() |
|
251 | */ |
|
252 | public List getFragments() |
|
253 | { |
|
254 | 0 | return new ArrayList(0); |
255 | } |
|
256 | ||
257 | /* (non-Javadoc) |
|
258 | * @see org.apache.jetspeed.om.page.Fragment#getProperties() |
|
259 | */ |
|
260 | public Map getProperties() |
|
261 | { |
|
262 | 0 | return new HashMap(0); |
263 | } |
|
264 | ||
265 | /* (non-Javadoc) |
|
266 | * @see org.apache.jetspeed.om.page.Fragment#getProperty(java.lang.String) |
|
267 | */ |
|
268 | public String getProperty(String propName) |
|
269 | { |
|
270 | 0 | return null; |
271 | } |
|
272 | ||
273 | /* (non-Javadoc) |
|
274 | * @see org.apache.jetspeed.om.page.Fragment#getIntProperty(java.lang.String) |
|
275 | */ |
|
276 | public int getIntProperty(String propName) |
|
277 | { |
|
278 | 0 | return -1; |
279 | } |
|
280 | ||
281 | /* (non-Javadoc) |
|
282 | * @see org.apache.jetspeed.om.page.Fragment#getFloatProperty(java.lang.String) |
|
283 | */ |
|
284 | public float getFloatProperty(String propName) |
|
285 | { |
|
286 | 0 | return -1.0F; |
287 | } |
|
288 | ||
289 | /* (non-Javadoc) |
|
290 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutRow() |
|
291 | */ |
|
292 | public int getLayoutRow() |
|
293 | { |
|
294 | 0 | return -1; |
295 | } |
|
296 | ||
297 | /* (non-Javadoc) |
|
298 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutColumn() |
|
299 | */ |
|
300 | public int getLayoutColumn() |
|
301 | { |
|
302 | 0 | return -1; |
303 | } |
|
304 | ||
305 | /* (non-Javadoc) |
|
306 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutSizes() |
|
307 | */ |
|
308 | public String getLayoutSizes() |
|
309 | { |
|
310 | 0 | return null; |
311 | } |
|
312 | ||
313 | /* (non-Javadoc) |
|
314 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutX() |
|
315 | */ |
|
316 | public float getLayoutX() |
|
317 | { |
|
318 | 0 | return -1.0F; |
319 | } |
|
320 | ||
321 | /* (non-Javadoc) |
|
322 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutY() |
|
323 | */ |
|
324 | public float getLayoutY() |
|
325 | { |
|
326 | 0 | return -1.0F; |
327 | } |
|
328 | ||
329 | /* (non-Javadoc) |
|
330 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutZ() |
|
331 | */ |
|
332 | public float getLayoutZ() |
|
333 | { |
|
334 | 0 | return -1.0F; |
335 | } |
|
336 | ||
337 | /* (non-Javadoc) |
|
338 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutWidth() |
|
339 | */ |
|
340 | public float getLayoutWidth() |
|
341 | { |
|
342 | 0 | return -1.0F; |
343 | } |
|
344 | ||
345 | /* (non-Javadoc) |
|
346 | * @see org.apache.jetspeed.om.page.Fragment#getLayoutHeight() |
|
347 | */ |
|
348 | public float getLayoutHeight() |
|
349 | { |
|
350 | 0 | return -1.0F; |
351 | } |
|
352 | ||
353 | /* (non-Javadoc) |
|
354 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutRow(int) |
|
355 | */ |
|
356 | public void setLayoutRow(int row) |
|
357 | { |
|
358 | 0 | } |
359 | ||
360 | /* (non-Javadoc) |
|
361 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutColumn(int) |
|
362 | */ |
|
363 | public void setLayoutColumn(int column) |
|
364 | { |
|
365 | 0 | } |
366 | ||
367 | /* (non-Javadoc) |
|
368 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutSizes(java.lang.String) |
|
369 | */ |
|
370 | public void setLayoutSizes(String sizes) |
|
371 | { |
|
372 | 0 | } |
373 | ||
374 | /* (non-Javadoc) |
|
375 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutX(float) |
|
376 | */ |
|
377 | public void setLayoutX(float x) |
|
378 | { |
|
379 | 0 | } |
380 | ||
381 | /* (non-Javadoc) |
|
382 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutY(float) |
|
383 | */ |
|
384 | public void setLayoutY(float y) |
|
385 | { |
|
386 | 0 | } |
387 | ||
388 | /* (non-Javadoc) |
|
389 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutZ(float) |
|
390 | */ |
|
391 | public void setLayoutZ(float z) |
|
392 | { |
|
393 | 0 | } |
394 | ||
395 | /* (non-Javadoc) |
|
396 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutWidth(float) |
|
397 | */ |
|
398 | public void setLayoutWidth(float width) |
|
399 | { |
|
400 | 0 | } |
401 | ||
402 | /* (non-Javadoc) |
|
403 | * @see org.apache.jetspeed.om.page.Fragment#setLayoutHeight(float) |
|
404 | */ |
|
405 | public void setLayoutHeight(float height) |
|
406 | { |
|
407 | 0 | } |
408 | ||
409 | /* (non-Javadoc) |
|
410 | * @see org.apache.jetspeed.om.page.Fragment#isReference() |
|
411 | */ |
|
412 | public boolean isReference() |
|
413 | { |
|
414 | 0 | return false; |
415 | } |
|
416 | ||
417 | /* (non-Javadoc) |
|
418 | * @see org.apache.jetspeed.om.page.Fragment#clone() |
|
419 | */ |
|
420 | public Object clone() throws CloneNotSupportedException |
|
421 | { |
|
422 | 0 | return null; |
423 | } |
|
424 | ||
425 | /* (non-Javadoc) |
|
426 | * @see org.apache.jetspeed.om.page.Fragment#getPreferences() |
|
427 | */ |
|
428 | public List getPreferences() |
|
429 | { |
|
430 | 0 | return null; |
431 | } |
|
432 | ||
433 | /* (non-Javadoc) |
|
434 | * @see org.apache.jetspeed.om.page.Fragment#setPreferences(java.util.List) |
|
435 | */ |
|
436 | public void setPreferences(List preferences) |
|
437 | { |
|
438 | 0 | } |
439 | } |
This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |