KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > organization > hibernate > OrganizationConfig


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.organization.hibernate;
6
7 import java.util.ArrayList JavaDoc;
8 import java.util.List JavaDoc;
9 /**
10  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
11  * @since Oct 27, 2004
12  * @version $Id: OrganizationConfig.java,v 1.1 2004/10/28 15:36:43 tuan08 Exp $
13  */

14 public class OrganizationConfig {
15   private List JavaDoc membershipType ;
16   private List JavaDoc group ;
17   private List JavaDoc user ;
18
19   
20   public OrganizationConfig() {
21     membershipType = new ArrayList JavaDoc(5) ;
22     group = new ArrayList JavaDoc(5) ;
23     user = new ArrayList JavaDoc(5) ;
24   }
25   
26   
27   public List JavaDoc getGroup() { return group; }
28   public void setGroup(List JavaDoc group) { this.group = group; }
29   
30   public List JavaDoc getMembershipType() { return membershipType; }
31   public void setMembershipType(List JavaDoc membershipType) { this.membershipType = membershipType;}
32     
33   public List JavaDoc getUser() { return user; }
34   public void setUser(List JavaDoc user) { this.user = user; }
35   
36   static public class MembershipType {
37     private String JavaDoc type ;
38     private String JavaDoc description ;
39     
40     public String JavaDoc getDescription() { return description; }
41     public void setDescription(String JavaDoc description) { this.description = description; }
42     
43     public String JavaDoc getType() { return type; }
44     public void setType(String JavaDoc type) { this.type = type; }
45   }
46   
47   static public class Group {
48     private String JavaDoc name ;
49     private String JavaDoc type ;
50     private String JavaDoc description ;
51     private String JavaDoc parentId ;
52     
53     public String JavaDoc getDescription() { return description; }
54     public void setDescription(String JavaDoc description) { this.description = description; }
55     
56     public String JavaDoc getName() { return name; }
57     public void setName(String JavaDoc name) { this.name = name; }
58     
59     public String JavaDoc getParentId() { return parentId; }
60     public void setParentId(String JavaDoc parentId) { this.parentId = parentId; }
61     
62     public String JavaDoc getType() { return type; }
63     public void setType(String JavaDoc type) { this.type = type; }
64   }
65   
66   static public class User {
67     private String JavaDoc userName ;
68     private String JavaDoc password ;
69     private String JavaDoc firstName ;
70     private String JavaDoc lastName ;
71     private String JavaDoc email ;
72     private List JavaDoc groups ;
73     
74     public User() {
75       groups = new ArrayList JavaDoc(3) ;
76     }
77     
78     public String JavaDoc getEmail() { return email; }
79     public void setEmail(String JavaDoc email) { this.email = email; }
80     
81     public String JavaDoc getFirstName() { return firstName; }
82     public void setFirstName(String JavaDoc firstName) { this.firstName = firstName; }
83     
84     public String JavaDoc getLastName() { return lastName; }
85     public void setLastName(String JavaDoc lastName) { this.lastName = lastName; }
86     
87     public String JavaDoc getPassword() { return password; }
88     public void setPassword(String JavaDoc password) { this.password = password; }
89     
90     public List JavaDoc getGroups() { return groups; }
91     public void setGroups(List JavaDoc groups) { this.groups = groups; }
92     
93     public String JavaDoc getUserName() { return userName; }
94     public void setUserName(String JavaDoc userName) { this.userName = userName; }
95   }
96 }
Popular Tags