KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > core > impl > user > UserPrefSet


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.core.impl.user;
10
11 import org.jboss.portal.common.value.Value;
12 import org.jboss.portal.core.impl.preferences.MappedPreference;
13 import org.jboss.portal.core.impl.preferences.MappedPreferenceSet;
14 import org.jboss.portal.server.plugins.preferences.Preference;
15
16 import java.util.Set JavaDoc;
17 import java.util.Map JavaDoc;
18
19 /**
20  * @hibernate.class
21  * table="jbp_user_pref_set"
22  *
23  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
24  * @version $Revision: 1.4 $
25  */

26 public class UserPrefSet
27    extends MappedPreferenceSet
28 {
29    public UserPrefSet()
30    {
31    }
32
33    public UserPrefSet(String JavaDoc name)
34    {
35       super(name);
36    }
37
38    protected MappedPreferenceSet newChild(String JavaDoc name)
39    {
40       return new UserPrefSet(name);
41    }
42
43    protected Preference newPreference(String JavaDoc name, Value value, boolean readOnly)
44    {
45       MappedPreference preference = new UserPref(name);
46       preference.setValue(value);
47       return preference;
48    }
49
50    /**
51     * @hibernate.collection-one-to-many
52     * class="org.jboss.portal.core.impl.user.UserPrefSet"
53     */

54    public Set getChildren()
55    {
56       return super.getChildren();
57    }
58
59    /**
60     * @hibernate.collection-one-to-many
61     * class="org.jboss.portal.core.impl.user.UserPref"
62     */

63    public Map JavaDoc getContent()
64    {
65       return super.getContent();
66    }
67
68    /**
69     * @hibernate.many-to-one
70     * class="org.jboss.portal.core.impl.user.UserPrefSet"
71     */

72    public MappedPreferenceSet getParent()
73    {
74       return super.getParent();
75    }
76 }
77
Popular Tags