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