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 17 public class EjbcaJSFImageResource implements Map { 18 19 private EjbcaWebBean ejbcawebbean; 20 21 public EjbcaJSFImageResource(EjbcaWebBean ejbcawebbean){ 22 this.ejbcawebbean = ejbcawebbean; 23 } 24 25 public void clear() { 26 throw new EJBException ("Method clear not supported"); 27 } 28 29 public boolean containsKey(Object arg0) { 30 31 return ejbcawebbean.getImagefileInfix((String ) arg0) != null; 32 } 33 34 public boolean containsValue(Object arg0) { 35 throw new EJBException ("Method containsValue not supported"); 36 } 37 38 public Set entrySet() { 39 throw new EJBException ("Method entrySet not supported"); 40 } 41 42 public Object get(Object arg0) { 43 return ejbcawebbean.getImagefileInfix((String ) arg0); 44 } 45 46 public boolean isEmpty() { 47 throw new EJBException ("Method isEmpty not supported"); 48 } 49 50 public Set keySet() { 51 throw new EJBException ("Method keySet not supported"); 52 } 53 54 public Object put(Object arg0, Object arg1) { 55 throw new EJBException ("Method put not supported"); 56 } 57 58 public void putAll(Map arg0) { 59 throw new EJBException ("Method putAll not supported"); 60 } 61 62 public Object remove(Object arg0) { 63 throw new EJBException ("Method remove not supported"); 64 } 65 66 public int size() { 67 throw new EJBException ("Method size not supported"); 68 } 69 70 public Collection values() { 71 throw new EJBException ("Method values not supported"); 72 } 73 74 } 75 | Popular Tags |