KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > jspbeans > ContactCenterCustomerList


1 /*
2  * TalkButtonsBean.java
3  *
4  * Created on January 17, 2003, 3:00 AM
5  */

6
7 package com.quikj.application.web.talk.jspbeans;
8
9 import java.util.*;
10 import java.io.*;
11
12 // JAXP packages
13
import javax.xml.parsers.*;
14 import org.xml.sax.*;
15
16 /**
17  *
18  * @author amit
19  */

20 public class ContactCenterCustomerList
21 {
22     
23     /** Creates a new instance of TalkButtonsBean */
24     public ContactCenterCustomerList()
25     {
26     }
27     
28     public synchronized ContactCenterCustomerProperty getCustomerProperty(String JavaDoc customer)
29     throws FileNotFoundException, IOException, SAXException, AceException, ParserConfigurationException
30     {
31         ContactCenterCustomerProperty property = (ContactCenterCustomerProperty)map.get(customer);
32         if (property != null)
33         {
34             property.updateConfiguration();
35             return property;
36         }
37         
38         property = new ContactCenterCustomerProperty(path, customer);
39         map.put(customer, property);
40         
41         return property;
42     }
43     
44     /** Getter for property path.
45      * @return Value of property path.
46      *
47      */

48     public java.lang.String JavaDoc getPath()
49     {
50         return path;
51     }
52     
53     /** Setter for property path.
54      * @param path New value of property path.
55      *
56      */

57     public void setPath(java.lang.String JavaDoc path)
58     {
59         this.path = path;
60     }
61     
62     private HashMap map = new HashMap(); // key = customer value = ContactCenterCustomerProperty
63
private String JavaDoc path;
64 }
65
Popular Tags