01: /*
02: * Created on Oct 4, 2004
03: */
04: package org.openedit.store;
05:
06: import java.io.File;
07: import java.util.List;
08:
09: import org.openedit.store.customer.Customer;
10:
11: /**
12: * @author cburkey
13: *
14: */
15: public interface CustomerArchive {
16: public abstract Customer getCustomer(String inId)
17: throws StoreException;
18:
19: public abstract void saveCustomer(Customer inCustomer)
20: throws StoreException;
21:
22: public abstract void saveAndExportCustomer(Customer inC)
23: throws StoreException;
24:
25: /**
26: * @return
27: */
28: public abstract Customer createNewCustomer(String inUsername,
29: String inPassword) throws StoreException;
30:
31: public List findCustomer(String inField1, String inValue1,
32: String inField2, String inValue2) throws StoreException;
33:
34: /**
35: *
36: */
37: public abstract void clearCustomers() throws StoreException;
38:
39: /**
40: * @param inCustomerDirectory
41: */
42: public abstract void setCustomersDirectory(File inCustomerDirectory);
43:
44: }
|