KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > model > testimonials > Testimonial


1 /*
2  * Copyright 2004 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.blandware.atleap.model.testimonials;
17
18 import com.blandware.atleap.model.core.Page;
19
20 import java.util.HashMap JavaDoc;
21 import java.util.Map JavaDoc;
22
23 /**
24  * <p>Class that represents testimonial. Testimonial is a special case of
25  * {@link Page}; it has title (which is called <em>subscription</em>), body and
26  * no other content fields. Body contains testimonial itself, subscription
27  * usually contains its author. Random testimonial is shown to user.
28  * </p>
29  * <p>
30  * Although testimonial is technically Page, no role check is made on
31  * testimonial view.
32  * </p>
33  * <p>
34  * Testimonial may be active (then it's shown to users), or inactive (then it
35  * will not be shown).
36  * </p>
37  * <p><a HREF="Testimonial.java.htm"><i>View Source</i></a>
38  * </p>
39  * <p/>
40  *
41  * @author Andrey Grebnev <a HREF="mailto:andrey.grebnev@blandware.com">&lt;andrey.grebnev@blandware.com&gt;</a>
42  * @version $Revision: 1.11 $ $Date: 2005/10/19 07:28:17 $
43  * @struts.form include-all="false" extends="BaseForm" resetMappedProperties="false"
44  * @hibernate.joined-subclass table="`al_testimonials_testimonial`" lazy="false"
45  * @hibernate.joined-subclass-key column="`page_id`"
46  */

47 public class Testimonial extends Page {
48
49     //~ Instance variables
50

51     /**
52      * Testimonial body
53      */

54     protected Map JavaDoc body = new HashMap JavaDoc();
55
56     //~ Methods
57

58     // Internal field values
59

60     /**
61      * Gets bodies map
62      *
63      * @return mapping from locale identifiers to bodies
64      * @struts.form-field
65      */

66     public Map JavaDoc getBody() {
67         return body;
68     }
69
70     /**
71      * Sets bodies map
72      *
73      * @param body mapping from locale identifiers to bodies
74      */

75     public void setBody(Map JavaDoc body) {
76         this.body = body;
77     }
78
79 }
80
Popular Tags