KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > store > OrderArchive


1 /*
2  * Created on Oct 5, 2004
3  */

4 package com.openedit.store;
5
6 import java.util.List JavaDoc;
7 import java.util.Map JavaDoc;
8
9 import com.openedit.WebPageRequest;
10
11 /**
12  * An interface implemented by classes that can write orders to and read orders
13  * from persistent storage.
14  *
15  * @author cburkey
16  */

17 public interface OrderArchive
18 {
19     
20     // result of approval, returned as string for display to user
21
public static final String JavaDoc AUTHORIZATION_RESULT_STRING_KEY = "AuthorizationResultString";
22     // result of approval, returned as Boolean
23
public static final String JavaDoc AUTHORIZATION_RESULT_KEY = "AuthorizationResult";
24
25     public void archiveOrderData( Store inStore ) throws StoreException;
26
27     public void exportNewOrder( WebPageRequest inContext, Store inStore,
28         Order inOrder ) throws StoreException;
29     
30     public void captureOrder( WebPageRequest inContext, Store inStore,
31         Order inOrder ) throws StoreException;
32     
33     public void changeOrderStatus( OrderState inStatus, Store inStore,
34             Order inOrder ) throws StoreException;
35     
36     public List JavaDoc listOrders(Store inStore, WebPageRequest inReq) throws StoreException;
37     
38     
39     public Map JavaDoc getOrderStates();
40
41 }
Popular Tags