1 16 package org.apache.cocoon.portal.tools.userManagement; 17 18 import java.util.Collection ; 19 import java.util.HashMap ; 20 21 26 public class UserBean { 27 28 private HashMap context = new HashMap (); 29 private String picture = ""; 30 31 32 public UserBean () { 33 } 34 35 41 public void addContext (String key, String value){ 42 this.context.put (key, new ContextItem (key, value)); 43 } 44 45 50 public Collection getContext () { 51 return this.context.values(); 52 } 53 54 60 public String getContextItem (String key) { 61 if (this.context.get(key) != null) { 62 return ((ContextItem) this.context.get(key)).getValue(); 63 } else { 64 return ""; 65 } 66 } 67 68 74 public String getPicture() { 75 return picture; 76 } 77 78 84 public void setPicture(String string) { 85 picture = string; 86 } 87 } 88 | Popular Tags |