1 package org.ejbca.ui.web.admin.configuration; 2 3 import java.util.Collection ; 4 import java.util.Map ; 5 import java.util.Set ; 6 7 import javax.ejb.EJBException ; 8 9 import org.ejbca.util.HTMLTools; 10 11 18 public class EjbcaJSFLanguageResource implements Map { 19 20 private EjbcaWebBean ejbcawebbean; 21 22 public EjbcaJSFLanguageResource(EjbcaWebBean ejbcawebbean){ 23 this.ejbcawebbean = ejbcawebbean; 24 } 25 26 public void clear() { 27 throw new EJBException ("Method clear not supported"); 28 } 29 30 public boolean containsKey(Object arg0) { 31 32 return ejbcawebbean.getText((String ) arg0) != null; 33 } 34 35 public boolean containsValue(Object arg0) { 36 throw new EJBException ("Method containsValue not supported"); 37 } 38 39 public Set entrySet() { 40 throw new EJBException ("Method entrySet not supported"); 41 } 42 43 public Object get(Object arg0) { 44 String str = ejbcawebbean.getText((String ) arg0); 45 return HTMLTools.htmlunescape(str); 46 } 47 48 public boolean isEmpty() { 49 throw new EJBException ("Method isEmpty not supported"); 50 } 51 52 public Set keySet() { 53 throw new EJBException ("Method keySet not supported"); 54 } 55 56 public Object put(Object arg0, Object arg1) { 57 throw new EJBException ("Method put not supported"); 58 } 59 60 public void putAll(Map arg0) { 61 throw new EJBException ("Method putAll not supported"); 62 } 63 64 public Object remove(Object arg0) { 65 throw new EJBException ("Method remove not supported"); 66 } 67 68 public int size() { 69 throw new EJBException ("Method size not supported"); 70 } 71 72 public Collection values() { 73 throw new EJBException ("Method values not supported"); 74 } 75 76 } 77 | Popular Tags |