1 5 package org.exoplatform.services.organization.ldap; 6 7 import java.util.ArrayList ; 8 import java.util.HashSet ; 9 import java.util.List ; 10 15 public class NewUserConfig { 16 private List role ; 17 private List group ; 18 private HashSet ignoredUser ; 19 20 public NewUserConfig() { 21 role = new ArrayList (3) ; 22 group = new ArrayList (3) ; 23 ignoredUser = new HashSet () ; 24 } 25 26 public List getRole() { return role ; } 27 public List getGroup() { return group ; } 28 public HashSet getIgnoredUser() { return ignoredUser ; } 29 public void setIgnoredUser(String user) { ignoredUser.add(user) ; } 30 31 public boolean isIgnoreUser(String user) { return ignoredUser.contains(user) ; } 32 33 static public class JoinGroup { 34 public String groupId ; 35 public String membership ; 36 public boolean validateGroupId = true ; 37 public boolean validateMembership = true ; 38 39 public JoinGroup() { 40 } 41 42 public String getGroupId() { return groupId ; } 43 public void setGroupId(String s) { groupId = s ; } 44 45 public String getMembership() { return membership ; } 46 public void setMembership(String s) { membership = s ; } 47 48 public boolean getValidateGroupId() { return validateGroupId ; } 49 public void setValidateGroupId(boolean b) { validateGroupId = b ; } 50 public void setValidateGroupId(String b) { validateGroupId = "true".equals(b) ; } 51 52 public boolean getValidateMembership() { return validateMembership ; } 53 public void setValidateMembership(boolean b) { validateMembership = b ; } 54 public void setValidateMembership(String b) { validateMembership = "true".equals(b) ; } 55 } 56 } | Popular Tags |