1 17 18 package org.objectweb.jac.aspects.user; 19 20 import java.util.Hashtable ; 21 import java.util.Map ; 22 23 26 27 public class UserManager { 28 29 public UserManager() { 30 } 31 32 Hashtable profiles = new Hashtable (); 33 34 39 public Profile getProfile(String name) { 40 return (Profile)profiles.get(name); 41 } 42 43 public Map getProfiles() { 44 return profiles; 45 } 46 47 52 public void addProfile(Profile profile) { 53 profiles.put(profile.getName(),profile); 54 } 55 56 Object defaultAdmin; 57 58 62 public Object getDefaultAdmin() { 63 return defaultAdmin; 64 } 65 66 70 public void setDefaultAdmin(Object v) { 71 this.defaultAdmin = v; 72 } 73 74 } 75 | Popular Tags |