1 6 7 package com.raptus.owxv3.api.usermgr.mmry; 8 9 import com.raptus.owxv3.api.usermgr.*; 10 import java.util.*; 11 12 16 public class MmryUser implements User 17 { 18 21 String name = null; 22 23 26 String password = null; 27 28 31 String username = null; 32 33 36 String email = null; 37 String locale = null; 38 39 40 public MmryUser(String name,String username, String password, String email,String locale) 41 { 42 this.email = email; 43 this.locale = locale; 44 this.password = password; 45 this.username = username; 46 this.name = name; 47 } 48 49 54 public String getEmail() 55 { 56 return email; 57 } 58 59 64 public Locale getLocale() 65 { 66 return null; 67 } 68 69 74 public String getName() 75 { 76 return name; 77 } 78 79 84 public String getPassword() 85 { 86 return password; 87 } 88 89 94 public String getUsername() 95 { 96 return username; 97 } 98 99 104 public Iterator getRoles() 105 { 106 Vector v = new Vector(); 107 MmryRole r = new MmryRole("role1", "role1"); 108 v.add(r); 109 r = new MmryRole("role2", "role2"); 110 v.add(r); 111 r = new MmryRole("role2", "role2"); 112 v.add(r); 113 return v.iterator(); 114 } 115 116 } 117 | Popular Tags |