01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: StateStore.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine;
09:
10: import com.uwyn.rife.engine.exceptions.EngineException;
11: import java.util.Map;
12:
13: public interface StateStore {
14: public void init(Request request) throws EngineException;
15:
16: public Map<String, String[]> restoreParameters(Request request)
17: throws EngineException;
18:
19: public ElementResultState createNewResultState(String contextId)
20: throws EngineException;
21:
22: public Class getResultStateType() throws EngineException;
23:
24: public ResultStates restoreResultStates(Request request)
25: throws EngineException;
26:
27: public void exportQueryUrl(CharSequenceDeferred deferred,
28: String url, FlowState state, ElementInfo source,
29: String type, String name) throws EngineException;
30:
31: public void exportFormState(CharSequenceDeferred deferred,
32: FlowState state, FormStateType stateType)
33: throws EngineException;
34:
35: public void exportFormUrl(CharSequenceDeferred deferred, String url)
36: throws EngineException;
37: }
|