KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > ui > web > admin > configuration > EjbcaJSFImageResource


1 package org.ejbca.ui.web.admin.configuration;
2
3 import java.util.Collection JavaDoc;
4 import java.util.Map JavaDoc;
5 import java.util.Set JavaDoc;
6
7 import javax.ejb.EJBException JavaDoc;
8
9 /**
10  * Class used to retrieve EJBCA image resources in JSF views
11  *
12  * Implements a Map used for retrieving resources.
13  * @author Philip Vendil
14  * $id$
15  * @see org.ejbca.ui.web.admin.configuration.EjbcaWebBean#getImagefileInfix(String)
16  */

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